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

/* ══════════════════════════════════════
   ANM HOMES
══════════════════════════════════════ */
:root {
    --navy:      #0c2d4f;
    --navy-deep: #061b31;
    --soft:      #f6f9fd;
    --blue:      #e8f1f9;
    --accent:    #4a96d0;
    --line:      #dce8f1;
    --text:      #3d5a72;
    --muted:     #6b8aa0
}

*, *::before, *::after { box-sizing: border-box }

html { scroll-behavior: smooth }

body {
    margin: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: var(--navy);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased
}

a { text-decoration: none; color: inherit }

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

/* ── LAYOUT ── */
.wrap {
    max-width: 1360px;
    margin: auto;
    padding: 0 64px
}

.serif {
    font-family: 'Playfair Display', Georgia, serif
}

/* ══ HEADER ══ */
header {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    z-index: 20
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0
}

.logo img { width: 190px }

header.page .logo img { width: 190px }

.menu {
    display: flex;
    gap: 40px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase
}

.menu a {
    padding-bottom: 3px;
    border-bottom: 1.5px solid transparent;
    transition: border-color .2s, color .2s
}

.menu a.active,
.menu a:hover { border-bottom-color: var(--accent) }

.hamb {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer
}

.hamb span {
    width: 20px; height: 1.5px;
    background: var(--navy);
    display: block
}

.mobile-menu { display: none }

/* ══ HOME HERO ══ */
.hero h1 { font-size: 52px; letter-spacing: -1.5px }

.hero {
    min-height: 74vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(to right,
            #f6f9fd 0%,
            #f6f9fd 38%,
            rgba(246,249,253,.72) 54%,
            rgba(246,249,253,0) 68%),
        url('../images/hero-cropped2.png') center right / cover no-repeat
}

.hero .wrap {
    max-width: 100%;
    margin-left: 0;
    padding-left: clamp(64px, 9vw, 140px);
}

.hero-copy {
    width: 40%;
    max-width: 500px;
    min-width: 300px;
    padding-top: 145px;
    padding-bottom: 20px;
}

/* ══ PAGE HERO – inner pages ══ */
.page-hero {
    padding: 210px 0 32px;
    background: linear-gradient(140deg, var(--soft) 0%, var(--blue) 100%)
}

.page-hero h1 { font-size: 54px; letter-spacing: -1.8px }

/* ══ TYPOGRAPHY ══ */
h1 {
    font-size: 70px;
    line-height: 1.0;
    font-weight: 400;
    letter-spacing: -2.5px;
    margin: 0 0 16px
}

h2 {
    font-size: 46px;
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -1.2px;
    margin: 0 0 14px
}

h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.1px;
    margin: 0 0 10px
}

p {
    font-size: 16px;
    line-height: 1.78;
    color: var(--text);
    font-weight: 400;
    margin: 0 0 16px
}

.label {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 16px;
    display: block
}

.line {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0 0 20px
}

/* ══ BUTTONS ══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 30px;
    background: var(--navy);
    color: #fff;
    border: 1.5px solid var(--navy);
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    transition: background .22s, border-color .22s, box-shadow .22s
}

.btn:hover {
    background: #163d60;
    border-color: #163d60;
    box-shadow: 0 6px 24px rgba(12,45,79,.28)
}

.btn.out {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy)
}

.btn.out:hover {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 6px 24px rgba(12,45,79,.28)
}

.actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    flex-wrap: wrap
}

/* ══ SECTIONS ══ */
section { padding: 40px 0 }

.tight { padding: 28px 0 32px }

.blue { background: var(--soft) }

/* ══ GRID ══ */
.grid { display: grid; gap: 28px }

.two   { grid-template-columns: repeat(2, 1fr) }
.three { grid-template-columns: repeat(3, 1fr) }
.four  { grid-template-columns: repeat(4, 1fr) }

/* ══ FEATURES ══ */
.feature {
    padding: 18px 16px 14px;
    border-top: 1px solid var(--line)
}

.feature:first-child { border-top-color: var(--accent) }

.feature h3 { font-size: 15px; font-weight: 700; letter-spacing: .02em; margin-bottom: 8px }

.feature p { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0 }

.feature:last-child { border-right: 0 }

