/* ==========================================================================
   Grové Dental — Global Stylesheet
   Mobile-first, semantic, no build step.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap');

:root {
  /* Colour palette */
  --color-gold: #b09569;
  --color-gold-dark: #83714f;   /* AA-contrast on white for text/buttons */
  --color-gold-darker: #6c5d40;
  --color-gold-light: #cdb896;
  --color-cream: #faf6ee;
  --color-beige: #f0e5d3;
  --color-beige-soft: #f6efe3;
  --color-white: #ffffff;
  --color-ink: #2a251e;
  --color-ink-soft: #5f5648;
  --color-border: #e6dac2;

  /* Type */
  --font-body: 'Google Sans', 'Product Sans', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Arial, sans-serif;

  /* Layout */
  --container-width: 1180px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 12px 32px rgba(42, 37, 30, 0.08);
  --section-space: clamp(3.5rem, 7vw, 6.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

button {
  font-family: inherit;
}

/* Visible focus for keyboard users */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-gold-dark);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 0.85rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Typography ---------- */
h1,
.h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

h2,
.h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h3,
.h3 {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.35;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 0.9rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  max-width: 62ch;
}

.text-muted {
  color: var(--color-ink-soft);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }
}

.section {
  padding-block: var(--section-space);
}

.section-tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.bg-cream {
  background: var(--color-cream);
}

.bg-beige {
  background: var(--color-beige-soft);
}

.bg-ink {
  background: var(--color-ink);
  color: var(--color-white);
}

.section-head {
  /* max-width: 44rem; */
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-gold-dark);
  color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-gold-darker);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-gold-dark);
  color: var(--color-gold-dark);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-gold-dark);
  color: var(--color-white);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-ink);
}

.btn-light:hover,
.btn-light:focus-visible {
  background: var(--color-beige);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--color-gold-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.link-arrow:hover,
.link-arrow:focus-visible {
  border-color: var(--color-gold-dark);
  gap: 0.6rem;
}

.link-arrow svg {
  width: 1em;
  height: 1em;
}

/* Framed link: small L-shaped corner brackets floating around the text,
   like viewfinder marks, instead of a full button outline */
.framed-link {
  position: relative;
  display: inline-block;
  padding: 0.9rem 1.6rem;
  font-weight: 500;
  color: var(--color-ink);
  transition: color 0.2s ease;
}

.framed-link::before,
.framed-link::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  transition: width 0.2s ease, height 0.2s ease;
}

.framed-link::before {
  top: 0;
  left: 0;
  border-top: 1.5px solid var(--color-gold-dark);
  border-left: 1.5px solid var(--color-gold-dark);
}

.framed-link::after {
  bottom: 0;
  right: 0;
  border-bottom: 1.5px solid var(--color-gold-dark);
  border-right: 1.5px solid var(--color-gold-dark);
}

.framed-link:hover,
.framed-link:focus-visible {
  color: var(--color-gold-dark);
}

