/*
Theme Name: Max Safe Assets
Theme URI: https://example.com/max-safe-assets
Author: Max Safe Assets
Author URI: https://example.com
Description: A modern, clean real estate & property-investment theme. Premium evergreen-and-brass identity, mono data treatment, and a dynamic Team roster ordered by a simple position number (no drag-and-drop, no plugins required).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: max-safe-assets
Tags: real-estate, business, custom-post-type, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================================
   Design tokens
   ========================================================================= */
:root {
  /* Color */
  --ink:        #14201C;   /* primary text */
  --ink-soft:   #48544E;   /* secondary text */
  --pine:       #0F3B2E;   /* brand — deep evergreen */
  --pine-700:   #0A2C21;   /* darker brand */
  --pine-050:   #E7EDE9;   /* faint brand tint */
  --brass:      #B4883F;   /* accent — value / assets */
  --brass-600:  #9A722F;
  --paper:      #F5F6F2;   /* page background */
  --paper-2:    #ECEEE7;   /* secondary surface */
  --card:       #FFFFFF;
  --line:       #DADED4;   /* hairlines */
  --line-dark:  rgba(245,246,242,0.16);
  --sage:       #6E7E72;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Fluid type scale */
  --fs-eyebrow: 0.75rem;
  --fs-small:   0.875rem;
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.15rem, 0.9rem + 0.9vw, 1.4rem);
  --fs-h3:      clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --fs-h2:      clamp(1.9rem, 1.4rem + 2.1vw, 3rem);
  --fs-display: clamp(2.6rem, 1.6rem + 4.6vw, 5.25rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20,32,28,0.05), 0 1px 3px rgba(20,32,28,0.06);
  --shadow-md: 0 10px 30px -12px rgba(15,59,46,0.22);
  --shadow-lg: 0 24px 60px -22px rgba(15,59,46,0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================================
   Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { border-style: none; }

a { color: var(--pine); text-decoration: none; text-underline-offset: 0.18em; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }

button { font: inherit; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2.5px solid var(--brass); outline-offset: 3px; border-radius: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--pine); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* =========================================================================
   Layout helpers
   ========================================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }

.section { padding-block: clamp(3.5rem, 2rem + 7vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--paper2 { background: var(--paper-2); }
.section--pine { background: var(--pine); color: var(--paper); }
.section--pine h1, .section--pine h2, .section--pine h3 { color: var(--paper); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-600);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.7; }
.section--pine .eyebrow { color: var(--brass); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); }
.section-head h2 { font-size: var(--fs-h2); margin-top: 0.7rem; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: var(--fs-lead); }
.section--pine .section-head p { color: rgba(245,246,242,0.78); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  --btn-bg: var(--pine);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.85em 1.5em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg); border-radius: 999px;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn .btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--brass { --btn-bg: var(--brass); --btn-fg: #1c1408; border-color: var(--brass); }
.btn--brass:hover { --btn-bg: var(--brass-600); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--pine); box-shadow: none; }
.section--pine .btn--ghost,
.hero .btn--ghost { --btn-fg: var(--paper); border-color: var(--line-dark); }
.section--pine .btn--ghost:hover,
.hero .btn--ghost:hover { border-color: rgba(245,246,242,0.5); }

/* =========================================================================
   Site header
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand__name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.24rem; line-height: 1;
  letter-spacing: -0.02em; color: var(--ink);
}
.brand__name b { color: var(--pine); font-weight: 600; }

.primary-nav ul { display: flex; align-items: center; gap: clamp(1rem, 0.4rem + 1.4vw, 2.1rem); }
.primary-nav a {
  color: var(--ink-soft); font-size: var(--fs-small); font-weight: 500;
  padding-block: 0.4rem; position: relative;
}
.primary-nav a:hover { color: var(--ink); text-decoration: none; }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--ink); }
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--brass);
}

.header__actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--card); border-radius: 10px; padding: 0; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 18px; height: 2px; background: var(--ink);
  transform: translateX(-50%); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateX(-50%) rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: translateX(-50%) rotate(-45deg); top: 0; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  /* Pine overlay (darker on the text side) over the building photo. */
  background:
    linear-gradient(105deg, rgba(10,44,33,0.96) 0%, rgba(12,50,38,0.9) 42%, rgba(15,59,46,0.6) 100%),
    #0A2C21 url(assets/images/hero-building.jpg) center 30% / cover no-repeat;
  color: var(--paper);
  padding-block: clamp(4rem, 2rem + 10vw, 8.5rem);
}
.hero__lines { position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none; color: rgba(180,136,63,0.5); }
.hero__inner { position: relative; z-index: 1; max-width: 62ch; }
.hero__eyebrow { color: var(--brass); }
.hero h1 {
  font-size: var(--fs-display); font-weight: 400; color: var(--paper);
  margin-top: 1.4rem; letter-spacing: -0.02em; line-height: 1.02;
}
.hero h1 em { font-style: italic; color: var(--brass); }
.hero__lead { margin-top: 1.6rem; font-size: var(--fs-lead); color: rgba(245,246,242,0.82); max-width: 52ch; }
.hero__cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__stats {
  position: relative; z-index: 1;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: rgba(255,255,255,0.02); padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); }
