/* ============================================
   MARI Projects — Design System
   ============================================ */

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

:root {
    --navy:        #1a2540;
    --navy-deep:   #111b30;
    --navy-mid:    #253055;
    --accent:      #c8a96e;
    --accent-dark: #a88b52;
    --grey:        #6b7280;
    --grey-light:  #9ca3af;
    --grey-pale:   #e5e7eb;
    --cream:       #faf9f7;
    --white:       #ffffff;

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Inter', 'Helvetica Neue', sans-serif;

    --section-pad: clamp(72px, 9vw, 128px);
    --container:   1120px;
    --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--navy);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--accent-dark); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 56px);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.15;
    color: var(--navy);
}
h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); margin-bottom: 0.75rem; }

.section-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* ── Nav ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav--scrolled {
    background: var(--navy-deep);
    box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 clamp(20px, 5vw, 56px);
    max-width: 1600px;
    margin: 0 auto;
}
.nav__brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.02em;
}
.nav__brand:hover { color: var(--accent); }

.nav__links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}
.nav__links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    transition: color 0.25s;
}
.nav__links a:hover { color: var(--accent); }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    background: var(--navy-deep);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 70% 50%, rgba(200,169,110,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 30%, rgba(37,48,85,0.6) 0%, transparent 70%);
}
.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
}
.hero__content {
    position: relative;
    z-index: 2;
    padding: var(--section-pad) clamp(20px, 5vw, 56px);
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
}
.hero__eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 300;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 2rem;
}
.hero__title em {
    font-style: italic;
    color: var(--accent);
}
.hero__sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255,255,255,0.6);
    max-width: 540px;
    line-height: 1.8;
    margin-bottom: 3rem;
}
.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 2.2rem;
    background: var(--accent);
    color: var(--navy-deep);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background 0.25s, transform 0.25s;
}
.hero__cta:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); }
.hero__cta::after { content: '→'; }

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ── About ── */
.about {
    padding: var(--section-pad) 0;
    background: var(--cream);
}
.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 8vw, 100px);
    align-items: center;
}
.about__accent-line {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 2rem;
}
.about__text p {
    color: var(--grey);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.about__text p:last-child { margin-bottom: 0; }
.about__stat-box {
    background: var(--navy);
    color: var(--white);
    padding: clamp(32px, 5vw, 56px);
    border-radius: 2px;
}
.about__stat-box .section-label { color: var(--accent); margin-bottom: 2rem; }
.about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.about__stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.35rem;
}
.about__stat span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

/* ── Services ── */
.services {
    padding: var(--section-pad) 0;
    background: var(--white);
}
.services__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}
.services__header .section-label { display: block; }
.services__header p {
    color: var(--grey);
    font-size: 1.05rem;
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--grey-pale);
}
.service-card {
    background: var(--white);
    padding: clamp(32px, 5vw, 52px) clamp(24px, 4vw, 40px);
    transition: background 0.3s;
}
.service-card:hover { background: var(--cream); }
.service-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1.75rem;
    opacity: 0.85;
}
.service-card h3 { margin-bottom: 1rem; }
.service-card p {
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ── Why ── */
.why {
    padding: var(--section-pad) 0;
    background: var(--navy);
    color: var(--white);
}
.why h2 { color: var(--white); }
.why__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 8vw, 100px);
    align-items: start;
}
.why__text .section-label { margin-bottom: 1rem; }
.why__text p {
    color: rgba(255,255,255,0.65);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.why__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.why__list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.why__list li:last-child { border-bottom: none; padding-bottom: 0; }
.why__num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent);
    min-width: 28px;
    line-height: 1;
    margin-top: 2px;
}
.why__list strong {
    display: block;
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.why__list p {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    margin: 0;
}

/* ── Contact ── */
.contact {
    padding: var(--section-pad) 0;
    background: var(--cream);
}
.contact__inner {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 560px;
}
.contact__info .section-label { margin-bottom: 1.5rem; }
.contact__info p {
    color: var(--grey);
    margin-bottom: 0.5rem;
}
.contact__details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact__detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.contact__detail-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey-light);
    min-width: 72px;
    margin-top: 3px;
}
.contact__detail-val {
    color: var(--navy);
    font-size: 0.95rem;
}
.contact__detail-val a { color: var(--navy); }
.contact__detail-val a:hover { color: var(--accent); }


/* ── Footer ── */
.footer {
    background: var(--navy-deep);
    padding: 2.5rem 0;
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer__brand {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 400;
}
.footer p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
}

/* ── Fade-up animation ── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible {
    opacity: 1;
    transform: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .about__inner,
    .why__inner,
    .contact__inner { grid-template-columns: 1fr; }

    .services__grid { grid-template-columns: 1fr; gap: 1px; }

    .about__stat-box { order: -1; }

}

@media (max-width: 640px) {
    .nav__links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: var(--navy-deep);
        padding: 2rem;
        gap: 1.5rem;
    }
    .nav__links--open { display: flex; }
    .nav__toggle { display: flex; }

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