/* ══════════════════════════════════════
   NORDE HOMES — SHARED STYLES
   Design tokens, reset, nav, footer,
   buttons, utilities
   ══════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
    --deep-teal:    #263941;
    --slate-teal:   #506168;
    --warm-clay:    #B87D68;
    --dusty-pink:   #D4B1A5;
    --powder-blue:  #EEF2F6;
    --misty-blue:   #D9E0EA;
    --warm-cream:   #F0ECE8;
    --cream-linen:  #F7F4F1;
    --white:        #FFFFFF;
    --hover-warm:   #A86D5B;
    --hover-teal:   #1E2F36;
    --disabled-text:#8A9DA5;
    --font-primary: "greycliff-cf", sans-serif;
    --font-feature: "BauhausPro-Medium", "ITC Bauhaus", sans-serif;
    --shadow-card:  0 2px 8px rgba(38,57,65,0.06);
    --shadow-hover: 0 8px 24px rgba(38,57,65,0.12);
    --transition:   250ms ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font-primary); font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--deep-teal); background: var(--cream-linen); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; }

/* ── UTILITY ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── TYPOGRAPHY ── */
h1 { font-family: var(--font-primary); font-weight: 300; font-size: 72px; line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-family: var(--font-primary); font-weight: 300; font-size: 52px; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-family: var(--font-primary); font-weight: 400; font-size: 24px; line-height: 1.25; }
@media (max-width: 768px) {
    h1 { font-size: 44px; }
    h2 { font-size: 36px; }
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.07em;
    line-height: 1;
    padding: 12px 24px;
    border: 1.5px solid currentColor;
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}
.btn-arrow { transition: transform var(--transition); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn--teal  { color: var(--deep-teal); }
.btn--teal:hover  { background: var(--deep-teal); color: var(--white); }

.btn--clay  { color: var(--warm-clay); border-color: var(--warm-clay); }
.btn--clay:hover  { background: var(--warm-clay); color: var(--white); }

.btn--white { color: var(--white); border-color: var(--white); }
.btn--white:hover { background: var(--white); color: var(--deep-teal); }

.btn--filled { background: var(--warm-clay); color: var(--white); border-color: var(--warm-clay); }
.btn--filled:hover { background: var(--hover-warm); border-color: var(--hover-warm); }


/* ════════════════════════════════════
   NAV
   ════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
    background: var(--white);
    padding: 14px 0;
    box-shadow: 0 1px 0 var(--powder-blue);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.nav__logo img { height: 64px; width: auto; transition: height var(--transition); }
.nav.scrolled .nav__logo img { height: 40px; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}
.nav__links a {
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.88);
    padding: 8px 14px;
    border-radius: 4px;
    transition: color var(--transition);
}
.nav__links a:hover { color: var(--white); }
.nav.scrolled .nav__links a { color: var(--deep-teal); }
.nav.scrolled .nav__links a:hover { color: var(--warm-clay); }

.nav__cta {
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    color: var(--white);
    border-color: var(--white);
}
.nav.scrolled .nav__cta {
    opacity: 1;
    pointer-events: auto;
    color: var(--warm-clay);
    border-color: var(--warm-clay);
}
.nav.scrolled .nav__cta:hover {
    background: var(--warm-clay);
    color: var(--white);
}

.nav__burger {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    color: var(--white);
    transition: color var(--transition);
}
.nav.scrolled .nav__burger { color: var(--deep-teal); }

@media (max-width: 1024px) {
    .nav__links { display: none; }
    .nav__cta { display: none; }
    .nav__burger { display: block; }
}

/* ── Mobile menu ── */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--white);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    padding: 24px;
    height: 100%;
}
.mobile-menu__close {
    align-self: flex-end;
    background: none;
    border: none;
    padding: 8px;
    color: var(--deep-teal);
}
.mobile-menu__links {
    list-style: none;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-menu__links a {
    font-size: 28px;
    font-weight: 300;
    color: var(--deep-teal);
    padding: 12px 0;
    display: block;
    border-bottom: 1px solid var(--powder-blue);
}
.mobile-menu__links a:hover { color: var(--warm-clay); }
.mobile-menu__cta {
    margin-top: 32px;
    align-self: flex-start;
}
.mobile-menu__contact {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 24px;
}
.mobile-menu__contact a {
    font-size: 15px;
    color: var(--slate-teal);
}


/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */
.footer {
    background: var(--deep-teal);
    padding: 64px 0 32px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer__brand-tagline {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 18px;
    color: var(--warm-clay);
    margin: 16px 0 12px;
}
.footer__brand-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    font-weight: 300;
    line-height: 1.6;
    max-width: 280px;
}
.footer__heading {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-clay);
    margin-bottom: 20px;
}
.footer__link {
    display: block;
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    font-weight: 300;
    padding: 4px 0;
    transition: color var(--transition);
}
.footer__link:hover { color: var(--white); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    font-weight: 300;
}
@media (max-width: 768px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer__grid { grid-template-columns: 1fr; }
}


/* ── Animations ── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll { opacity: 0; transform: translateY(20px); }
.animate-on-scroll.visible { animation: fade-up 0.6s ease forwards; }


/* ── Section utilities ── */
.section { padding: 100px 0; }
@media (max-width: 768px) { .section { padding: 60px 0; } }
.section--linen { background: var(--cream-linen); }
.section--cream { background: var(--warm-cream); }
.section--cool  { background: var(--powder-blue); }
.section--dark  { background: var(--deep-teal); color: var(--white); }
