/* ==========================================================================
   Anthem Living — Design System
   Premium residential homebuilder. Warm, architectural, credible.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Color */
  --ink:      #1a1c1a;
  --forest:   #2c3a30;
  --forest-2: #38493c;
  --bronze:   #b0895c;
  --bronze-2: #9a7549;
  --cream:    #f6f2ea;
  --sand:     #ece4d6;
  --sand-2:   #e0d6c4;
  --stone:    #7d786e;
  --line:     rgba(26,28,26,.12);
  --white:    #ffffff;

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Reset -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Typography --------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronze-2);
  display: inline-block;
}
.display  { font-size: clamp(2.6rem, 6vw, 5rem); }
.h2       { font-size: clamp(2rem, 4vw, 3.25rem); }
.h3       { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.lead     { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--stone); line-height: 1.6; }
.muted    { color: var(--stone); }

/* Layout helpers ----------------------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section   { padding-block: clamp(64px, 9vw, 130px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.center    { text-align: center; }
.stack > * + * { margin-top: 1.1rem; }
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 15px 30px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--forest); color: var(--cream); }
.btn--primary:hover { background: var(--ink); }
.btn--bronze  { background: var(--bronze); color: #fff; }
.btn--bronze:hover { background: var(--bronze-2); }
.btn--ghost   { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light   { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.btn--light:hover { background: #fff; color: var(--ink); }
.arrow-link { font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--bronze-2); display: inline-flex; gap: .5em; align-items: center; }
.arrow-link span { transition: transform .3s var(--ease); }
.arrow-link:hover span { transform: translateX(5px); }

/* Header ------------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding-block: 22px;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.header.scrolled { background: rgba(246,242,234,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding-block: 14px; }
.header.scrolled .nav a, .header.scrolled .brand { color: var(--ink); }
.brand { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 30px; height: 30px; border: 1.5px solid currentColor; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 600;
}
.brand small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; line-height: 1; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 14px; font-weight: 500; letter-spacing: .02em; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--bronze); transition: width .3s var(--ease); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
/* header over dark hero */
.header--overlay:not(.scrolled) .nav a, .header--overlay:not(.scrolled) .brand { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: .3s var(--ease); }
.nav-toggle span:nth-child(1){ top: 0; } .nav-toggle span:nth-child(2){ top: 10px; } .nav-toggle span:nth-child(3){ top: 20px; }
.header--overlay:not(.scrolled) .nav-toggle { color: #fff; }

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(26,28,26,.45) 0%, rgba(26,28,26,.15) 35%, rgba(26,28,26,.75) 100%); }
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(60px, 9vw, 120px); padding-top: 140px; max-width: 900px; }
.hero .display { color: #fff; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 620px; }
.hero__meta { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.25); }
.hero__meta div strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; display: block; }
.hero__meta div span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* Cards -------------------------------------------------------------------- */
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(26,28,26,.06); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(26,28,26,.12); }
.card__img { aspect-ratio: 4/3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 26px 28px 30px; }
.card__body h3 { margin-bottom: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bronze-2); margin-bottom: 12px; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze); }

/* Community card variant */
.community { position: relative; isolation: isolate; border-radius: var(--radius); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; color: #fff; }
.community img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); z-index: 0; }
.community::after { content:''; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, transparent 30%, rgba(26,28,26,.85)); }
.community:hover img { transform: scale(1.05); }
.community__body { position: relative; z-index:2; padding: 30px; width: 100%; }
.community__body h3 { color: #fff; font-size: 1.7rem; }
.community__loc { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); font-weight: 600; }
.community__status { position: absolute; top: 20px; left: 20px; z-index: 3; background: rgba(255,255,255,.92); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 7px 13px; border-radius: 100px; }

/* Split feature ------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 5vw, 80px); }
.split__img img { border-radius: var(--radius); aspect-ratio: 5/6; object-fit: cover; width: 100%; }
.split--rev .split__img { order: 2; }

/* Feature list ------------------------------------------------------------- */
.features { display: grid; gap: 2px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--cream); padding: 34px 32px; }
.feature__num { font-family: var(--serif); font-size: 14px; color: var(--bronze-2); display: block; margin-bottom: 16px; }
.feature h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature p { font-size: 15px; color: var(--stone); }