.stat__num { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); font-weight: 500; color: var(--paper); line-height: 1; }
.stat__num .unit { color: var(--brass); font-size: 0.6em; }
.stat__label { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,246,242,0.6); margin-top: 0.7rem; }

/* =========================================================================
   Approach — genuine sequence, numbered
   ========================================================================= */
.approach__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 0.5rem + 2vw, 2.25rem); }
.approach-step { padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.approach-step__n { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--brass-600); letter-spacing: 0.1em; }
.approach-step h3 { font-size: var(--fs-h3); margin-top: 0.9rem; }
.approach-step p { margin-top: 0.6rem; color: var(--ink-soft); }

/* =========================================================================
   Property cards (static, editable in template)
   ========================================================================= */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 0.5rem + 2vw, 2rem); }
.property-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.property-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--pine-050); overflow: hidden; }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; }
.property-card__tag {
  position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; background: var(--card); color: var(--pine);
  padding: 0.35em 0.75em; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.property-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.property-card__loc { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); }
.property-card h3 { font-size: 1.35rem; margin-top: 0.5rem; }
.property-card__price { font-family: var(--font-mono); font-size: 1.05rem; color: var(--ink); margin-top: 0.75rem; font-weight: 500; }
.property-card__specs { display: flex; gap: 1.1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-soft); }
.property-card__specs span { display: inline-flex; align-items: center; gap: 0.4em; }
.property-card__media--empty { display: grid; place-items: center; color: var(--pine); }

/* =========================================================================
   Team roster — the dynamic, position-ordered signature
   ========================================================================= */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 0.5rem + 2.4vw, 2.5rem); }

.team-card { position: relative; }
.team-card__media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--pine-050); box-shadow: var(--shadow-sm);
}
.team-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.team-card:hover .team-card__media img { transform: scale(1.04); }
.team-card__media--empty { display: grid; place-items: center; color: var(--pine); }
.team-card__pos {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em;
  color: var(--pine); background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  min-width: 2.4em; height: 2.4em; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; box-shadow: var(--shadow-sm);
}
.team-card__body { padding-top: 1.1rem; }
.team-card__name { font-size: 1.4rem; }
.team-card__role { font-family: var(--font-mono); font-size: var(--fs-small); letter-spacing: 0.06em; color: var(--brass-600); margin-top: 0.25rem; }
.team-card__bio { margin-top: 0.75rem; color: var(--ink-soft); font-size: var(--fs-small); }
.team-card__contact { display: flex; gap: 0.9rem; margin-top: 1rem; }
.team-card__contact a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); transition: all 0.25s var(--ease); }
.team-card__contact a:hover { border-color: var(--pine); color: var(--pine); background: var(--pine-050); }

/* Single team member */
.member { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(1.5rem, 0.5rem + 3vw, 3.5rem); align-items: start; }
.member__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); position: sticky; top: 100px; }
.member__pos { font-family: var(--font-mono); color: var(--brass-600); letter-spacing: 0.1em; }
.member__name { font-size: var(--fs-h2); margin-top: 0.5rem; }
.member__role { font-family: var(--font-mono); color: var(--ink-soft); letter-spacing: 0.05em; margin-top: 0.4rem; }
.member__meta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.member__bio { margin-top: 1.6rem; }
.member__bio p { margin-top: 1rem; color: var(--ink-soft); }

/* =========================================================================
   Team teaser (front page)
   ========================================================================= */
.teaser-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(2rem,1rem+2vw,3rem); }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--fs-h2); max-width: 18ch; margin-inline: auto; }
.cta-band p { margin-top: 1rem; color: rgba(245,246,242,0.78); max-width: 46ch; margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; }

/* =========================================================================
   Content (single / page)
   ========================================================================= */
.page-hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(1.5rem,1rem+2vw,2.5rem); }
.page-hero h1 { font-size: var(--fs-h2); margin-top: 0.6rem; }
.page-hero p { margin-top: 1rem; color: var(--ink-soft); font-size: var(--fs-lead); max-width: 60ch; }

