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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 90px; /* adjust to your header height */
}

body {
  margin: 0;
  font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #111;
  background: #000;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Unna", "Times New Roman", serif;
}

.site-header__logo,
.site-nav__link,
.site-header__phone,
.hero__button,
button,
.btn {
  font-family: "Unna", serif;
}

p,
.body-text {
  font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.section {
  padding-inline: clamp(1.5rem, 6vw, 5rem);
  padding-block: 4rem; /* tweak per section */
}

/* HEADER / NAV */

:root {
  --practice-ribbon-height: 4.5rem; /* tweak to taste */
}

/* HEADER SHELL */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.97); /* 👈 70% opaque black */
  color: #fff;
}
/* outer container */
.site-header__inner {
  padding: 0.75rem clamp(1.5rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: flex-start; /* was space-between */
  gap: 1.5rem;
}

/* LOGO */
/* logo spacing */
.site-header__logo {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  margin-right: 2.5rem;
  text-decoration: none;
}

/* control logo size */
.site-header__logo-img {
  height: 32px; /* adjust to taste */
  width: auto;
  display: block;
}

@media (min-width: 1200px) {
  .site-header__logo-img {
    height: 60px;
  }
}

/* menu (nav + phone) */
.site-header__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: 1; /* take remaining space */
  justify-content: space-between; /* nav left, phone right */
}

/* NAV LINKS */
.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 1.2vw, 1.6rem);
}

.site-nav__link {
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .site-nav {
    gap: 0.85rem;
  }
  .site-nav__link {
    font-size: 0.8rem;
  }
}

/* between tablet-ish and desktop-ish */
@media (max-width: 900px) and (min-width: 770px) {
  .site-nav {
    gap: 1.2rem; /* smaller gap between links */
  }

  .site-header__logo {
    margin-right: 1.5rem; /* bring nav closer to logo */
  }

  .site-nav__link {
    font-size: 0.95rem; /* tiny size drop just in this band */
  }
}

.site-nav__link {
  position: relative;
  font-family: "Unna", serif;
  font-size: clamp(1.2rem, 1.1vw, 2rem); /* 👈 bigger, but flexible */
  color: inherit;
  text-decoration: none;
  padding-bottom: 0.25rem;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #cfa383;
  transition: width 0.2s ease;
}

.site-nav__link:hover::after {
  width: 100%;
}

/* PHONE */
.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem; /* space between icon and text */
  font-family: "Unna", serif;
  font-size: clamp(1.1rem, 1.7vw, 1.8rem);
  text-decoration: none;
  color: inherit;
}

/* icon size */
.site-header__phone-icon svg {
  width: 30px; /* adjust to taste */
  height: 30px;
  display: block;
}

/* optional: keep text as its own span in case you want to style it later */
.site-header__phone-text {
  /* nothing needed yet */
}

/* HAMBURGER BUTTON */
.site-header__toggle {
  display: none; /* hidden on desktop */
  background: none;
  border: 0;
  padding: 0.25rem;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  + span {
    margin-top: 4px;
  }
}

/* ---------- MOBILE / TABLET ---------- */

@media (max-width: 1024px) {
  .site-header__inner {
    align-items: center;
    justify-content: space-between;
  }

  /* show hamburger, hide inline menu */
  .site-header__toggle {
    display: block;
  }

  .site-header__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.75rem clamp(1.5rem, 6vw, 5rem) 1rem;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .site-nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-header__phone {
    margin-top: 0.5rem;
  }

  /* when header is open */
  .site-header.is-open .site-header__menu {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
}

/* HERO */

.hero {
  position: relative;
  padding: 6rem 1.5rem 4rem;
  background: url("assets/hero-section-image.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  min-height: 80vh; /* mobile / tablet default */
}

/* dark overlay for readability */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.65)
  );
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
}

/* Typography */
.hero__title {
  font-size: clamp(2.7rem, 5vw, 6rem);
  line-height: 1.1;
  font-weight: 400;
  margin: 0 0 0 0;
}

.hero__since {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0.2rem 0 0.2rem 0;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers "Since 1999" over the button */
  text-align: center;
  gap: 0.4rem; /* space between text and button */
}

/* Button */
.hero__button {
  align-self: center;
  margin: 0;
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  background: #cfa383;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
}

.practice-ribbon {
  background: #cfa383;
  color: #2b1c15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 1.5vw, 2rem);
  padding: 0.9rem clamp(1.5rem, 6vw, 5rem);
  font-family: "Unna", serif;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* items */
.practice-ribbon__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* label text */
.practice-ribbon__label {
  font-size: clamp(0.9rem, 1.5vw, 1.8rem);
}

/* icon size */
.practice-ribbon__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.practice-ribbon__icon img {
  width: clamp(1.1rem, 1.3vw, 2.5rem);
  height: auto;
  display: block;
}

@media (min-width: 901px) {
  .practice-ribbon {
    height: var(--practice-ribbon-height);
  }
}

@media (min-width: 901px) {
  .hero {
    /* hero takes viewport height minus ribbon height */
    min-height: calc(100vh - var(--practice-ribbon-height));
  }
}

/* Desktop: place hero text in left third */
@media (min-width: 1200px) {
  .hero {
    padding-inline: 6vw;
  }

  .hero__inner {
    max-width: none;
    width: 48%; /* left third-ish */
    margin-left: 0;
    margin-right: auto;
    text-align: center; /* keep centered */
    align-items: center; /* keep centered */
  }
}

/* Basic nav stacking on small screens */
@media (max-width: 768px) {
  .site-header__inner {
    flex-wrap: wrap;
    text-align: center;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* up to 900px: stack items, one per row */
@media (max-width: 900px) {
  .practice-ribbon {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-block: 1.1rem;
    height: auto;
  }

  .practice-ribbon__item {
    width: 100%;
    justify-content: center;
  }

  .practice-ribbon__label {
    font-size: 1rem; /* comfy size for stacked layout */
  }
}

/* shared layout shell for sections */
.section-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(1.5rem, 6vw, 5rem);
}

/* SECTION HEADING BLOCK */
.section-heading {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem; /* space between eyebrow row and main title */
  margin-bottom: 2.25rem; /* space between heading block and body text */
}

/* icon + small label row ("About Us" line) */
.section-heading__eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* icon ↔ label */
  font-family: "Unna", serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* underline matches width of icon + label combined */
.section-heading__eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem; /* distance to title */
  width: 100%; /* 👈 full width of eyebrow (icon + text) */
  height: 1px;
  background: #000000;
}

/* tweak spacing between eyebrow+line and title */
.section-heading {
  gap: 1.3rem;
  margin-bottom: 2.25rem;
}

/* adjust vertical spacing a bit if needed */
.section-heading {
  gap: 1.3rem; /* eyebrow ↔ title spacing now controlled here */
  margin-bottom: 2.25rem;
}

/* icon size, responsive like the ribbon */
.section-heading__icon img {
  width: clamp(1.1rem, 1.5vw, 1.6rem);
  height: auto;
  display: block;
}

/* main section title */
.section-heading__title,
.mission__title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  color: #111; /* main title in black (or very dark grey) */
  font-family: "Unna", serif;
}

