/* ==========================================================================
   WestView Commercial - site styles
   ========================================================================== */

:root {
  --navy: #1B2231;
  --navy-90: rgba(27, 34, 49, 0.9);
  --gold: #C49F64;
  --gold-dark: #AE8A50;
  /* Darker gold for small gold text on light backgrounds (meets 4.5:1 contrast).
     Set this to #C49F64 if you prefer the exact brand gold everywhere. */
  --gold-text: #866530;
  --off-white: #F6F7F9;
  --white: #FFFFFF;
  --border: #E3E6EB;
  --muted: #6B7280;
  --muted-dark: #4B5563;
  --light-box: #EEF0F3;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --wide: 1100px;
  --narrow: 880px;
  --gutter: 1.25rem;
  --header-h: 72px;
  --radius: 10px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--off-white);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }

p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--gold); }

.visually-hidden {
  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: 1rem; top: -100px;
  z-index: 200;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { width: 100%; max-width: var(--narrow); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 4.5rem 0; }
.section-white { background: var(--white); }

.gold { color: var(--gold); }

/* Small uppercase label */
.label {
  display: block;
  margin: 0 0 1rem;
  color: var(--gold-text);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.4;
}
.on-dark .label { color: var(--gold); }

.headline {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.lead { font-size: 1.125rem; color: var(--muted-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.875rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-gold { background: #C49F64; color: var(--navy); border-color: #C49F64; }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--navy); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

.link-arrow {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gold-text);
  text-decoration: none;
}
.link-arrow span { transition: transform 0.2s ease; }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--navy-90);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  font-size: 1.375rem;
  line-height: 1;
  white-space: nowrap;
}
.logo-west { font-family: var(--font-sans); font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.logo-com { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--gold); }
.logo:hover .logo-west { color: var(--white); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--navy);
  padding: 0.5rem var(--gutter) 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}
.site-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block;
  padding: 0.875rem 0;
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-list a:hover { color: var(--gold); }
.nav-list a[aria-current="page"] { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-phone {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.nav-phone:hover { color: var(--white); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex !important;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: none;
    border: 0;
  }
  .nav-list { display: flex; gap: 1.75rem; }
  .nav-list a { padding: 0.5rem 0; border: 0; font-size: 0.75rem; }
  .nav-phone { margin: 0; font-size: 0.9375rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding: 3.5rem 0 2.5rem; }
.footer-inner { display: grid; gap: 1.75rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.footer-links a { color: var(--white); text-decoration: none; font-size: 0.9375rem; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { margin: 0; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-copy { grid-column: 1 / -1; }
}

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  color: var(--white);
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%),
    url("/images/home-hero-office-building.png");
  background-size: cover;
  background-position: center;
}
.hero-content { max-width: 48rem; }
.hero-motto {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title .gold { font-style: normal; }
.hero-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 40rem;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; flex-direction: column; gap: 1rem; }

@media (min-width: 640px) {
  .hero-motto { font-size: 1.25rem; }
  .hero-title { font-size: 3.25rem; }
  .hero-text { font-size: 1.25rem; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 1024px) {
  .hero-motto { font-size: 1.5rem; }
  .hero-title { font-size: 4.5rem; }
}

/* ---------- Home: highlights ---------- */
.highlights { padding: 4rem 0; }
.highlight-grid { display: grid; gap: 2.5rem; }
.highlight-icon { width: 36px; height: 36px; color: var(--gold); margin-bottom: 1.25rem; }
.highlight-title { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.625rem; }
.highlight p { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }

@media (min-width: 640px) {
  .highlight-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
}
@media (min-width: 1024px) {
  .highlight-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .highlight { padding: 0.5rem 2rem; border-left: 1px solid var(--border); }
  .highlight:first-child { padding-left: 0; border-left: 0; }
  .highlight:last-child { padding-right: 0; }
}

/* ---------- Home: story ---------- */
.story p { font-size: 1.0625rem; color: var(--muted-dark); }
.quote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  color: var(--navy);
}
.quote p { color: inherit !important; font-size: inherit !important; margin: 0; }

/* ---------- Home: stats ---------- */
.stats { background: var(--navy); color: var(--white); padding: 4rem 0; }
.stats-grid { display: grid; gap: 2.5rem; text-align: center; margin: 0; padding: 0; list-style: none; }
.stat-big {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
}
.stat-caption { display: block; margin-top: 0.625rem; color: rgba(255, 255, 255, 0.72); font-size: 0.9375rem; }
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start; }
  .stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.12); }
}

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 5rem 0; }
.cta .lead { max-width: 40rem; margin: 0 auto 2rem; }

