/* =========================================================
   PT. Dreambox Teknologi Indonesia — Company Profile
   Palet warna mengikuti company profile: navy, biru logo,
   abu kertas terang, aksen slate blue
   ========================================================= */
:root {
    --navy:       #1c2f5c;
    --navy-deep:  #14224a;
    --blue:       #2f86c8;
    --blue-light: #57aadd;
    --slate:      #7c8db5;
    --paper:      #f4f4f1;
    --text:       #40485c;
    --white:      #ffffff;
    --shadow: 0 12px 30px rgba(20, 34, 74, .12);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }

h1, h2, h3, h4 {
    font-family: 'Montserrat', system-ui, sans-serif;
    color: var(--navy);
    line-height: 1.25;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(28, 47, 92, .1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0;
}

.brand img { height: 44px; width: auto; }

.site-nav ul { display: flex; gap: .2rem; list-style: none; }

.site-nav a {
    display: block;
    padding: .5rem .8rem;
    font-family: 'Montserrat', sans-serif;
    font-size: .88rem;
    font-weight: 600;
    color: var(--navy);
    border-radius: 8px;
    transition: background .2s, color .2s;
}

.site-nav a:hover { background: var(--paper); color: var(--blue); }

.site-nav a.active { background: var(--navy); color: var(--white); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: .4rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--navy-deep);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(20, 34, 74, .96) 25%, rgba(28, 47, 92, .55) 70%, rgba(47, 134, 200, .35));
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 6.5rem 0;
    max-width: 620px;
}

.hero-kicker {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 1rem;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1.2rem;
}

.hero h1 .accent { color: var(--blue-light); }

.hero p { opacity: .92; margin-bottom: 2rem; }

/* Sudut segitiga khas company profile */
.hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    border-style: solid;
    border-width: 0 0 110px 160px;
    border-color: transparent transparent var(--slate) transparent;
    opacity: .8;
    z-index: 1;
}

.btn {
    display: inline-block;
    padding: .8rem 1.7rem;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .92rem;
    transition: transform .15s, box-shadow .15s, background .2s;
}

.btn-primary { background: var(--blue); color: var(--white); }

.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }

.btn-outline {
    border: 2px solid rgba(255, 255, 255, .65);
    color: var(--white);
    margin-left: .6rem;
}

.btn-outline:hover { background: rgba(255, 255, 255, .12); }

.btn-navy { background: var(--navy); color: var(--white); }

.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }

.section-alt { background: var(--paper); }

.section-navy { background: var(--navy-deep); color: rgba(255, 255, 255, .9); }

.section-navy h2, .section-navy h3 { color: var(--white); }

.section-head { max-width: 680px; margin-bottom: 2.6rem; }

.section-head.center { margin-inline: auto; text-align: center; }

.section-kicker {
    font-family: 'Montserrat', sans-serif;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--blue);
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-top: .4rem;
}

.section-head p { margin-top: .8rem; }

/* Page hero (halaman dalam) */
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, var(--navy-deep), var(--navy) 60%, var(--blue));
    color: var(--white);
    padding: 3.6rem 0;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    border-style: solid;
    border-width: 0 140px 90px 0;
    border-color: transparent var(--slate) transparent transparent;
    opacity: .55;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.page-hero p { opacity: .9; max-width: 42rem; position: relative; z-index: 1; margin-top: .5rem; }

/* ---------- Grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(28, 47, 92, .06);
}

/* Layanan utama */
.service-card { border-top: 4px solid var(--blue); }

.service-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }

.service-card p { font-size: .92rem; }

.service-num {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: var(--paper);
    color: var(--navy);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

/* Visi misi */
.vm-card { padding: 2.2rem; }

.vm-card h3 {
    font-size: 1.25rem;
    margin-bottom: .8rem;
    padding-bottom: .6rem;
    border-bottom: 3px solid var(--blue);
    display: inline-block;
}

.vm-card ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }

.vm-card ul li { padding-left: 1.4rem; position: relative; }

.vm-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 10px;
    height: 10px;
    background: var(--blue);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Checklist umum */
.checklist { list-style: none; display: flex; flex-direction: column; gap: .6rem; }

.checklist li { padding-left: 1.7rem; position: relative; }

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--blue);
    font-weight: 700;
}

.section-navy .checklist li::before { color: var(--blue-light); }

/* About split */
.about-split {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 2.6rem;
    align-items: center;
}