/* accent word */
.section-heading__title-accent {
  color: #5d2d1b; /* your brown brand color */
}

/* BODY TEXT AREA (shared) */
.section-body--narrow {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
  margin-left: 0;
  margin-right: 0;
}

.section-body--narrow p,
.mission__body p {
  font-size: clamp(0.95rem, 1.05vw, 1.4rem);
  line-height: 1.7;
}

/* spacing between paragraphs inside section body */
.section-body--narrow p + p,
.mission__body p + p {
  margin-top: 1.25rem;
}

.section-body--narrow p:last-child {
  margin-bottom: 0;
}

/* ABOUT SECTION BACKGROUND (optional, match your cream tone) */
.section--about {
  background: #fbf4ef; /* adjust to your exact hex */
}

/* MISSION & VISION SECTION */

.mission {
  position: relative;
  color: #fff;
  /* 👇 replace the path with your actual image */
  background: url("assets/lady-scales-bg.png") right center / cover no-repeat;
  min-height: 60vh;
  padding-block: clamp(4rem, 10vh, 6rem);
}

/* dark gradient so text is readable on the left */
.mission__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.9) 35%,
    rgba(0, 0, 0, 0.3) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 0;
}

.mission__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(1.5rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  min-height: inherit;
}

.mission__content {
  max-width: 30rem; /* width of the text column */
}

/* Heading: "Our Mission & Vision" */
.mission__title {
  margin: 0 0 2.25rem;
}

.mission__title-main {
  color: #ffffff;
}

.mission__title-accent {
  color: #cfa383; /* same warm brown you use elsewhere */
}

.mission__title-amp {
  color: #ffffff; /* same white as 'Our' */
}

.mission__body p {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.75);
}

/* Mission section */
.mission__body p:last-child {
  margin-bottom: 0;
}

/* Responsive behaviour */
@media (max-width: 768px) {
  .mission {
    min-height: auto;
    background-position: center center;
  }

  .mission__inner {
    padding-block: 3rem;
  }

  .mission__content {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .mission__inner {
    align-items: flex-start;
  }

  .mission__title {
    text-align: left;
  }

  .mission__body {
    text-align: left;
  }
}

/* ============================
   AREAS OF PRACTICE SECTION
   ============================ */

.section--practice {
  background: #fbf4ef; /* same tone as your about section */
  color: #2b1c15;
  padding-block: 4rem 5rem;
  padding-inline: 0; /* kill the global .section side padding just for this section */
}

/* direct child for stronger specificity than .section-shell alone */
.section--practice > .section-shell {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding-inline: clamp(1.5rem, 4vw, 3.5rem); /* tighter side padding */
}

/* Icon size only inside Areas of Practice section */
.section--practice .practice-summary__icon img {
  width: 1.6rem; /* try 1.2–1.6rem and tweak to taste */
  height: auto; /* keep aspect ratio */
  display: block;
}

/* Optional: keep them from squishing in tight layouts */
.section--practice .practice-summary__icon {
  flex-shrink: 0;
  margin-right: 0rem; /* little breathing room from the heading */
}

.practice-areas {
  border-top: 1px solid #d1c1ae;
  border-bottom: 1px solid #d1c1ae;
}

/* Each row (one practice area) */
.practice-item {
  border-bottom: 1px solid #d1c1ae;
  background: transparent;
}

/* ----------------------------
     Summary bar ("file" tab row)
     ---------------------------- */

.practice-summary {
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  text-align: left;

  position: relative; /* needed for ::before overlay */
  overflow: hidden; /* hide any overflow from the bg image */
}

/* put the content above the overlay */
.practice-summary > * {
  position: relative;
  z-index: 1;
}

.practice-summary__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative; /* 👈 anchor for ::before */
  padding-left: 20px;
}

.practice-summary__left,
.practice-summary__right {
  padding-top: 1rem; /* tweak until you like the height */
  padding-bottom: 0.5rem;
}

/* background image lives here now */
.practice-summary__left::before {
  content: "";
  position: absolute;
  inset: -0.8rem 0; /* extends slightly above/below row */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  z-index: -2;
  transition: opacity 0.25s ease;
}

