@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --navy: #0f1b2d;
    --navy-mid: #1a2d47;
    --navy-light: #243b5e;
    --cream: #f7f3ed;
    --cream-dark: #ede7dd;
    --accent: #c8723a;
    --accent-hover: #d4864f;
    --accent-pale: #f5e6d8;
    --white: #ffffff;
    --text: #2c2c2c;
    --text-light: #6b6b6b;
    --text-on-dark: #c4c9d4;
    --border: #d6d0c7;
    --border-dark: #3a4a63;
    --success: #3a8f5c;
    --error: #c44b4b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; }

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
nav {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 200; background: var(--navy);
    border-bottom: 3px solid var(--accent);
    transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }

.nav-inner {
    max-width: 1140px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center; height: 68px;
}
.logo {
    font-family: 'DM Serif Display', serif; font-size: 1.5rem;
    color: var(--cream); text-decoration: none; letter-spacing: -0.5px;
}
.logo b { color: var(--accent); }
.nav-links { display: flex; gap: 0.15rem; list-style: none; }
.nav-links a {
    display: block; padding: 0.45rem 0.9rem; color: var(--text-on-dark);
    text-decoration: none; font-weight: 500; font-size: 0.95rem;
    border-radius: 4px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-cta {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.55rem 1.15rem; background: var(--accent); color: #fff;
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
    border-radius: 5px; transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }
.burger { display: none; background: none; border: none; cursor: pointer; color: var(--cream); padding: 0.35rem; }

/* ─── HERO ─── */
.hero {
    padding: 9rem 2rem 5rem; background: var(--navy);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -120px; right: -120px;
    width: 500px; height: 500px; border: 1px solid var(--border-dark);
    border-radius: 50%; opacity: 0.3; animation: floatSlow 20s ease-in-out infinite;
}
.hero::after {
    content: ''; position: absolute; bottom: -80px; left: -80px;
    width: 340px; height: 340px; border: 1px solid var(--border-dark);
    border-radius: 50%; opacity: 0.2; animation: floatSlow 16s ease-in-out infinite reverse;
}
@keyframes floatSlow {
    0%, 100% { transform: translate(0,0); }
    50% { transform: translate(15px,-15px); }
}
.hero-inner { max-width: 1140px; margin: 0 auto; position: relative; z-index: 1; }

.hero-text h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    color: var(--cream); line-height: 1.2; margin-bottom: 1.5rem;
    letter-spacing: -0.5px; animation: heroUp 0.8s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-text h1 span { color: var(--accent); font-style: italic; }
.hero-text p {
    font-size: 1.15rem; color: var(--text-on-dark); line-height: 1.8;
    margin-bottom: 2rem; max-width: 540px;
    animation: heroUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.12s both;
}
.hero-btns {
    display: flex; gap: 1rem; flex-wrap: wrap;
    animation: heroUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.24s both;
}
@keyframes heroUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 1.8rem; font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 600; border-radius: 5px;
    text-decoration: none; border: none; cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 6px 20px rgba(200,114,58,0.35); }
.btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.btn-outline-accent { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline-accent:hover { background: var(--accent); color: #fff; }

/* ─── SECTIONS ─── */
.section { padding: 5rem 2rem; }
.section-dark { background: var(--navy); color: var(--cream); }
.section-inner { max-width: 1140px; margin: 0 auto; }
.section-label {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem;
}
.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.2; margin-bottom: 0.75rem; letter-spacing: -0.3px;
}
.section-sub { font-size: 1.1rem; color: var(--text-light); max-width: 560px; margin-bottom: 3rem; }
.section-dark .section-sub { color: var(--text-on-dark); }
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }
.divider { width: 48px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 2rem; }
.section-center .divider { margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════
   SERVICES — DIAGONAL SPLIT
   ═══════════════════════════════════════════ */
.svc-split {
    display: grid; grid-template-columns: 1fr 1fr;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(15,27,45,0.08);
    position: relative;
}

/* Thin diagonal accent line */


.svc-col { display: flex; flex-direction: column; position: relative; }

.svc-col-header {
    padding: 1.5rem 1.75rem; display: flex; align-items: center; gap: 0.85rem;
    font-family: 'DM Serif Display', serif; font-size: 1.2rem;
    position: relative; z-index: 1;
}
.svc-col:first-child .svc-col-header { background: var(--navy); color: var(--cream); }
.svc-col:last-child .svc-col-header { background: var(--accent); color: #fff; }

.svc-col-header-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.svc-col:first-child .svc-col-header-icon { background: rgba(255,255,255,0.1); }
.svc-col:last-child .svc-col-header-icon { background: rgba(255,255,255,0.25); }

.svc-col-body { flex: 1; display: flex; flex-direction: column; background-color: var(--cream); }
.svc-col:first-child .svc-col-body { background: var(--navy-mid); }
.svc-col:last-child .svc-col-body { background: #ede7dd }

.svc-item {
    padding: 1.25rem 1.75rem; display: flex; align-items: flex-start; gap: 1rem;
    transition: background 0.25s; position: relative; z-index: 1;
}
.svc-item + .svc-item { border-top: 1px solid rgba(255,255,255,0.06); }
.svc-col:last-child .svc-item + .svc-item { border-top: 1px solid var(--border); }
.svc-col:first-child .svc-item:hover { background: rgba(255,255,255,0.03); }
.svc-col:last-child .svc-item:hover { background: var(--accent-pale); }

.svc-item-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: transform 0.3s;
}
.svc-item:hover .svc-item-icon { transform: scale(1.12); }
.svc-col:first-child .svc-item-icon { background: rgba(200,114,58,0.12); }
.svc-col:first-child .svc-item-icon svg { color: var(--accent); }
.svc-col:last-child .svc-item-icon { background: var(--accent-pale); }
.svc-col:last-child .svc-item-icon svg { color: var(--accent); }

.svc-item-text h3 { font-family: 'DM Serif Display', serif; font-size: 1.02rem; margin-bottom: 0.2rem; }
.svc-col:first-child .svc-item-text h3 { color: var(--cream); }
.svc-col:last-child .svc-item-text h3 { color: var(--navy); }
.svc-item-text p { font-size: 0.88rem; line-height: 1.55; }
.svc-col:first-child .svc-item-text p { color: var(--text-on-dark); }
.svc-col:last-child .svc-item-text p { color: var(--text-light); }

/* ─── PRICING ─── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.p-card {
    background: var(--navy-mid); border: 1px solid var(--border-dark);
    border-radius: 8px; padding: 2.5rem 2rem; position: relative;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.p-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.p-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 40px rgba(200,114,58,0.12); transform: scale(1.02); }
.p-card.featured:hover { transform: scale(1.02) translateY(-4px); box-shadow: 0 0 0 1px var(--accent), 0 0 50px rgba(200,114,58,0.2); }
.p-badge { position: absolute; top: -12px; left: 2rem; background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.9rem; border-radius: 4px; }
.p-card h3 { font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: var(--cream); margin-bottom: 0.3rem; }
.p-card .p-desc { font-size: 0.9rem; color: var(--text-on-dark); margin-bottom: 1.25rem; }
.p-price { font-family: 'DM Serif Display', serif; font-size: 3rem; color: var(--accent); margin-bottom: 1.5rem; letter-spacing: -1px; }
.p-list { list-style: none; margin-bottom: 2rem; }
.p-list li { font-size: 0.95rem; color: var(--text-on-dark); padding: 0.45rem 0 0.45rem 1.4rem; position: relative; }
.p-list li::before { content: ''; position: absolute; left: 0; top: 0.85rem; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.p-card .btn { width: 100%; justify-content: center; }

/* ─── PROJECTS ─── */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.proj {
    background: var(--white); border: 1px solid var(--border); border-radius: 8px;
    overflow: hidden; text-decoration: none; color: inherit;
    transition: box-shadow 0.3s, transform 0.3s;
}
.proj:hover { box-shadow: 0 12px 36px rgba(15,27,45,0.12); transform: translateY(-5px); }

.proj-thumb {
    height: 170px; display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}

/* Background image via ::before (zoomable) */
.proj-thumb::before {
    content: ''; position: absolute; inset: 0;
    background-size: cover; background-position: center top;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.proj:hover .proj-thumb::before { transform: scale(1.08); }

/* Color overlay via ::after */
.proj-thumb::after {
    content: ''; position: absolute; inset: 0;
    opacity: 0.65; transition: opacity 0.3s;
}
.proj:hover .proj-thumb::after { opacity: 0.5; }

/* ── Per-project: local images ── */
.proj-thumb--geofus::before { background-image: url('images/geofus.jpg'); }
.proj-thumb--geofus::after  { background: linear-gradient(135deg, #7bff9146, #50fd0038); }

.proj-thumb--aupb::before { background-image: url('images/aupb.jpg'); }
.proj-thumb--aupb::after  { background: linear-gradient(135deg, #1a4a7a, #0f2d4d); }

.proj-thumb--vital::before { background-image: url('images/vital.jpg'); }

.proj-thumb-label {
    font-family: 'DM Serif Display', serif; font-size: 1.5rem;
    color: #fff; position: relative; z-index: 2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4); transition: transform 0.4s;
}
.proj:hover .proj-thumb-label { transform: scale(1.05); }

.proj-body { padding: 1.5rem; }
.proj-body h3 { font-family: 'DM Serif Display', serif; font-size: 1.15rem; color: var(--navy); margin-bottom: 0.35rem; }
.proj-body p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 0.6rem; }
.proj-link { font-weight: 600; font-size: 0.92rem; color: var(--accent); display: inline-flex; align-items: center; gap: 0.3rem; transition: gap 0.3s; }
.proj:hover .proj-link { gap: 0.6rem; }

/* ─── ABOUT ─── */
.about-wrap { max-width: 680px; }
.about-text p { font-size: 1.05rem; color: var(--text-light); margin-bottom: 1.25rem; line-height: 1.8; }
.about-text strong { color: var(--text); }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-left h3 { font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: var(--cream); margin-bottom: 0.75rem; }
.contact-left > p { font-size: 1rem; color: var(--text-on-dark); margin-bottom: 2rem; line-height: 1.7; }
.c-method { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--navy-mid); border: 1px solid var(--cream); border-radius: 5px; margin-bottom: 0.75rem; text-decoration: none; transition: border-color 0.2s; }
.c-method:hover { border-color: var(--accent); }
.c-method-icon { width: 44px; height: 44px; background: rgba(200,114,58,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.3s, box-shadow 0.3s; }
.c-method:hover .c-method-icon { background: rgba(200,114,58,0.2); box-shadow: 0 0 16px rgba(200,114,58,0.15); }
.c-method-icon svg { color: var(--accent); }
.c-method strong { display: block; color: var(--cream); font-size: 0.95rem; }
.c-method span { font-size: 0.88rem; color: var(--text-on-dark); }

/* ─── FORM ─── */
.contact-form { background: var(--navy-mid); border: 1px solid var(--cream); padding: 2rem; }
.fg { margin-bottom: 1.15rem; }
.fg label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--cream); margin-bottom: 0.4rem; }
.fg input, .fg textarea, .fg select { width: 100%; padding: 0.8rem 1rem; background: var(--navy); border: 2px solid var(--border-dark); border-radius: 5px; color: var(--cream); font-family: 'Outfit', sans-serif; font-size: 1rem; transition: border-color 0.2s; }
.fg input::placeholder, .fg textarea::placeholder { color: #5a6a80; }
.fg input:focus, .fg textarea:focus, .fg select:focus { outline: none; border-color: var(--accent); }
.fg textarea { min-height: 110px; resize: vertical; }
.fg select option { background: var(--navy); color: var(--cream); }
.form-btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
#formMsg { margin-top: 0.75rem; font-weight: 600; font-size: 0.95rem; text-align: center; }

/* ─── FOOTER ─── */
footer { background: var(--navy); border-top: 1px solid var(--border-dark); padding: 2.5rem 2rem 1.5rem; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--cream); }
.footer-logo b { color: var(--accent); }
footer p, footer a { font-size: 0.88rem; color: var(--text-on-dark); }
footer a { text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
    opacity: 0; transform: translateY(22px);
    transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > *, .hero-text h1, .hero-text p, .hero-btns {
        animation: none !important; opacity: 1 !important;
        transform: none !important; transition: none !important;
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .svc-split { grid-template-columns: 1fr; }
    .svc-split::after { display: none; }
    .price-grid { grid-template-columns: 1fr; max-width: 420px; }
    .proj-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .p-card.featured { transform: none; }
    .p-card.featured:hover { transform: translateY(-4px); }
}

@media (max-width: 640px) {
    html { font-size: 16px; }
    .nav-links, .nav-cta-desktop { display: none; }
    .burger { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 68px; left: 0; right: 0; background: var(--navy);
        padding: 1rem; border-bottom: 3px solid var(--accent);
    }
    .nav-links.open a { padding: 0.7rem 1rem; font-size: 1.05rem; }
    .hero { padding: 7rem 1.5rem 3.5rem; }
    .section { padding: 3.5rem 1.5rem; }
    .proj-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    .btn { justify-content: center; }
    .footer-inner { flex-direction: column; text-align: center; }
    .svc-item { padding: 1.1rem 1.25rem; }
    .svc-col-header { padding: 1.25rem !important; }
}
