/* =============================================================
   THEME VARIABLES
   This is the ONLY place you should need to touch to re-skin the
   whole site. Change colors, fonts, spacing, or radius here and
   the rest of the template updates automatically.
============================================================= */
:root {
  /* --- Color palette ---
     A warm, editorial "ink + brass" palette that reads as premium
     without leaning on any one industry. Swap these to rebrand. */
  --color-primary: #a9784f;        /* brand accent: buttons, links, highlights */
  --color-primary-dark: #8f6440;   /* hover/active state for primary color */
  --color-primary-light: #c9a26d;  /* lighter accent, used on dark backgrounds */
  --color-secondary: #14171c;      /* ink black — headings, footer, dark sections */
  --color-secondary-soft: #1f232b; /* slightly lighter ink, for gradients/panels */

  --color-bg: #fbfaf8;             /* main page background (warm off-white) */
  --color-bg-alt: #f3efe9;         /* alternate section background (zebra striping) */
  --color-text: #23262b;           /* primary body text */
  --color-text-muted: #6b7078;     /* secondary/subtitle text */
  --color-border: #e6e1d8;         /* borders, dividers */
  --color-white: #ffffff;

  /* --- Typography ---
     A serif display font paired with a clean sans body reads as
     considerably more premium than sans-only pairings. Update the
     font-family names to match whatever you load in index.html. */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* --- Layout ---
     Controls max content width and consistent spacing rhythm. */
  --max-width: 1180px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 3.5rem;
  --spacing-xl: 7.5rem;

  /* --- Shape, shadow & motion --- */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(20, 23, 28, 0.06);
  --shadow: 0 12px 32px rgba(20, 23, 28, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 23, 28, 0.16);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   RESET / BASE STYLES
============================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

em {
  font-style: italic;
  color: var(--color-primary);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

svg {
  width: 100%;
  height: 100%;
}

/* Reusable centered content wrapper */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Generic vertical section spacing, used on About / Services / Contact */
.section {
  padding: var(--spacing-xl) 0;
}

/* Alternate background for visual rhythm between sections */
.alt-bg {
  background-color: var(--color-bg-alt);
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--spacing-lg);
}

.section-heading h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  margin: var(--spacing-sm) 0;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
}

.eyebrow-light {
  color: var(--color-primary-light);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* -------------------------------------------------------------
   Scroll reveal
   Elements with .reveal start slightly lower + transparent and
   animate into place when they enter the viewport (see main.js,
   which toggles .is-visible via IntersectionObserver).
------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal: like .reveal, but animates each direct child in
   sequence instead of the container as a whole. Used on grids/lists
   (services, testimonials, highlights) for a more premium cascade. */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }

/* Slow, continuous float used for small decorative elements
   (the About badge, the hero scroll cue). */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .about-badge,
  .scroll-cue,
  .hero-glow {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Reusable button styles ------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.05rem 2.25rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(169, 120, 79, 0.28);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: 0 10px 26px rgba(169, 120, 79, 0.36);
}

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

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}

/* =============================================================
   HEADER / NAVIGATION
   Fixed + transparent over the hero. js/main.js adds ".scrolled"
   once the page scrolls, switching it to a solid blurred bar.
============================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-header.scrolled {
  background-color: rgba(251, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  transition: padding var(--transition);
}

.site-header.scrolled .header-inner {
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--color-white);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
}

.site-header.scrolled .logo {
  color: var(--color-secondary);
}

/* Logo as an image (see index.html): auto-sized so any file you drop
   in looks right without extra edits. The header uses two versions
   (light/dark) swapped on scroll so the logo stays legible over both
   the dark hero and the solid scrolled bar; the footer — always on a
   dark background — only ever needs the light version. */
.logo-img {
  display: block;
  height: 32px;
  width: auto;
}

.logo-img--dark {
  display: none;
}

.site-header.scrolled .logo-img--light {
  display: none;
}

.site-header.scrolled .logo-img--dark {
  display: block;
}

.main-nav ul {
  display: flex;
  gap: var(--spacing-md);
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-header.scrolled .main-nav a {
  color: var(--color-text);
}

.main-nav a:hover {
  color: var(--color-primary-light);
}

.site-header.scrolled .main-nav a:hover {
  color: var(--color-primary);
}

.nav-cta {
  flex-shrink: 0;
}

/* Hamburger button — hidden on desktop, shown on mobile (see media query).
   -webkit-appearance/appearance and padding are reset because Safari's
   default <button> styling can otherwise interfere with custom icons
   like this one — without it, the button stays clickable but the three
   lines can render invisibly on iOS. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background-color var(--transition);
}

.site-header.scrolled .nav-toggle span {
  background-color: var(--color-secondary);
}

/* State applied by js/main.js when the mobile menu is open */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================================
   HERO SECTION
   A dark gradient base with a soft layered "mesh" glow behind the
   content — pure CSS, no image required. Recolor by adjusting the
   --color-secondary / --color-primary variables above.
============================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-secondary) 0%, var(--color-secondary-soft) 55%, #24201c 100%);
  color: var(--color-white);
  text-align: center;
  padding: calc(var(--spacing-xl) + 3rem) 0 var(--spacing-xl);
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  inset: -5%;
  z-index: 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(201, 162, 109, 0.35), transparent 45%),
    radial-gradient(circle at 82% 15%, rgba(169, 120, 79, 0.28), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(201, 162, 109, 0.18), transparent 50%);
  pointer-events: none;
  transition: transform 0.4s ease-out;
  will-change: transform;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  margin: var(--spacing-md) 0;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto var(--spacing-lg);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--spacing-lg);
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  color: rgba(255, 255, 255, 0.55);
  animation: bob 2.4s ease-in-out infinite;
  z-index: 1;
}