/* GRADIENT layer on top of the photo, but under the text */
.practice-summary__left::after {
  content: "";
  position: absolute;
  inset: -0.8rem 0 0; /* match ::before so it covers same area */
  background: linear-gradient(
    to right,
    rgba(251, 244, 239, 0) 0%,
    /* fully transparent on the left */ rgba(251, 244, 239, 0) 55%,
    /* image fully visible through most */ #fbf4ef 100%
      /* fade to cream on the right edge */
  );
  z-index: -1; /* between image (-2) and text (1) */
  pointer-events: none;
}

/* optional: slightly stronger on hover */
.practice-item:hover .practice-summary__left::before {
  opacity: 0.26;
}

.practice-summary__icon {
  font-size: 1.4rem; /* replace with your own icons later if needed */
}

.practice-summary__title {
  font-family: "Unna", serif;
  font-size: clamp(1.3rem, 2vw, 2.4rem);
  font-weight: 500;
  margin: 0;
}

/* Right-hand quick list of sub-services */
.practice-summary__right {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.35rem, 0.6vw, 0.5rem) clamp(0.9rem, 1.6vw, 1.4rem);
  font-size: 1rem;
  justify-content: flex-end;
}

.practice-summary__right span::before {
  content: "| ";
}

/* Commercial Agreements */
.practice-item--commercial .practice-summary__left::before {
  background-image: url("assets/CommercialAgreementsHBG.jpg");
}

/* Conveyancing */
.practice-item--conveyancing .practice-summary__left::before {
  background-image: url("assets/ConveyancingHBG.jpg");
}

/* Family Law */
.practice-item--family .practice-summary__left::before {
  background-image: url("assets/FamilyLawHBG.jpg");
}

/* Estate Administration */
.practice-item--estate .practice-summary__left::before {
  background-image: url("assets/EstateAdministration.jpg");
}

/* General Litigation */
.practice-item--litigation .practice-summary__left::before {
  background-image: url("assets/GeneralLitigationHBG.jpg");
}

/* Other Matters */
.practice-item--other .practice-summary__left::before {
  background-image: url("assets/OtherMattersHBG.jpg");
}

.practice-summary:focus-visible {
  outline: 2px solid #cfa383;
  outline-offset: 2px;
}

/* Stronger visual state for the open row */
.practice-item.is-open .practice-summary__title {
  font-weight: 600;
}

/* ============================
     BODY (image + detailed copy)
     ============================ */

/* The container that holds both image and content */
.practice-body {
  /* collapsed state: only show a horizontal image strip */
  max-height: 24px; /* height of the strip */
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.45s ease;
}

/* Image area */
.practice-body__image {
  height: 24px; /* strip height when collapsed */
  overflow: hidden;
}

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

/* Content (hidden when collapsed) */
.practice-body__content {
  opacity: 0;
  max-height: 0;
  padding: 0;
  transition: opacity 0.25s ease, padding 0.25s ease;
}

.practice-body__content h4 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.25rem;
  font-family: "Unna", serif;
}

