/* Cedar Legacy Management - v4 "warm ivory marble, deep navy, fine gold" redesign */
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body { background: #0a1426; }

.clm {
    --navy-980: #060d1a;
    --navy-950: #0a1426;
    --navy-900: #101c33;
    --navy-800: #16263f;
    --navy-700: #1f3252;
    --gold: #c9a45c;
    --gold-soft: #ddc388;
    --gold-deep: #a5833a;
    --ivory: #f6f1e7;
    --ivory-2: #efe7d6;
    --ink: #1c2438;
    --ink-2: #4c5468;
    --hairline: rgba(201, 164, 92, 0.55);
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--ivory) url('assets/site_ivory.jpg') center / 1400px repeat;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.clm *, .clm *::before, .clm *::after { box-sizing: border-box; }
.clm img { max-width: 100%; display: block; }
.clm h1, .clm h2, .clm h3, .clm h4 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.005em;
}
.clm ::selection { background: rgba(201, 164, 92, 0.35); }
.clm a:focus-visible, .clm button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.clm section[id] { scroll-margin-top: 76px; }

/* ---------- top bar ---------- */
.clm-topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(7, 15, 29, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 164, 92, 0.4);
}
.clm-topbar-inner {
    max-width: 1120px; margin: 0 auto; padding: 15px 28px;
    display: flex; align-items: center; gap: 24px;
}
.clm-brand {
    color: var(--gold-soft);
    font-size: 12.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.24em;
    text-decoration: none;
    margin-right: auto;
}
.clm a.clm-brand, .clm a.clm-brand:visited { color: var(--gold-soft); text-decoration: none; }
.clm a.clm-brand:hover { color: #fff; }
.clm-topnav { display: flex; gap: 30px; }
.clm-topnav a {
    color: rgba(246, 241, 231, 0.72); text-decoration: none;
    font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 6px 0; position: relative;
    transition: color 0.18s ease;
}
.clm-topnav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
    height: 1px; background: var(--gold);
    transition: right 0.25s ease;
}
.clm-topnav a:hover { color: #fff; }
.clm-topnav a:hover::after { right: 0; }
.clm-bsd { color: rgba(201, 164, 92, 0.85); font-size: 15px; }

/* ---------- hero ---------- */
.clm-hero {
    position: relative; overflow: hidden;
    background: var(--navy-950) url('assets/site_navy.jpg') center / cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 92px 28px 120px;
}
.clm-hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(1000px 480px at 50% -10%, rgba(201, 164, 92, 0.16) 0%, rgba(201, 164, 92, 0) 62%);
    pointer-events: none;
}
.clm-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.55), transparent);
}
.clm-hero-page { padding: 72px 28px 84px; }
.clm-hero > * { position: relative; }
.clm-hero-logo {
    width: min(188px, 44vw); margin: 0 auto 30px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}
.clm-hero h1 {
    font-size: clamp(32px, 4.9vw, 54px);
    line-height: 1.12;
    margin: 0 auto 16px;
    max-width: 800px;
    color: #fbf7ec;
}
.clm-tagline {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold-soft);
    font-size: clamp(16px, 2vw, 21px);
    margin: 0 auto 36px;
    max-width: 640px;
    line-height: 1.5;
}

/* gold rule with diamond */
.clm-rule {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin: 0 auto 26px;
}
.clm-rule::before, .clm-rule::after {
    content: ""; height: 1px; width: 72px;
    background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.85));
}
.clm-rule::after { background: linear-gradient(90deg, rgba(201, 164, 92, 0.85), transparent); }
.clm-rule span {
    width: 7px; height: 7px; transform: rotate(45deg);
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.22);
}
.clm-rule-dark::before { background: linear-gradient(90deg, transparent, rgba(165, 131, 58, 0.7)); }
.clm-rule-dark::after { background: linear-gradient(90deg, rgba(165, 131, 58, 0.7), transparent); }
.clm-rule-dark span { background: var(--gold-deep); box-shadow: 0 0 0 3px rgba(165, 131, 58, 0.18); }

/* ---------- buttons ---------- */
.clm-btn {
    display: inline-block;
    background: linear-gradient(180deg, #dcb96f 0%, var(--gold) 55%, #b18c42 100%);
    color: var(--navy-950);
    font-size: 12.5px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    text-decoration: none;
    padding: 15px 34px;
    border-radius: 2px;
    border: 1px solid rgba(255, 235, 190, 0.5);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.clm-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.35); }
.clm-btn-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- welcome portrait (framed like a fine card) ---------- */
.clm-welcome {
    background: var(--navy-950) url('assets/site_navy.jpg') center / cover no-repeat;
    padding: 0 28px 96px;
    margin-top: -58px;
}
.clm-welcome-frame {
    position: relative;
    max-width: 880px; margin: 0 auto;
    background: var(--ivory) url('assets/site_ivory.jpg') center / cover;
    padding: 14px;
    border: 1px solid rgba(201, 164, 92, 0.85);
    outline: 1px solid rgba(201, 164, 92, 0.4);
    outline-offset: 5px;
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5);
}
.clm-welcome-frame img { width: 100%; height: auto; }