/* ══ CARDS ══ */
.card {
    background: #fff;
    box-shadow: 0 2px 8px rgba(12,45,79,.05), 0 8px 28px rgba(12,45,79,.06);
    overflow: hidden;
    border-radius: 3px;
    transition: box-shadow .32s, transform .32s
}

.card:hover {
    box-shadow: 0 8px 24px rgba(12,45,79,.1), 0 28px 64px rgba(12,45,79,.1);
    transform: translateY(-5px)
}

.img { background: center/cover no-repeat }

.card .img {
    height: 240px;
    transition: transform .6s ease
}

.card:hover .img { transform: scale(1.04) }

.body { padding: 18px 22px }

/* ══ STATS ══ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 14px 0
}

.stat {
    text-align: center;
    padding: 14px 10px;
    border-right: 1px solid var(--line)
}

.stat:last-child { border-right: 0 }

.stat strong {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -.5px;
    margin-bottom: 5px
}

.stat span {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em
}

/* ══ SPLIT ══ */
.split {
    display: grid;
    grid-template-columns: 55fr 45fr
}

.split > .img { min-height: 500px }

.split > .copy {
    padding: 44px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff
}

/* ══ MEDIA ══ */
.media {
    min-height: 400px;
    background: center/cover no-repeat
}

.plan {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-color: var(--soft) !important
}

/* ══ TABS ══ */
.tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line)
}

.tab {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0 0 16px;
    margin-right: 32px;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s
}

.tab.active {
    color: var(--navy);
    border-bottom-color: var(--accent)
}

.panel { display: none }
.panel.active { display: block }

/* ══ GALLERY ══ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.gitem {
    position: relative;
    min-height: 220px;
    background: var(--soft) center/cover no-repeat;
    cursor: pointer;
    overflow: hidden;
    transition: opacity .2s
}

.gitem:hover { opacity: .88 }

.gitem.large { grid-column: span 2; min-height: 340px }

.cap {
    position: absolute;
    left: 14px; bottom: 14px;
    background: rgba(255,255,255,.95);
    padding: 7px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase
}

/* ══ LIGHTBOX ══ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(6,27,49,.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 48px
}

.lightbox.open { display: flex }

.lightbox img {
    max-width: 90vw;
    max-height: 82vh;
    box-shadow: 0 40px 100px rgba(0,0,0,.5)
}

.close, .arrow {
    position: absolute;
    color: #fff;
    cursor: pointer
}

.close {
    top: 24px; right: 28px;
    font-size: 28px;
    font-weight: 300;
    opacity: .55;
    transition: opacity .2s;
    line-height: 1
}

.close:hover { opacity: 1 }

.arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(255,255,255,.06);
    transition: background .2s
}

.arrow:hover { background: rgba(255,255,255,.14) }

.prev { left: 24px }
.next { right: 24px }

.counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.45);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em
}

/* ══ FORM ══ */
form {
    background: #fff;
    box-shadow: 0 12px 48px rgba(12,45,79,.09);
    padding: 28px;
    border-radius: 3px
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1.5px solid var(--line);
    font: inherit;
    font-size: 15px;
    color: var(--navy);
    background: var(--soft);
    border-radius: 2px;
    transition: border-color .2s, background .2s
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff
}

textarea { min-height: 140px; resize: vertical }

/* ══ FOOTER ══ */
footer {
    background: var(--navy-deep);
    color: #dcecf8;
    padding: 44px 0 0
}

footer .grid {
    grid-template-columns: 1.5fr .8fr .8fr 1fr;
    gap: 36px;
    align-items: start
}

footer h4 {
    color: rgba(255,255,255,.38);
    font-size: 10px;
    letter-spacing: .28em;
    text-transform: uppercase;
    margin: 0 0 20px;
    font-weight: 700
}

footer p, footer a {
    color: #5a8cb0;
    font-size: 14px;
    line-height: 2.1;
    font-weight: 400
}

footer p { margin: 0 }

footer a {
    display: block;
    transition: color .2s
}

footer a:hover { color: rgba(255,255,255,.9) }

.bottom {
    margin-top: 32px;
    border-top: 1px solid rgba(255,255,255,.06);
    text-align: center;
    padding: 16px 0;
    color: #2e4d68;
    font-size: 11px;
    letter-spacing: .08em
}