.practice-body__content p {
  margin-top: 0;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Grid of numbered explanation blocks */
.practice-body__columns {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.practice-body__columns h5 {
  font-family: "Unna", serif;
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

/* ============================
     OPEN STATE
     ============================ */

.practice-item.is-open .practice-body {
  max-height: 3000px; /* large enough to reveal full image + content */
}

/* When open, give every image the same fixed height */
.practice-item.is-open .practice-body__image {
  height: 500px; /* or 280 / 300px to match your reference */
}

.practice-item.is-open .practice-body__content {
  opacity: 1;
  max-height: none;
  padding: 1.5rem 0 1.8rem;
}

/* ============================
     RESPONSIVE LAYOUT
     ============================ */

/* Desktop: when open, image in left third, content on right */
@media (min-width: 1200px) {
  /* summary row */
  .practice-summary {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2fr; /* ≈ 1/3 : 2/3, but fluid */
    padding-top: none;
    column-gap: clamp(1.25rem, 2vw, 1.75rem);
    align-items: flex-start;
    justify-content: stretch;
  }

  .practice-summary__right {
    display: grid; /* switch from flex to grid */
    grid-auto-flow: column; /* fill top-to-bottom, then left-to-right */
    grid-template-rows: repeat(2, auto); /* two rows: top & bottom */
    column-gap: 1.5rem;

    /* horizontal gap shrinks a bit as viewport shrinks */
    column-gap: clamp(0.8rem, 1.2vw, 1.6rem);
    /* vertical gap can stay tiny but still responsive if you like */
    row-gap: clamp(0.1rem, 0.25vw, 0.25rem);

    justify-content: flex-start;
  }

  .practice-summary__right {
    justify-content: flex-start; /* align left edge with body text */
    font-size: clamp(0.95rem, 1.2vw, 1.3rem);
  }

  .practice-summary__left,
  .practice-summary__right {
    padding-top: 2.5rem; /* tweak until you like the height */
    padding-bottom: 0.5rem;
  }

  /* body rows (collapsed + open) */
  .practice-body,
  .practice-item.is-open .practice-body {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 2fr; /* match summary */
    column-gap: clamp(1.25rem, 2vw, 1.75rem);
    align-items: flex-start;
  }

  .practice-body__content h4 {
    margin-top: 0; /* no extra gap at top when side-by-side */
  }

  .practice-body__columns {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile / tablet: summary stacks, image full width, content underneath */
@media (max-width: 1199px) {
  .practice-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .practice-summary__right {
    justify-content: flex-start;
  }

  .practice-body__image {
    /* image is already full-width; nothing special needed here */
  }
}

@media (max-width: 1199px) {
  /* remove the low-opacity header image & gradient */
  .practice-summary__left::before,
  .practice-summary__left::after {
    content: none;
  }

  /* tighten padding a bit for mobile */
  .practice-summary__left,
  .practice-summary__right {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 1199px) {
  .practice-summary {
    flex-direction: column;
    align-items: center; /* center the whole summary block */
    gap: 0.5rem;
  }

  .practice-summary__left {
    justify-content: center;
    width: 100%;
    text-align: center;
    padding-left: 0; /* remove the left offset on mobile */
  }

  .practice-summary__right {
    justify-content: center;
    text-align: center;
  }

  /* keep the expanded content left-aligned for readability */
  .practice-body__content {
    text-align: left;
  }

  /* no big outer borders on mobile */
  .practice-areas {
    border-top: 0;
    border-bottom: 0;
  }

  /* each practice area = its own card */
  .practice-item {
    border: 1px solid #d1c1ae; /* thin border all around */
    margin-bottom: 1.25rem; /* space between cards */
    border-radius: 4px; /* optional: small rounding */
    overflow: hidden; /* keep the image strip inside the border */
    background: #fbf4ef; /* same as section background */
  }

  .practice-item:last-child {
    margin-bottom: 0; /* no extra gap after the last one */
  }

  .practice-item.is-open .practice-body__content {
    opacity: 1;
    max-height: none;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ========= MEET THE TEAM ========= */

.section--team {
  padding: 72px 0 56px;
  background-color: #f7f4ef;
}

.section--team .section-heading {
  text-align: center;
}

/* Full-width *within the content shell* (matches Practice Areas width) */
.team-slider--full {
  margin-top: 20px;
  width: 100%;
  max-width: 1488px; /* same as .practice-grid-wrapper */
  margin-left: auto;
  margin-right: auto;
  position: relative;
  left: auto;
  transform: none;
}

/* The viewport just clips the track */
.team-slider-viewport {
  width: 100%;
  overflow: hidden;
}

/* Track: horizontal row of slides */
.team-slider-track {
  display: flex;
  align-items: stretch;
  gap: 10px;
  height: 500px; /* keep your existing height */
  box-sizing: border-box;
}

/* Base slide: thin slice – NOTE flex-shrink is allowed now */
.team-slide {
  position: relative;
  flex: 0 1 70px; /* fixed-ish slice width that can shrink */
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;

  /* Keep a subtle fade / color change only */
  filter: grayscale(0.5) brightness(0.8);
  opacity: 0.7;
  transition: filter 0.25s ease, opacity 0.25s ease; /* no flex transition */
}

/* Dark overlay on all slides for consistency */
.team-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.1));
}

/* Active slide: takes up the rest of the space */
.team-slide.is-active {
  flex: 1 1 auto; /* grow to fill remaining width */
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

/* Controls under the strip */
.team-slider-controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.team-arrow {
  border: none;
  background: transparent;
  font-size: 40px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  color: #3a1e11;
  transition: transform 0.15s ease, color 0.15s ease;
}

.team-arrow:hover {
  transform: translateY(-2px);
  color: #8b5b2b;
}

/* Counter in the middle */
.team-slider-counter {
  font-size: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b5b2b;
}

.team-current {
  font-weight: 700;
}

/* ===== Responsive tweaks ===== */

/* Slightly smaller on tablets */
@media (max-width: 1024px) {
  .team-slider-track {
    height: 320px;
  }

  .team-slide.is-active {
    flex-basis: 65%;
  }

  .team-slide {
    flex-basis: 7%;
  }
}

/* Hidden by default – only visible on mobile via media query */
.team-mobile-more {
  display: none;
}

/* Mobile “See more photos” button – hero style, inverted */
.team-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.9rem 2.4rem;
  border-radius: 999px;

  background-color: #1b1410; /* dark body colour */
  border: 1px solid #1b1410;
  color: #f7f4ef; /* light text on dark button */

  font-family: "Unna", serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: capitalize;

  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.12s ease;
}

.team-mobile-toggle:hover {
  background-color: #f7f4ef; /* invert on hover */
  color: #1b1410;
  border-color: #1b1410;
  transform: translateY(-1px);
}

.team-mobile-toggle:focus-visible {
  outline: 2px solid #1b1410;
  outline-offset: 3px;
}

/* Mobile: one hero photo + "See more photos" dropdown */
@media (max-width: 768px) {
  /* Slider matches content width, not full viewport */
  .team-slider--full {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0 16px;
  }

  .team-slider-viewport {
    overflow: visible; /* no need to clip; we stack things */
  }

  .team-slider-track {
    flex-direction: column; /* stack vertically */
    height: auto;
    gap: 16px;
  }

  /* Each slide is a full-width image with fixed aspect ratio */
  .team-slide {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 3 / 2; /* use 16 / 9 if that matches your photos */
    border-radius: 16px;
    opacity: 1;
    filter: none; /* full-color on mobile */
  }

  .team-slide::before {
    /* soften the overlay for mobile or remove if you like */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0));
  }

  /* Only show the FIRST slide initially */
  .team-slide:nth-child(n + 2) {
    display: none;
  }

  /* When expanded, show all slides under the first one */
  .team-slider--full.is-expanded .team-slide:nth-child(n + 2) {
    display: block;
  }

  /* Arrows + counter: hide on mobile – dropdown handles navigation */
  .team-slider-controls,
  .team-slider-counter {
    display: none;
  }

  /* Show the "See more photos" button on mobile */
  .team-mobile-more {
    margin-top: 16px;
    display: flex;
    justify-content: center;
  }
}

/* ============================
   CLIENT TESTIMONIALS SECTION
   ============================ */

.section--testimonials {
  padding: 0;
  position: relative;
  overflow: hidden;
  background: #fbf4ef;
  color: #2b1c15;
}

/* Inner wrapper that stays pinned while scrolling (desktop only) */
.testimonials-pin {
  position: sticky;
  top: 0;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 4.25rem;
  padding-bottom: 2.5rem;
}

/* keep heading nicely centred and a bit tighter */
.section-heading--testimonials {
  margin-bottom: 2.5rem;
}

/* container shares your section-shell max-width */
.testimonials-shell {
  margin-top: 0.5rem;
  position: relative;
}

/* Scroller wrapper = viewport for the row */
.testimonials-scroller {
  position: relative;
  overflow: hidden;

  /* Option A: constrain viewport so overflow exists on wide screens */
  max-width: 1920px; /* tweak: 1100 / 1200 / 1300 */
  margin: auto; /* center within the wider section */

  padding-bottom: 2.5rem; /* space under cards (you already preferred this) */
}

/* Horizontal track of cards */
.testimonials-track {
  display: flex;
  gap: 2rem;

  /* hardening: ensure it stays one long row and measures correctly */
  flex-wrap: nowrap;
  width: max-content;

  will-change: transform;
  transform: translate3d(0, 0, 0);
  position: relative;
  z-index: 1;
}

/* Card styling */
.testimonial-card {
  flex: 0 0 420px;
  background: #fff7f0;
  border-radius: 1rem;
  border: 1px solid #d9a57a;
  padding: 1.75rem 2rem;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card__text {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #5c4a3d;
  font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.testimonial-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.testimonial-card__name {
  font-weight: 600;
  color: #2b1c13;
  font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.testimonial-card__stars {
  letter-spacing: 0.25em;
  color: #f7b341;
  font-size: 1.5rem;
}

/* Special card at the end that links to Google Reviews */
.testimonial-card--cta {
  justify-content: center;
  text-align: center;
}

.testimonial-card__cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.testimonial-card__cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.testimonial-card__cta-icon img {
  max-width: 70%;
  height: auto;
}

.testimonial-card__cta-title {
  font-family: "Unna", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2b1c13;
  margin: 0;
}

.testimonial-card__cta-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5c4a3d;
  max-width: 260px;
}

.testimonial-card__cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;

  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  border: 1px solid #c99a5b;

  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: capitalize;
  text-decoration: none;

  color: #fff;
  background-color: #c99a5b;

  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.12s ease;
}

.testimonial-card__cta-link:hover {
  background-color: #2b1c15;
  border-color: #2b1c15;
  color: #fff7f0;
  transform: translateY(-1px);
}

/* ============================
     Auto-scrolling ping-pong
     ============================ */

.testimonials-track {
  /* animation vars set by JS */
  --max-translate: 0px;
  --scroll-dur: 20s;

  /* ensure no legacy transition interferes */
  transition: none;

  animation: testimonials-pingpong var(--scroll-dur) linear infinite alternate;
}

@keyframes testimonials-pingpong {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--max-translate)), 0, 0);
  }
}