/* ---------- sections ---------- */
.clm-section {
    max-width: 880px; margin: 0 auto;
    padding: 84px 28px 30px;
    text-align: center;
}
.clm-section-wide { max-width: 1080px; }
.clm-sechead { margin-bottom: 30px; }
.clm-eyebrow {
    color: var(--gold-deep);
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.3em; text-transform: uppercase;
    margin: 0 0 12px;
}
.clm-section h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    color: var(--navy-800);
    margin: 0 0 18px;
}
.clm-lead {
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.75;
    color: var(--ink-2);
    max-width: 700px;
    margin: 0 auto 12px;
}
.clm-lead strong { color: var(--navy-800); }

/* ---------- communities band (navy marble) ---------- */
.clm-band {
    margin-top: 60px;
    background: var(--navy-950) url('assets/site_navy.jpg') center / cover no-repeat;
    border-top: 1px solid rgba(201, 164, 92, 0.4);
    border-bottom: 1px solid rgba(201, 164, 92, 0.4);
    padding: 30px 0 70px;
}
.clm-band .clm-eyebrow { color: var(--gold-soft); }
.clm-band h2 { color: #fbf7ec; }
.clm-cards {
    display: grid; gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 860px; margin: 8px auto 0;
    padding: 0 28px;
}
.clm-card {
    display: block; text-decoration: none;
    background: var(--ivory) url('assets/site_ivory.jpg') center / cover;
    border: 1px solid rgba(201, 164, 92, 0.75);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.4);
    padding: 34px 28px 30px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.clm-card:hover { transform: translateY(-3px); box-shadow: 0 30px 56px rgba(0, 0, 0, 0.5); }
.clm-card-eyebrow {
    color: var(--gold-deep);
    font-size: 11.5px; font-weight: 700;
    letter-spacing: 0.28em; text-transform: uppercase;
    margin: 0 0 10px;
}
.clm-card h3 { font-size: 25px; color: var(--navy-800); margin: 0 0 10px; }
.clm-card-addr { color: var(--ink-2); font-size: 14.5px; margin: 0 0 18px; }
.clm-card-link {
    color: var(--gold-deep);
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    border-bottom: 1px solid rgba(165, 131, 58, 0.5);
    padding-bottom: 4px;
}

/* ---------- offer ---------- */
.clm-offer {
    max-width: 720px; margin: 0 auto;
    text-align: center;
    padding: 64px 28px 72px;
}
.clm-offer-main { font-size: 16.5px; line-height: 1.7; color: var(--ink); margin: 18px 0 10px; }
.clm-offer-main strong { color: var(--gold-deep); }
.clm-offer-fine { font-size: 12.5px; color: var(--ink-2); margin: 0; }

/* ---------- footer ---------- */
.clm-footer {
    background: var(--navy-980) url('assets/site_navy.jpg') center / cover no-repeat;
    color: rgba(246, 241, 231, 0.75);
    text-align: center;
    padding: 64px 28px 44px;
    border-top: 1px solid rgba(201, 164, 92, 0.45);
}
.clm-footer-logo { width: 120px; margin: 0 auto 26px; opacity: 0.95; }
.clm-footer-grid {
    display: grid; gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 880px; margin: 0 auto 34px;
}
.clm-footer h4 {
    color: var(--gold-soft);
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
    margin: 0 0 10px;
}
.clm-footer p { font-size: 14px; line-height: 1.65; margin: 0; }
.clm-footer a { color: rgba(246, 241, 231, 0.85); text-decoration: none; border-bottom: 1px solid rgba(201, 164, 92, 0.4); }
.clm-footer a:hover { color: #fff; }
.clm-badge {
    display: inline-block;
    background: var(--ivory);
    border: 1px solid rgba(201, 164, 92, 0.7);
    border-radius: 4px;
    padding: 8px 14px;
    margin-bottom: 18px;
}
.clm-badge img { height: 34px; width: auto; }
.clm-footer-small { font-size: 12px; color: rgba(246, 241, 231, 0.5); letter-spacing: 0.08em; }

/* ---------- property pages ---------- */
.clm-photos {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 1080px; margin: 10px auto 0;
    padding: 0 28px 20px;
}
.clm-photos img {
    width: 100%; height: 100%; object-fit: cover;
    border: 1px solid rgba(201, 164, 92, 0.75);
    outline: 1px solid rgba(201, 164, 92, 0.35);
    outline-offset: 4px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    aspect-ratio: 4 / 3;
}
.clm-back {
    display: inline-block;
    margin: 26px 0 70px;
    color: var(--gold-soft);
    font-size: 12.5px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    text-decoration: none;
}
.clm-back:hover { color: #fff; }
.clm-page-body { text-align: center; }

/* reveal animation */
.clm-js .clm-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.clm-js .clm-reveal.clm-in { opacity: 1; transform: none; }

@media (max-width: 640px) {
    .clm-topbar-inner { padding: 12px 18px; gap: 14px; }
    .clm-topnav { gap: 16px; }
    .clm-topnav a { font-size: 11px; letter-spacing: 0.1em; }
    .clm-hero { padding: 64px 20px 88px; }
    .clm-welcome { padding: 0 18px 64px; margin-top: -44px; }
    .clm-section { padding: 60px 20px 22px; }
    .clm-band { padding: 20px 0 54px; }
}