/* Stats band --------------------------------------------------------------- */
.band { background: var(--forest); color: var(--cream); }
.band .eyebrow { color: var(--bronze); }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; text-align: center; }
.stat strong { font-family: var(--serif); font-size: clamp(2.5rem,5vw,3.6rem); font-weight: 500; display: block; color: #fff; }
.stat span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(246,242,234,.65); }

/* Provinces / presence ----------------------------------------------------- */
.province { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.province:hover { border-color: var(--bronze); transform: translateY(-4px); }
.province .abbr { font-family: var(--serif); font-size: 3rem; color: var(--sand-2); line-height: 1; }
.province.is-new .abbr { color: var(--bronze); }
.province h3 { margin: 10px 0 6px; }
.province .pill { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 11px; border-radius: 100px; background: var(--sand); color: var(--stone); display: inline-block; }
.province.is-new .pill { background: var(--bronze); color: #fff; }

/* Steps -------------------------------------------------------------------- */
.step { display: flex; gap: 26px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step__n { font-family: var(--serif); font-size: 1.6rem; color: var(--bronze); min-width: 54px; }
.step h3 { font-size: 1.35rem; margin-bottom: 6px; }
.step p { color: var(--stone); }

/* CTA ---------------------------------------------------------------------- */
.cta { position: relative; isolation: isolate; color: #fff; text-align: center; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; z-index: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(44,58,48,.82), rgba(26,28,26,.88)); }
.cta .container { position: relative; z-index: 2; }
.cta .h2 { color: #fff; }
.cta .lead { color: rgba(255,255,255,.85); max-width: 560px; margin-inline: auto; }

/* Forms -------------------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--stone); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(176,137,92,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--stone); }

/* Contact info list */
.info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border: 0; }
.info-item .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; color: var(--forest); flex: none; }
.info-item h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); margin-bottom: 3px; }
.info-item p, .info-item a { font-size: 17px; }

/* Page hero (interior) ----------------------------------------------------- */
.pagehero { position: relative; isolation: isolate; padding-top: 180px; padding-bottom: 80px; color: #fff; overflow: hidden; }
.pagehero__bg { position: absolute; inset: 0; z-index: 0; }
.pagehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehero::after { content:''; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(26,28,26,.6), rgba(26,28,26,.72)); }
.pagehero .container { position: relative; z-index: 2; }
.pagehero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); }
.pagehero .lead { color: rgba(255,255,255,.85); max-width: 620px; }
.breadcrumb { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }

/* Footer ------------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(246,242,234,.7); padding-block: 80px 40px; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.footer .brand { color: var(--cream); margin-bottom: 18px; }
.footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); margin-bottom: 18px; }
.footer ul li { margin-bottom: 11px; font-size: 15px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 60px; padding-top: 28px; border-top: 1px solid rgba(246,242,234,.12); font-size: 13px; color: rgba(246,242,234,.45); }

/* Reveal animation --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 900px) {
  .cols-3, .cols-4, .stats, .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .split, .cols-2 { grid-template-columns: 1fr; }
  .split--rev .split__img { order: 0; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; background: var(--forest); padding: 40px; transform: translateX(100%); transition: transform .4s var(--ease); }
  .nav.open { transform: none; box-shadow: -20px 0 60px rgba(0,0,0,.3); }
  .nav a, .header.scrolled .nav a, .header--overlay:not(.scrolled) .nav a { color: #fff; font-size: 20px; font-family: var(--serif); }
  .nav .btn { color: #fff; }
  .nav-toggle { display: block; z-index: 101; }
}
@media (max-width: 560px) {
  .cols-3, .cols-4, .stats, .footer__grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .hero__meta { gap: 26px; }
  .hero__meta div strong { font-size: 1.7rem; }
}

/* ==========================================================================
   WORDPRESS + ELEMENTOR COMPATIBILITY LAYER
   Bridges brand styling to WP menus and Elementor's inner DOM.
   Apply the .al-* helper classes in Elementor's "CSS Classes" field.
   ========================================================================== */