/* Optional: pause on hover */
.testimonials-scroller:hover .testimonials-track {
  animation-play-state: paused;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    animation: none !important;
    transform: none !important;
  }
}

.testimonials-shell {
  padding-left: 0px;
}

/* ============================
     Responsive tweaks
     ============================ */

@media (max-width: 899px) {
  .section--testimonials {
    height: auto !important;
  }

  .testimonials-pin {
    position: static;
    min-height: auto;
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }

  /* keep viewport full-width on mobile (no max cap) */
  .testimonials-scroller {
    max-width: none;
    padding-bottom: 0rem;
  }
}

@media (min-width: 1200px) {
  .section--testimonials .section-shell {
    max-width: none;
    padding-left: 0px;
    padding-right: 0px;
  }

  .testimonial-card {
    flex: 0 0 460px;
  }

  .testimonials-track {
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .testimonials-pin {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
}

@media (max-width: 500px) {
  .section--testimonials .section-shell {
      padding: 0px;
  }

  .testimonial-card {
    flex: 0 0 calc(100vw - 2.5rem);
    max-width: 480px;
  }
}

/* Pause on hover (only on devices that support hover) */
@media (hover: hover) and (pointer: fine) {
  .testimonials-scroller:hover .testimonials-track {
    animation-play-state: paused;
  }
}

/* Center the button under the scroller */
.testimonials-more {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

/* 50% bigger + Unna font (only for the below-scroller button) */
.testimonials-more__btn {
  font-family: "Unna", serif;
  font-weight: 400;
  font-size: 1.2rem; /* ~50% bigger than 0.8rem */
  padding: 0.9rem 2.4rem; /* ~50% bigger than 0.6rem 1.6rem */
  letter-spacing: 0.06em; /* slightly calmer at larger size */
}

/* Optional: slightly larger button on desktop */
@media (min-width: 900px) {
  .testimonials-more__btn {
    padding: 0.8rem 2.1rem; /* optional */
  }
}

.testimonials-scroller {
  padding-bottom: 1.5rem;
}

/* ============================
   CONTACT SECTION
   ============================ */

.contact {
  position: relative;
  color: #fff;
  background: url("assets/contactformbg.jpg") center / cover no-repeat;
}

/* dark overlay for readability */
.contact__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.contact__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 8vw, 6rem);
}

/* make heading white-friendly */
.section-heading--light .section-heading__eyebrow::after {
  background: #ffffff;
}

.section-heading--light .section-heading__eyebrow,
.section-heading--light .section-heading__title {
  color: #ffffff;
}

/* keep your brown accent */
.section-heading--light .section-heading__title-accent {
  color: #cfa383;
}

/* layout: left info + right form */
.contact__layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: stretch; /* grid items take full row height */
}

/* LEFT SIDE */
.contact__info {
  max-width: 26rem;
}

.contact__subheading {
  font-family: "Unna", serif;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 0 0 0.75rem;
}

.contact__subheading-accent {
  color: #cfa383;
}

.contact__info p {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #f3ece6;
}

/* Map area */
.contact__map {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  min-height: 220px;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact__map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
}

/* RIGHT SIDE FORM */
.contact__form-wrap {
  width: 100%;
}