.about-split .photo {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-split .photo img { width: 100%; height: 100%; object-fit: cover; }

.about-text p { margin-bottom: 1rem; }

/* ---------- Galeri immersive ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}

.gallery-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--navy-deep);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .25s, opacity .25s;
}

.gallery-card:hover img { transform: scale(1.06); opacity: .85; }

.gallery-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .45rem .7rem;
    background: linear-gradient(transparent, rgba(20, 34, 74, .92));
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: .74rem;
    font-weight: 600;
}

/* ---------- Produk ---------- */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    justify-content: center;
}

.category-pills span {
    background: var(--white);
    border: 1px solid rgba(28, 47, 92, .15);
    color: var(--navy);
    padding: .5rem 1.1rem;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: .85rem;
    font-weight: 600;
}

.product-group { margin-bottom: 3rem; }

.product-group:last-child { margin-bottom: 0; }

.product-group-head {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1.4rem;
}

.product-group-head .tag {
    background: var(--navy);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.02rem;
    padding: .35rem .9rem;
    border-radius: 6px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border: 1px solid rgba(28, 47, 92, .08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.product-card .thumb {
    background: var(--paper);
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.product-card .thumb img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }

.product-card .info { padding: 1rem 1.2rem; text-align: center; }

.product-card h4 { font-size: 1rem; font-weight: 700; }

.product-card .desc { font-size: .84rem; color: var(--slate); }

/* ---------- Portofolio ---------- */
.portfolio-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }

.portfolio-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--white);
    border: 1px solid rgba(28, 47, 92, .08);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow);
}

.portfolio-item .logo {
    flex: 0 0 74px;
    height: 74px;
    display: grid;
    place-items: center;
    background: var(--paper);
    border-radius: 10px;
    padding: .5rem;
}

.portfolio-item .logo img { max-height: 60px; width: auto; max-width: 100%; object-fit: contain; }

.portfolio-item h3 { font-size: 1rem; }

.portfolio-item p { font-size: .9rem; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

.photo-grid figure {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--navy-deep);
}

.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.photo-grid figcaption {
    padding: .7rem 1rem;
    color: var(--white);
    font-size: .84rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* ---------- Kontak ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.contact-info h3 { margin-bottom: .8rem; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }

.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }

.contact-list .ico {
    flex: 0 0 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--white);
    font-size: 1.05rem;
}

.contact-list strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    color: var(--navy);
    font-size: .86rem;
}

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- CTA ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, var(--navy), var(--blue));
    color: var(--white);
    padding: 3.2rem 0;
    text-align: center;
}

.cta-band h2 { color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.4rem; }

/* ---------- Klien strip ---------- */
.client-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
}

.client-strip img {
    height: 62px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .7;
    transition: filter .2s, opacity .2s;
}

.client-strip img:hover { filter: none; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .85); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.4fr;
    gap: 2.5rem;
    padding: 3.2rem 0 2.4rem;
}

.footer-brand img {
    height: 46px;
    width: auto;
    margin-bottom: .9rem;
    background: var(--white);
    padding: .45rem .7rem;
    border-radius: 8px;
}

.footer-brand p { font-size: .88rem; opacity: .85; }

.site-footer h4 {
    color: var(--white);
    font-size: .95rem;
    margin-bottom: .9rem;
    letter-spacing: .04em;
}

.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }

.footer-nav a { color: rgba(255, 255, 255, .75); font-size: .9rem; }

.footer-nav a:hover { color: var(--blue-light); }

.footer-contact p { font-size: .9rem; margin-bottom: .7rem; }

.footer-contact a { color: rgba(255, 255, 255, .85); }

.footer-contact a:hover { color: var(--blue-light); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 1.1rem 0;
    font-size: .82rem;
    opacity: .7;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-3, .product-grid, .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .about-split, .portfolio-list, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-inner { padding: 5rem 0; }
}

@media (max-width: 640px) {
    .nav-toggle { display: flex; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid rgba(28, 47, 92, .1);
        display: none;
        box-shadow: var(--shadow);
    }

    .site-nav.open { display: block; }

    .site-nav ul { flex-direction: column; padding: .8rem; }

    .grid-2, .grid-3, .product-grid, .photo-grid { grid-template-columns: 1fr; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: 1fr; }

    .btn-outline { margin-left: 0; margin-top: .6rem; }
}