.scroll-cue:hover {
  color: var(--color-white);
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =============================================================
   STATS / TRUST BAR
============================================================= */
.stats-bar {
  background-color: var(--color-secondary);
  padding: var(--spacing-lg) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--color-primary-light);
}

.stat-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =============================================================
   ABOUT SECTION
============================================================= */
.about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-subtitle {
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.highlight-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.highlight-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.highlight-list h4 {
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.highlight-list p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.about-media {
  position: relative;
}

.about-image-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(20, 23, 28, 0.08), rgba(169, 120, 79, 0.14)),
    repeating-linear-gradient(135deg, var(--color-bg-alt) 0px, var(--color-bg-alt) 2px, transparent 2px, transparent 14px);
  border: 1.5px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Real-photo version of the About media block (used once a photo
   replaces .about-image-placeholder — same footprint, no dashed
   border, and the image is cropped to fill the frame). */
.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background-color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  animation: float 4s ease-in-out infinite;
}

.about-badge strong {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--color-primary);
}

.about-badge span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* =============================================================
   SERVICES SECTION
============================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.service-card {
  position: relative;
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-primary);
}

.service-number {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-border);
  font-weight: 600;
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  padding: 12px;
}

.service-card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.2rem;
}

.service-card p {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.service-link:hover svg {
  transform: translateX(3px);
}

/* =============================================================
   TESTIMONIALS SECTION
============================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.testimonial-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--spacing-lg) var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  transition: box-shadow var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.stars {
  display: flex;
  gap: 0.25rem;
  color: var(--color-primary);
}

.stars svg {
  width: 16px;
  height: 16px;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-secondary);
  font-weight: 400;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  overflow: hidden;
}

/* When a real headshot is used instead of initials, fill the same
   circular frame and crop it neatly. */
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* =============================================================
   CTA BANNER
============================================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-soft));
  color: var(--color-white);
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.cta-inner h2 {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-lg);
  font-size: 1.05rem;
}

/* =============================================================
   CONTACT SECTION
============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.contact-form {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--color-primary);
}

/* Floating label pattern: the label sits inside the input until
   the field is focused or filled, then it floats above the text.
   Requires each input/textarea to have placeholder=" ". */
.form-row {
  position: relative;
  margin-bottom: var(--spacing-md);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 1.15rem 1rem 0.5rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg-alt);
  transition: border-color var(--transition), background-color var(--transition);
}

.form-row textarea {
  padding-top: 1.4rem;
  resize: vertical;
  min-height: 120px;
}

.form-row label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 1rem;
  color: var(--color-text-muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform var(--transition), color var(--transition), top var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-white);
}

.form-row input:focus + label,
.form-row input:not(:placeholder-shown) + label,
.form-row textarea:focus + label,
.form-row textarea:not(:placeholder-shown) + label {
  top: 0.5rem;
  transform: scale(0.78);
  color: var(--color-primary);
}

.form-status {
  margin-top: var(--spacing-sm);
  font-weight: 500;
  font-size: 0.92rem;
}

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: #dc2626;
}

.contact-details {
  background: linear-gradient(160deg, var(--color-secondary), var(--color-secondary-soft));
  color: var(--color-white);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
}

.contact-details h3 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  font-size: 1.3rem;
}

.contact-details ul li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.detail-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
}

.contact-details a {
  color: rgba(255, 255, 255, 0.9);
}

.contact-details a:hover {
  color: var(--color-primary-light);
}

/* =============================================================
   FOOTER
============================================================= */
.site-footer {
  background-color: var(--color-secondary);
  color: rgba(255, 255, 255, 0.65);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
}

.footer-logo {
  display: inline-block;
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  font-size: 0.92rem;
  margin-bottom: var(--spacing-md);
  max-width: 34ch;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--spacing-md);
}

.footer-col ul li {
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-col a:hover {
  color: var(--color-primary-light);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
}

.social-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.social-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  padding: var(--spacing-md);
  text-align: center;
  font-size: 0.85rem;
}

/* =============================================================
   RESPONSIVE / MOBILE STYLES
============================================================= */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .about .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    order: -1;
  }

  .about-badge {
    left: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .nav-cta {
    display: none;
  }

  /* Collapse the nav into a hamburger menu here too (not just on small
     phones) — five spelled-out links plus the logo get cramped once a
     tablet-width screen drops below this point, so the burger icon
     takes over at the same breakpoint the "Get in Touch" button hides. */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .main-nav.is-open {
    max-height: 320px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
  }

  .main-nav a {
    color: var(--color-text);
  }

  .hero {
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  /* Tighter spacing rhythm on phones. Section padding, hero padding,
     card padding, and footer padding all pull from --spacing-lg and
     --spacing-xl, so scaling just these two down tightens the whole
     page's vertical rhythm at once, instead of shrinking desktop-sized
     gaps section by section. */
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
  }

  /* A tall 4:5 portrait crop pushes the About text far down the page
     on a phone (the image already shows above the text here) — a
     shorter crop keeps things moving without losing the framed look. */
  .about-image-placeholder,
  .about-photo {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 400px) {
  /* On the narrowest phones, give the stats a little more breathing
     room by dropping to a single column instead of a cramped 2x2. */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}