/* generic form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form__row {
  width: 100%;
}

.contact-form__row--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

/* Schedule row: label + select + date + time */
.contact-form__row--schedule {
  display: grid;
  /* exact half/half columns for date and time */
  grid-template-columns: repeat(1, minmax(0, 1fr));
  grid-template-areas:
    "label label"
    "area  area"
    "date  time";
  column-gap: 0rem;
  row-gap: 0.5rem;
  align-items: center;
  margin-top: 0.3rem;
}

.contact-form__schedule-label {
  grid-area: label;
  font-family: "Unna", serif;
  font-size: 1rem;
  color: #fff;
}

.contact-form__field--area {
  grid-area: area;
}

.contact-form__field--date {
  grid-area: date;
}

.contact-form__field--time {
  grid-area: time;
}

.contact-form__field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #111;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  box-sizing: border-box;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  border-color: #cfa383;
  box-shadow: 0 0 0 2px rgba(207, 163, 131, 0.4);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 130px;
}

/* submit row */
.contact-form__row--submit {
  margin-top: 0.5rem;
}

.contact-form__submit {
  width: 100%;
  border: none;
  border-radius: 4px;
  padding: 0.9rem 1.2rem;
  background: #cfa383;
  color: #fff;
  font-family: "Unna", serif;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.1s ease;
}

.contact-form__submit:hover {
  background: #b87e57;
}

.contact-form__submit:active {
  transform: translateY(1px);
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== Date picker (dialog-based, stable) ===== */

.date-picker {
  position: relative;
}

.date-picker__control {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  color: #111;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  box-sizing: border-box;
}

.date-picker__control:focus {
  outline: none;
  border-color: #cfa383;
  box-shadow: 0 0 0 2px rgba(207, 163, 131, 0.4);
}

.date-picker__value.is-placeholder {
  color: rgba(17, 17, 17, 0.6);
}

/* Dialog panel */
.date-picker__dialog {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: min(340px, calc(100vw - 2rem));
}

/* Make modal backdrop subtle/transparent */
.date-picker__dialog::backdrop {
  background: rgba(0, 0, 0, 0.15);
}

/* Calendar */
.date-picker__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.date-picker__title {
  text-align: center;
  font-weight: 600;
  color: #111;
}

.date-picker__nav {
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.date-picker__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: rgba(17, 17, 17, 0.7);
}

.date-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.date-picker__day {
  border: none;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  padding: 0.55rem 0.35rem;
  cursor: pointer;
  color: #111;
}

.date-picker__day:hover {
  background: rgba(207, 163, 131, 0.25);
}

.date-picker__day.is-today {
  outline: 2px solid rgba(207, 163, 131, 0.6);
}

.date-picker__day.is-selected {
  background: #cfa383;
  color: #fff;
}

.date-picker__day.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.date-picker__close {
  margin-top: 0.6rem;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

/* Problem area select chevron = same as date picker */
.contact-form__field--area::after {
  content: "▾";               /* same glyph */
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(17, 17, 17, 0.7);
  font-size: 0.95rem;         /* match date */
  line-height: 1;
}

/* ensure native arrow hidden + spacing for chevron */
.contact-form__field--area select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  padding-right: 2.2rem;      /* room for chevron */
}
.contact-form__field--area select::-ms-expand { display: none; }

/* intl-tel-input should fill your form field width */
.iti {
  width: 100%;
}

.iti__tel-input,
.iti input[type="tel"] {
  width: 100%;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #111;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  box-sizing: border-box;
}

.iti input[type="tel"]:focus {
  border-color: #cfa383;
  box-shadow: 0 0 0 2px rgba(207, 163, 131, 0.4);
}

/* optional: make the flag button match input height */
.iti__selected-country {
  border-radius: 4px 0 0 4px;
}

/* intl-tel-input dropdown: force readable colors */
.iti__country-list {
  background: #fff;
  color: #111;
}

.iti__country {
  color: #111;
}

.iti__country-name,
.iti__dial-code {
  color: #111;
}

/* hover/active states */
.iti__country:hover,
.iti__country.iti__highlight {
  background: rgba(0, 0, 0, 0.06);
}

/* Turn the intl-tel-input wrapper into a 3-part control: flag | +code | number */
.iti.iti--with-dialbox {
  width: 100%;
  display: flex;
  align-items: stretch;
}

/* Stop plugin from absolute-positioning the flag container */
.iti.iti--with-dialbox .iti__flag-container {
  position: relative;
  display: flex;
}

/* Style the flag button like your inputs (left segment) */
.iti.iti--with-dialbox .iti__selected-country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;

  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-right: none;
  border-radius: 4px 0 0 4px;
}