/* --- Coded header nav (WordPress menu) ----------------------------------- */
.anthem-menu { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.anthem-menu li { margin: 0; }
.anthem-menu a { font-size: 14px; font-weight: 500; letter-spacing: .02em; position: relative; }
.anthem-menu a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--bronze); transition: width .3s var(--ease); }
.anthem-menu a:not(.btn):hover::after,
.anthem-menu .current-menu-item > a:not(.btn)::after { width: 100%; }
.header--overlay:not(.scrolled) .anthem-menu a { color: #fff; }
.header.scrolled .anthem-menu a { color: var(--ink); }
@media (max-width: 900px) {
  .anthem-menu { flex-direction: column; align-items: flex-start; gap: 24px; width: 100%; }
  .nav a, .anthem-menu a { color: #fff !important; font-size: 20px; font-family: var(--serif); }
}

/* --- Elementor heading/text helpers (target the inner rendered element) --- */
.al-eyebrow .elementor-heading-title,
.al-eyebrow p { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze-2); margin: 0; }
.al-eyebrow-light .elementor-heading-title,
.al-eyebrow-light p { color: var(--bronze) !important; }

.al-display .elementor-heading-title { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; font-size: clamp(2.6rem, 6vw, 5rem); }
.al-h2 .elementor-heading-title { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; font-size: clamp(2rem, 4vw, 3.25rem); }
.al-h3 .elementor-heading-title { font-family: var(--serif); font-weight: 500; line-height: 1.12; font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.al-serif .elementor-heading-title { font-family: var(--serif); font-weight: 500; }

.al-lead .elementor-widget-container,
.al-lead p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--stone); }
.al-muted p, .al-muted .elementor-widget-container { color: var(--stone); }
.al-on-dark .elementor-heading-title { color: #fff; }
.al-on-dark p, .al-on-dark .elementor-widget-container { color: rgba(246,242,234,.8); }

/* --- Elementor button helpers (target the inner .elementor-button) -------- */
.al-btn-forest .elementor-button,
.al-btn-bronze .elementor-button,
.al-btn-light .elementor-button,
.al-btn-ghost .elementor-button {
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: 15px 30px; border-radius: var(--radius);
  border: 1px solid transparent; transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.al-btn-forest .elementor-button:hover,
.al-btn-bronze .elementor-button:hover,
.al-btn-light .elementor-button:hover,
.al-btn-ghost .elementor-button:hover { transform: translateY(-2px); }
.al-btn-forest .elementor-button { background: var(--forest); color: var(--cream); }
.al-btn-forest .elementor-button:hover { background: var(--ink); }
.al-btn-bronze .elementor-button { background: var(--bronze); color: #fff; }
.al-btn-bronze .elementor-button:hover { background: var(--bronze-2); }
.al-btn-light .elementor-button { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.al-btn-light .elementor-button:hover { background: #fff; color: var(--ink); }
.al-btn-ghost .elementor-button { background: transparent; color: var(--ink); border-color: var(--line); }
.al-btn-ghost .elementor-button:hover { border-color: var(--ink); }

/* --- Elementor structural helpers ---------------------------------------- */
/* Fixed header clearance for interior pages built in Elementor */
.al-pagehero { padding-top: 180px !important; }
/* Let a container use the brand section rhythm */
.al-section { padding-block: clamp(64px, 9vw, 130px); }
.al-section-tight { padding-block: clamp(48px, 6vw, 84px); }
/* Image widget inside a .community/.card container fills it */
.community .elementor-widget-image,
.community .elementor-widget-image .elementor-widget-container,
.community .elementor-image { position: static; }
.community img { border-radius: 0; }

/* Elementor container niceties */
.al-card { background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(26,28,26,.06); transition: transform .4s var(--ease), box-shadow .4s var(--ease); overflow: hidden; }
.al-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(26,28,26,.12); }

/* --- Elementor content helpers (stats, labels, centering) ----------------- */
.al-center .elementor-heading-title,
.al-center .elementor-widget-container,
.al-center p { text-align: center; }
.al-stat-num .elementor-heading-title { font-family: var(--serif); font-weight: 500; font-size: 2.2rem; line-height: 1; color: #fff; }
.al-stat-num-lg .elementor-heading-title { font-size: clamp(2.5rem, 5vw, 3.6rem); }
.al-stat-label .elementor-widget-container,
.al-stat-label p { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(246,242,234,.65); margin: 0; }
.al-feature-num .elementor-heading-title { font-family: var(--serif); font-size: 14px; color: var(--bronze-2); }
.al-loc .elementor-widget-container,
.al-loc p { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); font-weight: 600; margin: 0; }
.al-price .elementor-widget-container,
.al-price p { color: var(--bronze); font-weight: 600; margin: 0; }
