@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap");

/* ===== Tokens (colors sampled from the logo) ===== */
:root {
    --ink: #14161a;
    --muted: #52586b;      /* meets 4.5:1 on white */
    --line: #e6e6e6;
    --bg: #ffffff;
    --surface: #f7f8fa;
    --green: #a3ce15;      /* logo lime chevron */
    --blue: #1a7bff;       /* logo bright-blue chevron */
    --blue-deep: #1330cc;  /* logo royal-blue chevron */
    --accent: var(--blue);
    --cta: #c2410c;        /* warm CTA — white text meets 4.5:1 */
    --brand-gradient: linear-gradient(90deg, var(--green), var(--blue));
    --font-head: "Poppins", sans-serif;
    --font-body: "Open Sans", sans-serif;
    --nav-height: 68px;
    --max: 1100px;
}

/* ===== Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
    font-family: var(--font-head);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Visible keyboard focus (accessibility) */
:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 6px var(black)
   
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 0;
}

.brand-logo {
    height: 40px;
    width: 40px;
    border-radius: 9px;
    object-fit: cover;
    
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: var(--ink);
    background: #f5f5f5;
}

.nav-links a.active {
    color: var(--ink);
}

.nav-links a.active::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 4px;
    background: var(--brand-gradient);
    border-radius: 2px;
}

/* ===== Hamburger (mobile) ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: var(--cta);
    background-color: #a3ce15;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.35);
    background: var(--blue);
}

.btn-ghost {
    color: var(--ink);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--blue);
    color: var(--green);
}

/* Ghost button on dark backgrounds (hero) */
.btn-ghost-light {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost-light:hover {
    color: var(--blue-deep);
    background-color: var(--blue);  
    border-color: #fff;
}

/* ===== Home (background-image hero) ===== */
.home {
    min-height: calc(100dvh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 72px 24px;
    color: #fff;
    background:
        linear-gradient(rgba(9, 13, 26, 0.72), rgba(9, 13, 26, 0.68)),
        url("optim-hero0.jpg") center / cover no-repeat;
}

.home-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 720px;
}

.home .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(2px);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--blue-deep);
    background: rgba(26, 123, 255, 0.1);
}

.home h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.15;
}

.home h1 .grad {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home p {
    font-size: 1.12rem;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ===== About ===== */
.about {
    max-width: var(--max);
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.about-connecter{
    padding: 20px;
    background-color: wheat;
}

.aboutustitle {
    grid-column: 1 / -1;
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.card {
    padding: 36px 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.card h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--muted);
}

.wordsabout {
    grid-column: 1 / -1;
    max-width: 780px;
    margin: 8px auto 0;
    text-align: center;
    color: var(--muted);
}

/* ===== Services ===== */
.servicer{
    background-image: url(logos/geri-sakti-CYrYxz-uvE4-unsplash.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}
.services-hero {
    text-align: center;
    padding: 72px 24px 8px;
    max-width: 720px;
    margin: 0 auto;
}

.services-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    color: white;
}

.services-hero h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 4px;
    background: var(--brand-gradient);
}

.services-hero p {
    color: white;
    font-size: 1.05rem;
    font-style: poppins, sans-serif;
    font-weight: 600;
}
.services-hero .eyebrow {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(2px);
    padding: 6px 14px;
}
.services {
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 30px 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    background: #fff;
    
    color: black;
}
.service-img img{
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
    padding: 10p 1.5pxx;
    margin-left: 50px;
}
.service-card p {
    color: var(--muted);
    font-size: 0.96rem;
    color: black;
}
.service-card:hover {
    transform: translatey(-6px);
    border-color: transparent;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 12px;
    font-size: 1.35rem;
    color: #fff;
    background: var(--brand-gradient);
}

.service-card h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--muted);
    font-size: 0.96rem;
}

/* ===== About: Intro ===== */
.about-intro {
    max-width: var(--max);
    margin: 0 auto;
    padding: 72px 24px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-intro-text h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin: 14px 0 18px;
}

.about-intro-text p {
    color: var(--muted);
    font-size: 1.08rem;
    margin-bottom: 28px;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.about-intro-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    border-radius: 20px;
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(26, 123, 255, 0.12), transparent 60%),
        var(--surface);
    border: 1px solid var(--line);
    background-image: url(logos/bank-phrom-Tzm3Oyu_6sk-unsplash.jpg);
    background-size: cover;
    background-position: center;  
    height: 400px;
}