/* The separate dial code box (middle segment) */
.iti.iti--with-dialbox .iti-dialbox {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;

  background: rgba(255, 255, 255, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  border-right: none;

  color: #111;
  font-size: 0.95rem;
  font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  white-space: nowrap;
}

/* The phone input becomes the right segment */
.iti.iti--with-dialbox input[type="tel"] {
  flex: 1;
  width: 100%;

  /* remove the plugin's left padding (it expects the flag to overlay) */
  padding-left: 0.9rem !important;

  border-left: none;
  border-radius: 0 4px 4px 0;
}

/* Unified focus ring on the whole control */
.iti.iti--with-dialbox:focus-within .iti__selected-country,
.iti.iti--with-dialbox:focus-within .iti-dialbox,
.iti.iti--with-dialbox:focus-within input[type="tel"] {
  border-color: #cfa383;
}

.iti.iti--with-dialbox:focus-within {
  box-shadow: 0 0 0 2px rgba(207, 163, 131, 0.4);
  border-radius: 4px;
}

/* Make dropdown list readable (your earlier issue) */
.iti__country-list,
.iti__country,
.iti__country-name,
.iti__dial-code {
  color: #111;
  background: #fff;
}

.iti.iti--with-dialbox .iti__flag-container {
  background-color: white;
}

/* ============================
       CONTACT – RESPONSIVE
       ============================ */

/* DESKTOP: map fills the column height */
@media (min-width: 901px) {
  .contact__layout {
    align-items: stretch;
  }

  .contact__info {
    display: flex;
    flex-direction: column;
  }

  .contact__map {
    flex: 1 1 auto;
    min-height: 220px;
    margin-top: 1.5rem;
  }
}

/* stack columns on tablet / mobile */
@media (max-width: 900px) {
  .contact__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact__info {
    max-width: none;
  }

  .contact__map {
    min-height: 0px;
  }
}

/* stack schedule row on narrow screens */
@media (max-width: 768px) {
  .contact-form__row--schedule {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "area"
      "date";
  }

  .contact__map {
    min-height: none;
  }
}

/* tighten padding on very small screens */
@media (max-width: 600px) {
  .contact__inner {
    padding-inline: 1.5rem;
  }

  .contact-form__row--two {
    grid-template-columns: 1fr;
  }

  .contact__map {
    min-height: 0px;
  }
}

/* ============================
   FAQ SECTION
   ============================ */

.section--faq {
  background: #fffbf7;
  color: #2b1c15;
  padding-block: 4rem 5rem;
}

/* center intro text and match your typography */
.faq-intro {
  max-width: 48rem;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.7;
  font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.faq-list {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* each accordion item */
.faq-item {
  position: relative;
  border: 1px solid #d9a57a;
  border-radius: 10px 10px 0 0; /* rounded top, sharp bottom */
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04); /* subtle drop shadow */
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

/* a tiny lift when open or hovered */
.faq-item.is-open,
.faq-item:hover {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

/* coloured strip at the bottom of each item */
.faq-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #cfa383;
}

/* the clickable question row */
.faq-question {
  width: 100%;
  border: none;
  background: #fbf4ef;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: "Unna", serif;
  font-size: 1.05rem;
  color: #2b1c15;
}

.faq-question__text {
  flex: 1;
}

.faq-question__icon {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

/* Answer area (accordion panel) */
.faq-answer {
  max-height: 0;
  opacity: 0;
  padding: 0 1.25rem;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding-top 0.2s ease,
    padding-bottom 0.2s ease;
  box-sizing: border-box;
}

.faq-answer p {
  margin: 0.4rem 0 0.9rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* OPEN STATE */
.faq-item.is-open .faq-question {
  background: #cfa383;
  color: #ffffff;
}

.faq-item.is-open .faq-question__icon {
  transform: rotate(180deg);
}

.faq-item.is-open .faq-answer {
  max-height: 400px; /* large enough to fit content */
  opacity: 1;
  padding-top: 0.75rem;
  padding-bottom: 0.9rem;
}

/* small tweak on narrow screens */
@media (max-width: 600px) {
  .faq-question {
    padding-inline: 0.9rem;
    font-size: 1rem;
  }

  .faq-answer {
    padding-inline: 0.9rem;
  }
}

/* ============================
   FOOTER
   ============================ */

.site-footer {
  background: #000000;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.site-footer__inner {
  padding: 0.75rem clamp(1.5rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* LEFT SIDE: logo + copyright */
.site-footer__left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.site-footer__logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* vertical divider between logo and text */
.site-footer__divider {
  width: 1px;
  height: 1.6rem;
  background: rgba(255, 255, 255, 0.4);
}

.site-footer__copyright {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* RIGHT SIDE: social icons + email */
.site-footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.site-footer__social {
  display: flex;
  gap: 0.5rem;
}

/* simple square social buttons */
.site-footer__social-link {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.1s ease;
}

.site-footer__social-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.site-footer__social-link:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.site-footer__email {
  color: #ffffff;
  text-decoration: none;
  font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.site-footer__email:hover {
  text-decoration: underline;
}

/* Mobile / tablet: stack + center footer content */
@media (max-width: 800px) {
  .site-footer__inner {
    flex-direction: column; /* stack left + right */
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem 1.5rem;
  }

  .site-footer__left {
    justify-content: center;
  }

  .site-footer__right {
    align-items: center;
  }

  .site-footer__email {
    font-size: 0.85rem;
  }
}

/*CSS for AOP sub-sections*/

/* Top strip image on practice detail pages */
.practice-detail-hero {
  position: relative;
  height: 350px; /* keep this */
  background-size: cover;
  background-position: center;
}

/* One class per area so you can swap images easily */
.practice-detail-hero--commercial {
  background-image: url("assets/aop-main-content/aop-hero-images/CAHeaderImage.png");
}
.practice-detail-hero--conveyancing {
  background-image: url("assets/aop-main-content/aop-hero-images/ConveyancingHeaderImage.png");
}
.practice-detail-hero--family {
  background-image: url("assets/aop-main-content/aop-hero-images/FLHeaderImage.png");
}
.practice-detail-hero--estate {
  background-image: url("assets/aop-main-content/aop-hero-images/EAHeaderImage.png");
}
.practice-detail-hero--litigation {
  background-image: url("assets/aop-main-content/aop-hero-images/GLHeaderImage.png");
}
.practice-detail-hero--others {
  background-image: url("assets/aop-main-content/aop-hero-images/OMHeaderImage.png");
}

.practice-detail-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15); /* subtle darken over the image */
}

/* Practice detail pages – base colours */
.page--practice-detail {
  background-color: #ffffff;
  color: #000000; /* keep text black */
}

/* In case .section has a dark background by default */
.page--practice-detail .practice-detail {
  background-color: #ffffff;
}

/* Heading / intro block under the image */
.practice-detail {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Back link styling – more visible */
p.practice-detail__back {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: center !important; /* force center on smaller breakpoints */
}

p.practice-detail__back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #8b5b2b;

  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  color: #8b5b2b;
  text-decoration: none;

  transition: background-color 0.15s ease, color 0.15s ease,
    transform 0.15s ease, border-color 0.15s ease;
}

/* Tiny hover motion */
p.practice-detail__back a:hover {
  background-color: #8b5b2b;
  color: #ffffff;
  border-color: #8b5b2b;
  transform: translateX(-2px);
}

/* Desktop: align the whole thing to the left */
@media (min-width: 1024px) {
  p.practice-detail__back {
    text-align: left !important;
  }
}

/* ===== MOBILE + TABLET (default) ===== */

/* Wrapper for heading + intro */
.practice-detail__heading {
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: center;
}

/* Icon + title group – stack on small screens */
.practice-detail__eyebrow {
  display: flex;
  flex-direction: column; /* icon above title */
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  text-align: center;
}

.practice-detail__icon img {
  width: 50px;
  height: 50px;
}

/* Main title */
.practice-detail__title {
  font-family: "Unna", serif;
  font-size: 30px;
  font-weight: 700;
  color: #000000; /* black heading */
  text-align: center;
}

/* Intro paragraph */
.practice-detail__intro {
  max-width: 900px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
}

/* Body text (numbered sections) */
.practice-detail__body {
  max-width: 900px;
  margin: 0 auto;
  text-align: center; /* center on mobile/tablet */
}

.practice-detail__body h2 {
  font-family: "Unna", serif;
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 8px;
  color: #000000; /* black subheadings */
}

.practice-detail__body p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Back link styling */
.practice-detail__back {
  max-width: 900px;
  margin: 32px auto 0;
  text-align: left;
}

.practice-detail__back a {
  font-size: 14px;
  text-decoration: none;
  color: #8b5b2b;
}

.practice-detail__back a:hover {
  text-decoration: underline;
}

/* ===== DESKTOP – LEFT ALIGN ===== */
@media (min-width: 1024px) {
  /* Left-align heading, intro and body on desktop */
  .practice-detail__heading,
  .practice-detail__intro,
  .practice-detail__body {
    text-align: left;
  }

  /* Icon + title in a row on desktop */
  .practice-detail__eyebrow {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .practice-detail__title {
    text-align: left;
  }

  .practice-detail__icon img {
    width: 32px;
    height: 32px;
  }
}

/* ===========================
   HOME – AREAS OF PRACTICE
   =========================== */

.section--practice {
  padding: 72px 0;
  background-color: #f7f4ef; /* tweak to match your brand */
}

.section--practice .section-heading {
  text-align: center;
}

.practice-grid-wrapper {
  margin-top: 32px;
  max-width: 1200px; /* prevents 5 cards per row */
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px; /* small side padding on mobile */
}

/* Grid layout */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Card base */
.practice-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;

  /* IMPORTANT: make background image fill the card nicely */
  background-size: cover; /* scales to cover the whole card */
  background-position: center; /* centers the image */
  background-repeat: no-repeat; /* no tiling */

  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease;
}

/* Dark brown overlay over the image */
.practice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(19, 7, 1, 0.85); /* dark brown @ lower opacity */
  pointer-events: none; /* clicks go through to content */
  z-index: 0;
}

/* Inner layout for equal-height cards */
.practice-card-inner {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 260px;

  position: relative;
  z-index: 1; /* sit ABOVE the overlay */
}

/* Raise & brighten on hover */
.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Inner layout for equal-height cards */
.practice-card-inner {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 260px; /* tweak if you want taller cards */
}

/* Top block: icon, title, list */
.practice-card-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Icon + title */
.practice-card-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Icon – give it a subtle pill so black SVGs show on dark bg */
.practice-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.practice-card-icon img {
  width: 36px;
  height: 36px;
  filter: invert(1); /* makes your black icons appear light */
  opacity: 0.9;
}

/* Title */
.practice-card-title {
  font-family: "Unna", serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: capitalize;
}

/* Bullet list */
.practice-card-list {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  font-size: 18px;
  line-height: 1.5;
  opacity: 0.95;
}

/* Bottom row (button area) */
.practice-card-bottom {
  margin-top: 20px;
}

/* "Learn More" link styled as a pill button */
.practice-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 50px;
  border-radius: 999px;
  border: 1px solid #c99a5b;

  font-family: Garamond;
  font-size: 18px;
  text-transform: capitalize;
  letter-spacing: 0.08em;

  color: #f4ece4;
  text-decoration: none;

  transition: background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, transform 0.16s ease;
}

.practice-card-link:hover {
  background-color: #c99a5b;
  color: #1b1410;
  border-color: #c99a5b;
  transform: translateY(-1px);
}

/* ===========================
     RESPONSIVE TWEAKS
     =========================== */

/* Base: mobile – 1 column */
.practice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Tablet: 2 columns */
@media (min-width: 640px) {
  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop and up: 3 columns (3×2 layout for 6 cards) */
@media (min-width: 1024px) {
  .practice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (min-width: 1300px) {
  .practice-card-list {
    font-size: 22px;
  }

  .practice-card-title {
    font-size: 28px;
  }
}

.practice-card--commercial {
  background-image: url("assets/aop-card-images/aop-commercial.jpg");
}

.practice-card--conveyancing {
  background-image: url("assets/aop-card-images/aop-conveyancing.jpg");
}

.practice-card--family {
  background-image: url("assets/aop-card-images/aop-family.jpg");
}

.practice-card--estate {
  background-image: url("assets/aop-card-images/aop-estateadministration.jpg");
}

.practice-card--litigation {
  background-image: url("assets/aop-card-images/aop-generallitigation.jpg");
}

.practice-card--others {
  background-image: url("assets/aop-card-images/aop-othermatters.jpg");
}