/* ══ 1200px ══ */
@media(max-width:1200px) {
    .wrap  { padding: 0 44px }
    h1     { font-size: 56px; letter-spacing: -2px }
    h2     { font-size: 38px; letter-spacing: -.8px }
    .menu  { gap: 28px }
}

/* ══ 1024px ══ */
@media(max-width:1024px) {
    .wrap  { padding: 0 32px }
    h1     { font-size: 48px; letter-spacing: -1.5px }
    h2     { font-size: 34px; letter-spacing: -.5px }

    .two, .split { grid-template-columns: 1fr }

    .split > .copy { padding: 40px 40px }
    .split > .img  { min-height: 340px }

    .gallery { grid-template-columns: repeat(2,1fr) }
    .gitem.large { grid-column: span 2 }

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

/* ══ 768px ══ */
@media(max-width:768px) {
    .wrap { padding: 0 22px }

    header {
        position: relative;
        background: #fff;
        border-bottom: 1px solid var(--line)
    }

    .nav { padding: 14px 0; align-items: center }
    .logo img { width: 155px }
    .menu { display: none }
    .hamb { display: flex }

    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 16px 40px rgba(12,45,79,.12);
        z-index: 50
    }

    .mobile-menu.open { display: block }

    .mobile-menu a {
        display: block;
        padding: 16px 22px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
        border-bottom: 1px solid var(--line)
    }

    .hero      { min-height: 88vh }
    .hero-copy { width: 100%; max-width: 100%; min-width: unset; padding-top: 64px; padding-bottom: 56px }

    h1 { font-size: 36px; letter-spacing: -.75px }
    h2 { font-size: 28px; letter-spacing: -.25px }
    p  { font-size: 15px }

    .page-hero { padding: 48px 0 28px }

    section { padding: 26px 0 }
    .tight  { padding: 18px 0 22px }

    .three, .four { grid-template-columns: 1fr }

    .stats        { grid-template-columns: repeat(2,1fr) }
    .gallery      { grid-template-columns: 1fr }
    footer .grid  { grid-template-columns: 1fr; gap: 28px }

    .feature { padding: 20px 0 }
    .feature:last-child { border-bottom: 0 }

    .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px }
    .stat:nth-child(2) { border-bottom: 1px solid var(--line) }

    .split > .img, .media, .card .img { min-height: 240px; height: auto }
    .split > .copy, .body, form { padding: 28px 20px }

    .gitem, .gitem.large { grid-column: span 1; min-height: 230px }

    .btn { width: 100%; max-width: 360px }
}

/* ══ 480px ══ */
@media(max-width:480px) {
    .wrap { padding: 0 18px }
    h1    { font-size: 30px }
    h2    { font-size: 24px }
    .hero { min-height: 82vh }
    .hero-copy { padding-top: 56px; padding-bottom: 48px }
    section { padding: 18px 0 }
    .tight  { padding: 14px 0 18px }
    .stats  { grid-template-columns: 1fr }
}

/* ══ FLOOR PLANS ══ */
.floor-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0 32px
}

.floor-tabs a {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 20px;
    border: 1.5px solid var(--line);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: #fff;
    border-radius: 2px;
    transition: background .2s, color .2s, border-color .2s
}

.floor-tabs a:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy)
}

.floor-plan {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(12,45,79,.07), 0 1px 4px rgba(12,45,79,.04);
    border-radius: 3px;
    overflow: hidden
}

.floor-plan .plan-img {
    min-height: 360px;
    background: center/contain no-repeat var(--soft);
    border-right: 1px solid var(--line)
}

.floor-plan .plan-copy {
    padding: 28px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.floor-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 12px 0 16px
}

.floor-meta div {
    text-align: center;
    padding: 16px 6px;
    border-right: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600
}

.floor-meta div:last-child { border-right: 0 }

@media(max-width:768px) {
    .floor-plan { grid-template-columns: 1fr }
    .floor-plan .plan-img { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--line) }
    .floor-plan .plan-copy { padding: 32px 28px }
    .floor-meta { grid-template-columns: repeat(2, 1fr) }
    .floor-meta div { border-right: 0; border-bottom: 1px solid var(--line) }
    .floor-meta div:nth-child(odd) { border-right: 1px solid var(--line) }
}