.about-intro-visual img {
    width: 200px;
    height: 600px;
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.about-intro-visual .tagline {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
}

/* ===== About: Vision & Mission ===== */
.vm {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px 24px 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.vm-card {
    padding: 34px 30px;
   
    border-radius: 16px;
    background: var(--bg);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.vm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.07);
}

.vm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 14px;
    font-size: 1.4rem;
    color: #fff;
    background: var(--brand-gradient);
}

.vm-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.vm-card p {
    color: var(--muted);
}

/* ===== About: Why Choose Us (dark, echoes the brochure) ===== */
.why {
    background: #0b1020;
    color: #fff;
    padding: 72px 24px;
}

.why-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.why-inner > h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 40px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-item {
    padding: 28px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #0b1020;
    background: var(--green);
}

.why-item h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.why-item p {
    color: #b9c0cf;
    font-size: 0.95rem;
}

/* ===== About: Our Work gallery ===== */
.work {
    max-width: var(--max);
    margin: 0 auto;
    padding: 72px 24px;
}

.work-head {
    text-align: center;
    margin-bottom: 36px;
}

.work-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 10px;
}

.work-head p {
    color: var(--muted);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.work-tile {
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
}

.work-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.work-tile:hover img {
    transform: scale(1.06);
}

/* ===== Customers ===== */
.customers-hero {
    text-align: center;
    padding: 72px 24px 8px;
    max-width: 720px;
    margin: 0 auto;
}

.customers-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.customers-hero p {
    color: var(--muted);
    font-size: 1.05rem;
}

.customers {
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.customers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.customer-tile {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: var(--bg);
    background: transparent ;
    border-radius: 14px;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.customer-tile:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.customer-tile img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
}

/* ===== Contact ===== */
.contact-hero {
    text-align: center;
    padding: 72px 24px 8px;
    max-width: 720px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.contact-hero p {
    color: var(--muted);
    font-size: 1.05rem;
}

.contact {
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
    align-items: stretch;
}

/* Info panel */
.contact-info {
    padding: 36px 32px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(163, 206, 21, 0.35), transparent 55%),
        linear-gradient(160deg, var(--blue-deep), #0b1020);
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 32px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.info-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.05rem;
    color: #0b1020;
    background: var(--green);
}

.info-detail {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
}

.info-detail a {
    color: #fff;
}

.info-detail a:hover {
    text-decoration: underline;
}

.socials {
    display: flex;
    gap: 12px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
    background: var(--green);
    color: #0b1020;
    transform: translateY(-2px);
}

/* Form */
.contact-form {
    padding: 36px 32px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg);
}

.field {
    margin-bottom: 18px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
}

.req {
    color: var(--cta);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 123, 255, 0.15);
}

.field input:not(:placeholder-shown):invalid,
.field textarea:not(:placeholder-shown):invalid {
    border-color: var(--cta);
}

.contact-form .btn {
    width: 100%;
    margin-top: 4px;
}

.form-note {
    margin-top: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    min-height: 1.2em;
}

.form-note.success {
    color: #15803d;
}

.form-note.error {
    color: var(--cta);
}

/* ===== CTA band ===== */
.cta-band {
    text-align: center;
    padding: 72px 24px;
    background: var(--brand-gradient);
    color: #fff;
}

.cta-band h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    margin-bottom: 12px;
}

.cta-band p {
    margin-bottom: 26px;
    opacity: 0.95;
}

.btn-cta-light {
    color: var(--blue-deep);
    background: #fff;
}

.btn-cta-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}
/* Footer */
.footer {
    background: var(--ink);
    color: #fff;
    text-align: center;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    
}
.footer p {
    margin: 0;
    font-size: 1rem;
    color: #fff;
    
}
.icons-footer {
    gap: 16px;
    margin-top: 8px;
}
.icons-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 8px 0;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.2s ease;
        background: var(--brand-gradient);
        color: black;
    }
    .footer {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links.open {
        transform: scaleY(1);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        border-radius: 0;
        padding: 14px;
    }

    .nav-links a.active::after {
        display: none;
    }

    .home {
        min-height: calc(100dvh - var(--nav-height));
        padding: 56px 24px;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-intro-visual {
        order: -1;
    }

    .vm {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .customers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 28px 22px;
    }
}



/* Mid screens: 2-up / 3-up grids */
@media (min-width: 721px) and (max-width: 1000px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .customers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media(max-width: 500px) {
    .service-img img{
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 18px;
        padding: 10px 1.5px;
        margin-left: 50px;
    }
}
/* ===== Reduced motion (accessibility) ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