.entry-content { font-size: var(--fs-body); }
.entry-content > * + * { margin-top: 1.15rem; }
.entry-content h2 { font-size: var(--fs-h2); margin-top: 2.5rem; }
.entry-content h3 { font-size: var(--fs-h3); margin-top: 2rem; }
.entry-content a { color: var(--pine); text-decoration: underline; text-decoration-color: var(--line); }
.entry-content a:hover { text-decoration-color: var(--pine); }
.entry-content blockquote {
  border-left: 3px solid var(--brass); padding: 0.4rem 0 0.4rem 1.5rem; margin-inline: 0;
  font-family: var(--font-display); font-size: var(--fs-h3); font-style: italic; color: var(--ink);
}
.entry-content img { border-radius: var(--radius); }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: 0.4rem; }
.entry-content code { font-family: var(--font-mono); font-size: 0.9em; background: var(--paper-2); padding: 0.15em 0.4em; border-radius: 5px; }

.post-meta { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); }

/* Archive list */
.post-list { display: grid; gap: 2.5rem; }
.post-list__item { display: grid; grid-template-columns: 200px 1fr; gap: 1.75rem; align-items: start; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.post-list__thumb { aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: var(--pine-050); }
.post-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list__item h2 { font-size: var(--fs-h3); }
.post-list__item h2 a { color: var(--ink); }
.post-list__item h2 a:hover { color: var(--pine); }
.post-list__excerpt { margin-top: 0.6rem; color: var(--ink-soft); }

/* Pagination */
.pagination { margin-top: 3rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding-inline: 0.6rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-soft); font-size: var(--fs-small); }
.pagination .page-numbers:hover { border-color: var(--pine); color: var(--pine); text-decoration: none; }
.pagination .page-numbers.current { background: var(--pine); border-color: var(--pine); color: #fff; }

/* Search form */
.search-form { display: flex; gap: 0.5rem; max-width: 420px; }
.search-form input[type="search"] { flex: 1; padding: 0.75em 1em; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; color: var(--ink); }
.search-form input[type="search"]:focus { outline: none; border-color: var(--pine); }
.search-form button { padding-inline: 1.3em; }

/* 404 */
.error-404 { text-align: center; padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.error-404 .code { font-family: var(--font-mono); font-size: clamp(4rem, 3rem + 8vw, 8rem); color: var(--pine-050); line-height: 1; font-weight: 500; }
.error-404 h1 { font-size: var(--fs-h2); margin-top: -0.5rem; }
.error-404 p { margin-top: 1rem; color: var(--ink-soft); }
.error-404 .search-form { margin: 2rem auto 0; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--pine-700); color: rgba(245,246,242,0.72); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; }
.site-footer a { color: rgba(245,246,242,0.72); }
.site-footer a:hover { color: var(--paper); text-decoration: none; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer__brand .brand__name { color: var(--paper); }
.footer__brand .brand__name b { color: var(--brass); }
.footer__tag { margin-top: 1rem; max-width: 34ch; font-size: var(--fs-small); }
.footer__col h4 { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245,246,242,0.5); font-weight: 500; margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: 0.6rem; font-size: var(--fs-small); }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.06em; color: rgba(245,246,242,0.5); }

.widget-area { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.widget-area .widget-title { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245,246,242,0.5); margin-bottom: 0.9rem; }

/* Footer contact list + social */
.footer__contact { display: grid; gap: 0.8rem; font-size: var(--fs-small); }
.footer__contact li { display: flex; gap: 0.65rem; align-items: flex-start; line-height: 1.5; }
.footer__contact svg { flex: 0 0 auto; margin-top: 3px; color: var(--brass); opacity: 0.85; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.footer__social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line-dark); border-radius: 50%; color: rgba(245,246,242,0.72); transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.footer__social a:hover { border-color: var(--brass); color: var(--brass); text-decoration: none; }

/* =========================================================================
   Contact page template
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 0.5rem + 3vw, 3.5rem); align-items: start; }
.contact-details { display: grid; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item__icon { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--pine); background: var(--card); }
.contact-item__label { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.contact-item__value { font-size: 1.08rem; color: var(--ink); margin-top: 0.25rem; }
.contact-item__value a { color: var(--ink); }
.contact-item__value a:hover { color: var(--pine); }
.contact-social { margin-top: 0.5rem; }
.contact-social a { color: var(--ink-soft); border-color: var(--line); }
.contact-social a:hover { border-color: var(--brass); color: var(--brass); }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--pine-050); box-shadow: var(--shadow-sm); }
.contact-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 300px; }
}

/* =========================================================================
   Scroll reveal
   ========================================================================= */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 960px) {
  .member { grid-template-columns: 1fr; }
  .member__media { position: static; max-width: 360px; }
  .approach__grid, .property-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: 78px 0 auto 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all 0.28s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .primary-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 0.9rem 0; font-size: 1.05rem; }
  .header__actions .btn { display: none; }
  .hero__stats { grid-template-columns: 1fr; }
  .approach__grid, .property-grid, .team-grid { grid-template-columns: 1fr; }
  .post-list__item { grid-template-columns: 1fr; }
  .post-list__thumb { max-width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
}