/* ---------- Inner page header ---------- */
.page-header {
  padding: calc(var(--header-h) + 4rem) 0 3.5rem;
  background: var(--off-white);
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.page-header .intro { font-size: 1.125rem; color: var(--muted); max-width: 44rem; }
.page-header-center { text-align: center; }
.page-header-center .intro { margin-left: auto; margin-right: auto; }

/* ---------- Services ---------- */
.service-cards { display: grid; gap: 1.5rem; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.service-card .label { margin-bottom: 0.75rem; font-size: 0.75rem; }
.service-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  margin-bottom: 1rem;
}
.service-card p { color: var(--muted-dark); }
.tags { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--off-white);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--navy);
  line-height: 1.4;
}
@media (min-width: 1024px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 2.5rem; }
}

.handle-heading { font-family: var(--font-serif); font-size: clamp(1.625rem, 3.2vw, 2.25rem); margin-bottom: 2.5rem; }
.handle-grid { display: grid; gap: 2rem; }
.handle-item { padding-top: 1.25rem; border-top: 2px solid var(--gold); }
.handle-item h3 { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; }
.handle-item p { color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 640px) { .handle-grid { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 2rem; } }
@media (min-width: 1024px) { .handle-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Why WestView ---------- */
.why-grid { display: grid; gap: 1.5rem; }
.why-card .icon { width: 36px; height: 36px; color: var(--gold); margin-bottom: 1.25rem; }
.why-card h2 { font-family: var(--font-serif); font-size: 1.375rem; margin-bottom: 0.75rem; }
.why-card p { color: var(--muted-dark); font-size: 0.9375rem; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- About ---------- */
.about-story p { font-size: 1.0625rem; color: var(--muted-dark); }
.about-story .gold-text { color: var(--gold-text); font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.55; }
.mission .quote { margin: 0; }

.values-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.value-box { background: var(--light-box); border-radius: var(--radius); padding: 1.75rem; }
.value-box h3 { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 0.625rem; }
.value-box p { color: var(--muted-dark); font-size: 0.9375rem; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }

.team-list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.team-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.team-text { flex: 1; min-width: 0; }
.team-text h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 0.25rem; }
.team-role { margin-bottom: 1rem; color: var(--gold-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.team-text p.bio { color: var(--muted-dark); font-size: 0.9375rem; }

.initials {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.team-photo { display: none; }
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-box);
  color: var(--muted);
  font-size: 0.8125rem;
}

@media (max-width: 639px) {
  .team-card { flex-direction: column; }
  .initials-side { order: -1; }
}
@media (min-width: 640px) {
  .team-card { padding: 2rem; gap: 2rem; }
  .initials-mobile { display: none; }
  .team-photo {
    display: block;
    flex-shrink: 0;
    order: 2;
    width: 200px;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light-box);
  }
  .team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
  .team-photo .photo-placeholder { width: 100%; height: 100%; }
  .initials-side { order: 2; width: 120px; height: 120px; font-size: 2.25rem; }
}
@media (min-width: 1024px) {
  .team-photo { width: 240px; }
  .initials-side { width: 160px; height: 160px; font-size: 2.75rem; margin: 0 40px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; } }

.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.required-mark { color: var(--gold-text); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #C9CED6;
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #8A909A; }
.form-field input:focus-visible,
.form-field textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.contact-form .btn { width: 100%; }
.contact-form .btn[disabled] { opacity: 0.7; cursor: wait; }
@media (min-width: 640px) { .contact-form .btn { width: auto; } }

.form-status { margin-top: 1.25rem; padding: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 1rem 1.25rem; border-radius: 6px; background: #E8F3EC; color: #1D5B36; }
.form-status.is-error { padding: 1rem 1.25rem; border-radius: 6px; background: #FBEAEA; color: #8A1F1F; }

.contact-details h2 { font-family: var(--font-serif); font-size: 1.625rem; margin-bottom: 1.5rem; }
.detail-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 1rem; }
.detail-list li { display: flex; gap: 0.875rem; align-items: flex-start; }
.detail-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 0.25rem; color: var(--gold); }
.detail-list a { color: var(--navy); text-decoration-color: var(--gold); }
.detail-list a:hover { color: var(--gold-text); }
.hours h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.hours p { margin: 0; color: var(--muted-dark); }

.map {
  margin-top: 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--light-box);
  aspect-ratio: 4 / 3;
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.directions { margin-top: 1rem; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