.framed-link:hover::before,
.framed-link:hover::after,
.framed-link:focus-visible::before,
.framed-link:focus-visible::after {
  width: 18px;
  height: 18px;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Solid once scrolled past the hero (toggled by a small scroll listener,
   since the header sits transparently over the full-height hero photo) */
.site-header.is-scrolled {
  background: var(--color-white);
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 16px rgba(26, 22, 17, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  gap: 1rem;
  transition: padding-block 0.25s ease;
}

.site-header.is-scrolled .header-inner {
  padding-block: 0rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  /* background: var(--color-white); */
  /* border-radius: 999px; */
  /* padding: 0.55rem 1.1rem; */
  /* box-shadow: 0 4px 18px rgba(26, 22, 17, 0.12); */
}

.logo-img {
  height: auto;
  width: 170px;
  display: block;
}

@media (min-width: 640px) {
  .logo-img {
    width: 300px;
  }
}

/* Swap to the ink-coloured mark once scrolled, crossfading over the cream
   default so the logo stays legible once the header goes solid */
.logo-img-scrolled {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.site-header.is-scrolled .logo-img-scrolled {
  opacity: 1;
}

/* Nav: <details>/<summary> burger disclosure at every breakpoint, no JS required */
.mobile-nav {
  display: block;
  margin-left: auto;
}

.mobile-nav > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 52px;
  /* border-radius: 999px; */
  overflow: hidden;
  color: var(--color-white);
  /* background: rgba(20, 17, 13, 0.32); */
  transition: color 0.25s ease, background-color 0.25s ease;
}

/* Once the header goes solid, the white burger lines vanish against it --
   swap to ink to match the logo's crossfade to its dark variant */
.site-header.is-scrolled .mobile-nav:not([open]) > summary {
  color: var(--color-ink);
}

.mobile-nav > summary::-webkit-details-marker {
  display: none;
}

.mobile-nav > summary {
  flex-direction: column;
}

.mobile-nav > summary .line {
  display: block;
  width: 26px;
  height: 3.2px;
  margin: 4px auto;
  background: currentColor;
  transition: width 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.mobile-nav[open] > summary .line {
  transform: rotate(-30deg);
}

.mobile-nav[open] > summary .line:nth-child(1) {
  width: 16px;
}

.mobile-nav[open] > summary .line:nth-child(2) {
  width: 21px;
}

/* When open, the toggle itself becomes the control sitting above the
   full-screen panel -- pinned at (roughly) the same spot it occupies
   when closed, just nudged further toward the edge */
.mobile-nav[open] > summary {
  position: fixed;
  top: 1.1rem;
  right: 120px;
  z-index: 101;
  color: var(--color-white);
}

@media (max-width: 639px) {
  .mobile-nav[open] > summary {
    right: 20px;
  }
}

.mobile-nav-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-ink);
  flex-direction: column;
  padding: 5rem 1.5rem 3rem;
}

.mobile-nav[open] ~ .mobile-nav-panel {
  display: flex;
}

/* Both panels stack in the same box so switching between them never
   reflows the close button or anything outside the menu */
.nav-panels {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.nav-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  text-align: center;
  overflow-y: auto;
  transition: transform 280ms ease, opacity 280ms ease;
}

.nav-panel-main {
  transform: translateX(0);
  opacity: 1;
}

.nav-panel-sub {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.nav-panels.is-drilled .nav-panel-main {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.nav-panels.is-drilled .nav-panel-sub {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-panel nav ul {
  display: grid;
  gap: 1.5rem;
}

.nav-panel nav ul a,
.nav-drill-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-panel nav ul a:hover,
.nav-panel nav ul a:focus-visible,
.nav-drill-trigger:hover,
.nav-drill-trigger:focus-visible {
  color: var(--color-gold-light);
}

.nav-panel-sub nav ul a {
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  font-weight: 600;
}

.nav-drill-trigger .chevron {
  width: 0.55em;
  height: 0.55em;
}

/* Back control sits pinned to the panel's top edge, independent of the
   list below, so the list itself lines up at the same vertical position
   as the main panel's list */
.nav-back-trigger {
  position: absolute;
  top: 0;
  left: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-back-trigger:hover,
.nav-back-trigger:focus-visible {
  color: var(--color-white);
}

.nav-back-trigger .chevron {
  width: 0.5em;
  height: 0.5em;
}

.mobile-nav-panel .btn {
  margin-top: 0.5rem;
}

.mobile-nav-panel .btn-primary {
  background: var(--color-white);
  color: var(--color-ink);
}

.mobile-nav-panel .btn-primary:hover,
.mobile-nav-panel .btn-primary:focus-visible {
  background: var(--color-cream);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  background-image: linear-gradient(180deg, rgba(26, 22, 17, 0.04) 0%, rgba(26, 22, 17, 0.2) 10%), url('../image/grove-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Page-specific hero photo override for the homepage -- same warm brown
   tint used across the other page heroes, for a darker, more deliberate
   overlay than the default hero's barely-there gradient. */
.hero-photo-home {
  background-image: linear-gradient(180deg, rgba(108, 93, 64, 0.4) 0%, rgba(42, 37, 30, 0.6) 100%), url('../image/banner1.jpg');
}

.hero-content {
  max-width: 40rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding-top: 20%;
}

/* Shorter hero for interior/content pages (services, etc.) -- keeps the
   dark photo backdrop the transparent header needs for contrast, without
   pushing long-form text pages a full screen down before they start. */
.hero-sm {
  min-height: 56vh;
}

.hero-sm .hero-content {
  padding-top: 3.5rem;
}

@media (min-width: 900px) {
  .hero-sm {
    min-height: 64vh;
  }
}

/* Shared "warm" hero treatment for interior pages: 80vh, centered text,
   brown gradient tint over a per-page photo. Pair with one .hero-photo-*
   class below, which only needs to set --hero-photo (and, occasionally,
   a custom crop position). */
.hero-tone-warm {
  min-height: 80vh;
  background-image: linear-gradient(180deg, rgba(108, 93, 64, 0.4) 0%, rgba(42, 37, 30, 0.6) 100%), var(--hero-photo);
}

.hero-tone-warm .hero-content {
  padding-top: 0;
  margin-inline: auto;
  text-align: center;
}

.hero-tone-warm .lead {
  margin-inline: auto;
}

/* Positioned toward the top since the subjects' heads sit near the top
   edge of this particular photo, unlike a centered crop. */
.hero-photo-contact {
  --hero-photo: url('../image/contact-banner.jpg');
  background-position: center top;
}

.hero-photo-general-dentistry { --hero-photo: url('../image/general-dentistry-banner.jpg'); }
.hero-photo-orthodontics { --hero-photo: url('../image/orthodontics-banner.jpg'); }
.hero-photo-implantology { --hero-photo: url('../image/implantology.jpg'); }
.hero-photo-advanced-restorative-dentistry { --hero-photo: url('../image/advanced-restorative-dentistry.jpg'); }
.hero-photo-professional-dental-cleaning { --hero-photo: url('../image/professional-dental-cleaning.jpg'); }
.hero-photo-tooth-whitening { --hero-photo: url('../image/tooth-whitening.jpg'); }
.hero-photo-root-canal-treatment { --hero-photo: url('../image/root-canal-treatment-banner.jpg'); }
.hero-photo-atraumatic-extractions { --hero-photo: url('../image/extraction-tian-grove.jpg'); }
.hero-photo-pricing { --hero-photo: url('../image/pricing-tian.jpg'); }

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

.hero h1 {
  color: var(--color-white);
  text-shadow: 0 2px 18px rgba(26, 22, 17, 0.55);
}

.hero .lead {
  color: var(--color-beige);
  text-shadow: 0 1px 14px rgba(26, 22, 17, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.btn-outline-light {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: var(--color-white);
  color: var(--color-ink);
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  /* border-radius: var(--radius-lg); */
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.card-photo {
  margin: -2rem -2rem 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-beige-soft);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

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

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

.grid-4 {
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Split section: text + visual. The photo always renders first on mobile
   (order:-1), regardless of source order, so a .split.reverse section
   that puts the photo second in the markup (for a right-hand photo on
   desktop) still shows image-then-text once it stacks to one column. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  /* align-items: center; */
}

.split .split-visual,
.split .team-photo {
  order: -1;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .split.reverse .split-visual,
  .split.reverse .team-photo {
    order: 2;
  }
}

.split-visual {
  aspect-ratio: 4 / 3.2;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--color-beige) 0%, var(--color-cream) 60%, var(--color-white) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-visual svg {
  width: 55%;
  height: 55%;
  color: var(--color-gold);
}

/* ---------- Team ---------- */
.team-card {
  text-align: left;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--color-gold-dark);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.team-role {
  color: var(--color-gold-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.team-quals {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

/* Team member: name, qualification, image, bio -- no card treatment */
.team-member {
  text-align: left;
}

.team-member .team-quals {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
}

.team-photo {
  /* aspect-ratio: 3
   / 4; */
  background: var(--color-beige-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: 1.5rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: var(--radius);
}

/* ---------- CTA band ---------- */
.cta-band {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.cta-band .lead {
  margin-inline: auto;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* ---------- List with check icons ---------- */
.check-list {
  display: grid;
  gap: 0.9rem;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.check-list svg {
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  color: var(--color-gold-dark);
  margin-top: 0.2rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-block: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.contact-detail:last-child {
  border-bottom: none;
}

.contact-detail svg {
  width: 24px;
  height: 24px;
  color: var(--color-gold-dark);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 11;
  margin-top: 2rem;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Form ---------- */
.form-field {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1.4rem;
}

.form-field label {
  font-weight: 500;
  font-size: 0.95rem;
}

.form-field .hint {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-ink);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: 3px solid var(--color-gold-dark);
  outline-offset: 1px;
  border-color: var(--color-gold-dark);
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Service page layout (content + sidebar) ---------- */
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .service-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 4rem;
  }
}

.service-sidebar {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .service-sidebar {
    position: sticky;
    top: 6.5rem;
  }
}

.sidebar-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.sidebar-card .form-field {
  margin-bottom: 1.1rem;
}

.sidebar-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.sidebar-contact .contact-detail {
  padding-block: 0.9rem;
}

.sidebar-contact .contact-detail:first-of-type {
  padding-top: 10px;
}

.sidebar-contact .contact-detail svg {
  width: 20px;
  height: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-beige);
  color: var(--color-ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-ink);
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--color-ink-soft);
  max-width: 32rem;
}

.footer-heading {
  color: var(--color-ink);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-list {
  display: grid;
  gap: 0.75rem;
}

.footer-list a,
.footer-list address {
  color: var(--color-ink-soft);
  font-style: normal;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--color-gold-dark);
}

.social-list {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-list a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
}

.social-list a:hover,
.social-list a:focus-visible {
  border-color: var(--color-gold-dark);
  color: var(--color-gold-dark);
}

.social-list svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-block: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.footer-bottom p {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.credit-logo {
  display: inline-block;
  height: 16px;
  width: auto;
}

/* ---------- Services list ---------- */
.service-list {
  display: grid;
  gap: 0;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease;
}

.service-list li:first-child .service-item {
  border-top: 1px solid var(--color-border);
}

.service-item:hover,
.service-item:focus-visible {
  color: var(--color-gold-dark);
}

.service-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-icon img,
.service-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-icon svg {
  color: var(--color-ink);
  transition: color 0.2s ease;
}

.service-item:hover .service-icon svg,
.service-item:focus-visible .service-icon svg {
  color: var(--color-gold-dark);
}

.service-item h3 {
  flex: 1;
}

@media (min-width: 900px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
  }

  /* Right-hand column mirrors the left: icon moves to the outer (right)
     edge so the two columns frame the content symmetrically. */
  .service-list li:nth-child(even) .service-item {
    flex-direction: row-reverse;
    text-align: right;
  }

  .service-list li:nth-child(-n+2) .service-item {
    border-top: 1px solid var(--color-border);
  }
}

/* ---------- Misc ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
