/*
========================================
TABLE OF CONTENTS
1. Variables / tokens
2. Base / reset
3. Typography
4. Shared layout
5. Shared components
6. Header / navigation
7. Homepage
8. About page
9. Q&A / FAQ page
10. Contact page
11. Footer
12. Utilities
13. Responsive rules
========================================
*/

/*
========================================
1. VARIABLES / TOKENS
========================================
*/

:root {
  --bg: #efe3c9;
  --bg-soft: #f7efdd;
  --panel: rgba(255, 249, 239, 0.92);
  --panel-strong: rgba(251, 245, 234, 0.97);
  --ink: #161616;
  --primary: #1e3558;
  --primary-deep: #172844;
  --accent: #b73b32;
  --accent-deep: #8f2d27;
  --border: rgba(30, 53, 88, 0.16);
  --shadow: 0 20px 48px rgba(18, 23, 30, 0.12);
  --shadow-soft: 0 12px 28px rgba(18, 23, 30, 0.08);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1120px;
  --nav-height: 88px;
  --script-font: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
}

/*
========================================
2. BASE / RESET
========================================
*/

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(239, 227, 201, 0.94), rgba(239, 227, 201, 0.96)),
    radial-gradient(circle at top, rgba(183, 59, 50, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(30, 53, 88, 0.04), transparent 60%);
  overflow-x: hidden;
}

/* Global page texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.03)),
    radial-gradient(rgba(0, 0, 0, 0.035) 0.7px, transparent 0.7px);
  background-size: auto, 7px 7px;
}

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

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

button {
  font: inherit;
}

/* Shared keyboard focus treatment */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

main {
  padding-bottom: 4rem;
}

/*
========================================
3. TYPOGRAPHY
========================================
*/

/* Display type used across brand and card headings */
.brand__title,
.page-title,
.hero-heading__main,
.section-title,
.card-title,
.contact-title,
.testimonial-author {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  word-break: normal;
}

.eyebrow {
  display: block;
  margin-bottom: -0.02rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Shared long-form copy rhythm */
.hero__subtitle,
.page-subtitle,
.section-copy,
.card-copy,
.faq-copy,
.footer-copy,
.contact-copy {
  margin: 0;
  line-height: 1.78;
}

.page-title,
.section-title,
.card-title,
.contact-title {
  margin: 0;
  font-size: clamp(1.8rem, 5.6vw, 3.1rem);
  line-height: 1.06;
  white-space: nowrap;
  color: var(--primary);
}

.contact-title {
  white-space: normal;
}

.page-title--compact {
  white-space: nowrap;
}

.page-subtitle {
  max-width: 32rem;
  font-size: 1.05rem;
}

.page-subtitle__mobile-break {
  display: inline;
}

.mobile-break-after-largs {
  display: inline;
}

.smallprint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.7;
}

.traits-inline {
  margin: 0;
  line-height: 1.8;
  color: var(--primary-deep);
}

.traits-inline__line {
  display: inline;
}

/*
========================================
4. SHARED LAYOUT
========================================
*/

.container,
.site-header__inner,
.site-footer__inner {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.hero,
.page-hero {
  padding: 1.5rem 0 3rem;
}

.content-section {
  padding: 0 0 4rem;
}

.home-testimonials-section {
  margin-top: -1.4rem;
  padding-bottom: 1rem;
}

.home-testimonials-section .section-head {
  margin-top: 3.25rem;
  gap: 0.2rem;
}

.home-testimonials-section .container {
  position: relative;
}

.home-testimonials-section .carousel__header {
  position: absolute;
  top: 2.15rem;
  right: 0;
  width: auto;
  z-index: 2;
}

.home-testimonials-section .carousel {
  gap: 0;
}

/* Shared page and split-panel grid shells */
.hero__layout,
.page-hero__layout,
.story-layout,
.story-layout--reverse,
.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.contact-layout {
  gap: 2rem;
}

.services-grid,
.qna-list,
.testimonial-section,
.carousel,
.qna-connect__grid {
  display: grid;
}

.services-grid {
  gap: 1.35rem;
  align-items: stretch;
}

.qna-list {
  gap: 1rem;
}

.testimonial-section {
  gap: 1.8rem;
}

.carousel {
  gap: 1rem;
}

.qna-connect__grid {
  gap: 1.35rem;
}

/* Reusable horizontal action rows */
.quick-links,
.button-row,
.social-row,
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.quick-links {
  justify-content: center;
}

.button-row--center {
  justify-content: center;
}

/*
========================================
5. SHARED COMPONENTS
========================================
*/

/* Accessibility skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

/* Shared elevated panels used across hero, contact, CTA, and footer */
.hero__panel,
.page-hero__panel,
.contact-panel,
.cta-panel,
.footer-panel {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid rgba(30, 53, 88, 0.1);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(244, 234, 212, 0.92));
  box-shadow: var(--shadow);
}

.hero__panel::before,
.page-hero__panel::before,
.cta-panel::before,
.footer-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 53, 88, 0.08), transparent 35%, rgba(183, 59, 50, 0.08));
  pointer-events: none;
}

.contact-panel::before {
  content: none;
}

/* Shared content card shell */
.service-card,
.story-card,
.qna-item,
.contact-sheet,
.contact-card,
.testimonial-card {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

/* Shared button, chip, and social-pill styling */
.button,
.chip-link,
.social-link,
.carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.chip-link:hover,
.social-link:hover,
.carousel-button:hover {
  transform: translateY(-1px);
}

.button,
.social-link,
.carousel-button {
  border: 1px solid rgba(30, 53, 88, 0.16);
}

.button--primary,
.carousel-button {
  background: var(--primary);
  color: #fff;
}

.button--primary:hover,
.carousel-button:hover {
  background: var(--primary-deep);
}

.button--secondary,
.button--ghost,
.chip-link,
.social-link {
  background: rgba(255, 253, 247, 0.86);
  color: var(--primary);
}

.button--accent {
  background: var(--accent);
  color: #fff;
}

.button--accent:hover {
  background: var(--accent-deep);
}

/* Keep chip-link states visually identical in all link states */
.chip-link,
.chip-link:link,
.chip-link:visited,
.chip-link:hover,
.chip-link:active,
.chip-link:focus {
  color: var(--primary);
  text-decoration: none;
}

.chip-link.is-active {
  background: rgba(255, 253, 247, 0.86);
  color: var(--primary);
  border-color: rgba(30, 53, 88, 0.16);
  text-decoration: none;
}

/* Shared section heading stack */
.section-head {
  display: grid;
  gap: 0.04rem;
  margin-bottom: 1.8rem;
}

.section-head--services {
  padding-left: 1.4rem;
}

/* Shared image frame cropping */
.image-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-frame--hero {
  aspect-ratio: 5 / 4;
}

.image-frame--hero-large {
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  justify-self: end;
}

.image-frame--hero-large img {
  object-fit: cover;
  border-radius: inherit;
}

.image-frame--portrait {
  aspect-ratio: 4 / 5;
}

.image-frame--landscape {
  aspect-ratio: 4 / 3;
}

.image-frame--wide {
  aspect-ratio: 16 / 10;
}

/* Shared detail list layout for contact-style information */
.detail-list,
.footer-contact__details {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list a,
.footer-contact__details a {
  color: var(--primary);
}

.detail-item {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  line-height: 1.6;
}

.detail-item__icon {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.3rem;
  color: var(--accent);
}

.detail-item__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* CTA panel content stacking */
.cta-panel__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.3rem;
}

/*
========================================
6. HEADER / NAVIGATION
========================================
*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(247, 239, 221, 0.92);
  border-bottom: 1px solid rgba(30, 53, 88, 0.1);
}

.site-header__inner {
  position: relative;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand lockup in the header */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand__mark {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(183, 59, 50, 0.35);
  box-shadow: var(--shadow-soft);
  background: #f6ecda;
}

.brand__text {
  min-width: 0;
}

.brand__title {
  display: block;
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
}

.brand__tagline {
  display: block;
  margin-top: 0.28rem;
  font-size: clamp(0.78rem, 1.95vw, 0.9rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Mobile navigation toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(30, 53, 88, 0.18);
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.84);
  color: var(--primary);
  cursor: pointer;
}

.nav-toggle__line,
.nav-toggle__line::before,
.nav-toggle__line::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
  content: "";
}

.nav-toggle__line::before {
  transform: translateY(-6px);
}

.nav-toggle__line::after {
  transform: translateY(4px);
}

/* Dropdown navigation panel on small screens */
.site-nav {
  position: absolute;
  inset: calc(100% + 0.5rem) 1rem auto;
  padding: 0.8rem;
  border: 1px solid rgba(30, 53, 88, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 242, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--primary);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(30, 53, 88, 0.08);
}

/*
========================================
7. HOMEPAGE
========================================
*/

/* Homepage hero panel gets an extra warm accent wash */
.hero__panel {
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(244, 234, 212, 0.92)),
    radial-gradient(circle at right center, rgba(183, 59, 50, 0.1), transparent 38%);
}

/* Homepage hero logo band */
.hero__brand-band {
  position: relative;
  z-index: 1;
  min-height: 180px;
  margin-bottom: 1.25rem;
  border-radius: calc(var(--radius-xl) - 10px);
  background:
    linear-gradient(rgba(255, 248, 233, 0.66), rgba(255, 248, 233, 0.7)),
    url("img/logo1.jpg") center/cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__brand-band img {
  width: min(220px, 42vw);
  opacity: 0.94;
  filter: drop-shadow(0 18px 26px rgba(16, 20, 30, 0.16));
}

/* Homepage hero copy alignment */
.hero__copy {
  display: grid;
  gap: 1.15rem;
  justify-items: center;
  text-align: center;
  align-content: center;
}

.home-hero-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 520px);
}

.home-hero-gallery__item {
  min-height: 180px;
}

.home-hero-gallery__image--poodle {
  object-position: center 48%;
}

.hero__heading {
  display: grid;
  gap: 0.7rem;
}

.hero-heading__main {
  margin: 0;
  font-size: clamp(1.95rem, 7vw, 4rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--primary);
}

.hero-heading__sub {
  display: block;
  font-size: clamp(1.1rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--accent-deep);
}

.hero__subtitle {
  max-width: 34rem;
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--primary-deep);
  white-space: nowrap;
}

/* Homepage service card content */
.section-head--services .section-title {
  font-size: clamp(1.9rem, 5.2vw, 2.8rem);
}

.section-title__mobile-break {
  display: inline;
}

.service-card {
  display: grid;
  gap: 1rem;
  grid-template-rows: auto 1fr auto auto;
  scroll-margin-top: 120px;
}

.service-card .card-title {
  font-size: clamp(1.55rem, 4.4vw, 2.2rem);
}

.service-card .button {
  margin-top: 0.45rem;
  width: 100%;
  min-width: 100%;
  justify-self: stretch;
  align-self: end;
}

.service-card--image {
  padding: 0.9rem;
}

.service-card__image-frame {
  height: 100%;
  min-height: 100%;
}

.service-card__image-frame img {
  object-position: center 66%;
}

.service-card--holiday-image .service-card__image-frame img {
  object-position: center 38%;
}

.service-copy-group {
  display: grid;
  gap: 0.9rem;
}

#holiday-care .service-copy-group {
  gap: 0.1rem;
  align-content: start;
}

#holiday-care .service-price {
  margin-top: 0;
  margin-bottom: 0;
}

#pet-drop-ins .service-price,
#doggy-day-care .service-price,
#holiday-care .service-price {
  gap: 1.1rem;
  line-height: 1.5;
}

#holiday-care {
  grid-template-rows: auto auto auto auto;
  gap: 0.55rem;
  align-self: start;
}

#holiday-care .button {
  margin-top: 0;
}

.services-grid .service-card--image {
  padding: 0.55rem;
  align-self: start;
}

.service-price {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.service-price__spacer {
  height: 0.55rem;
}

.service-price__note {
  font-size: 0.96rem;
  color: rgba(143, 45, 39, 0.9);
}

/* Homepage testimonial carousel */
.carousel__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.carousel__controls {
  display: none;
  gap: 0.75rem;
}

.carousel__button {
  width: 3rem;
  min-width: 3rem;
  padding: 0;
}

.carousel__button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.35s ease;
  touch-action: pan-y;
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.carousel__dot {
  width: 0.8rem;
  height: 0.8rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 53, 88, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel__dot.is-active {
  background: var(--accent);
  transform: scale(1.08);
}

.testimonial-card {
  display: grid;
  gap: 1rem;
  min-height: 100%;
  box-shadow: none;
}

.testimonial-stars {
  display: inline-flex;
  gap: 0.22rem;
  color: #c58a28;
  font-size: 1.15rem;
}

.testimonial-quote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.85;
}

.testimonial-author {
  display: block;
  margin-top: 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

/*
========================================
8. ABOUT PAGE
========================================
*/

/* About page hero panel sizing */
.page-hero__panel--about {
  width: 100%;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.about-hero__image {
  width: min(100%, 250px);
  justify-self: end;
}

/* About page story cards */
.story-card {
  display: grid;
  gap: 1.15rem;
}

.story-card--compact {
  max-width: 34rem;
}

.story-card--about-box {
  margin-inline: auto;
}

.story-card--about-plain {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.story-card--about-plain::after {
  display: none;
}

.story-card--combined {
  max-width: none;
}

.story-card--story {
  align-content: start;
}

.story-card--story .story-card__copy {
  gap: 0.8rem;
}

.story-layout + .story-card {
  margin-top: 1.5rem;
}

.story-layout--scotland {
  justify-items: center;
  margin-bottom: 1.5rem;
}

.story-layout--scotland + .story-card {
  margin-top: 1rem;
}

.story-text {
  display: grid;
  gap: 1rem;
}

.story-card--story .story-text {
  gap: 0.55rem;
}

/* About page intro split with image */
.about-intro-section {
  padding-top: 1.5rem;
  padding-bottom: 1.2rem;
}

.about-story-section {
  padding-bottom: 2rem;
}

.about-scotland-section {
  padding-bottom: 0.65rem;
}

.about-page-main {
  padding-bottom: 1.8rem;
}

.about-intro-section .story-card--about-box {
  margin-inline: 0;
  max-width: none;
  padding-left: 1.55rem;
  gap: 0.06rem;
}

.about-intro-section .eyebrow {
  margin-bottom: -0.08rem;
  line-height: 1;
}

.about-intro-section .page-title {
  margin-bottom: 0;
}

.about-intro-section .card-copy {
  margin-top: 0.85rem;
}

#who-we-are-heading {
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
}

#scotland-heading {
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
}

#who-we-are-heading + .quote-block {
  margin-top: 1rem;
}

.about-story-section .story-card__copy > .eyebrow,
.about-scotland-section .story-card__copy > .eyebrow {
  margin-bottom: 0.02rem;
}

.about-story-section .story-card__copy,
.about-scotland-section .story-card__copy {
  gap: 0.16rem;
}

.about-story-section .story-card__copy > .quote-block {
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}

.about-scotland-section .story-card__copy > .quote-block {
  margin-top: 0.9rem;
  margin-bottom: 0.9rem;
}

.story-card__split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.story-card__copy {
  display: grid;
  gap: 1rem;
}

.story-card__media {
  width: min(100%, 280px);
  justify-self: center;
}

.about-story-section .story-card__media {
  justify-self: start;
}

/* About page quote styling */
.quote-block {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(183, 59, 50, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 243, 0.88);
  box-shadow: var(--shadow-soft);
}

.quote-block p,
.quote-signoff {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02em;
  line-height: 1.75;
  color: var(--primary-deep);
}

.quote-block--plain p {
  font-family: var(--body-font);
  font-size: 1.02em;
  line-height: 1.75;
}

.quote-signoff {
  margin-top: 0.1rem;
}

.quote-signoff--right {
  text-align: right;
}

.story-cta {
  font-weight: 700;
  color: var(--primary);
}

.story-cta__link {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.story-cta__link:hover,
.story-cta__link:focus-visible {
  color: var(--accent-deep);
}

/*
========================================
9. Q&A / FAQ PAGE
========================================
*/

/* Q&A intro hero content */
.qna-intro-panel {
  padding-block: 1.2rem;
}

.qna-intro-layout {
  align-items: start;
}

.qna-intro-copy {
  display: grid;
  gap: 0.08rem;
}

.qna-intro-copy .page-subtitle {
  max-width: 36rem;
}

.qna-intro-band {
  width: 100%;
  height: 440px;
  margin: 0 0 1.25rem;
  border-radius: calc(var(--radius-xl) - 10px);
  overflow: hidden;
  min-height: 440px;
  background: rgba(255, 248, 233, 0.72);
}

.qna-intro-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  display: block;
}

.page-intro-lines {
  display: grid;
  gap: 0.2rem;
  max-width: 24rem;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--primary-deep);
}

.page-intro-lines span {
  display: block;
}

/* FAQ accordion */
.qna-item {
  padding: 1.2rem 1.3rem;
}

.qna-page-section {
  padding-bottom: 3rem;
}

.faq-page-main {
  padding-bottom: 0;
}

.qna-button {
  width: 100%;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.qna-button .card-title {
  flex: 1 1 auto;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  white-space: nowrap;
  line-height: 1.18;
}

.qna-icon {
  flex: 0 0 auto;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.qna-answer {
  display: none;
  padding-top: 1rem;
}

.qna-item.is-open .qna-answer {
  display: block;
}

.qna-item.is-open .qna-icon {
  transform: rotate(45deg);
}

/* Q&A contact / connect panels */
.qna-connect-panel {
  display: grid;
  gap: 1.35rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.qna-connect-panel__content {
  display: grid;
  gap: 1rem;
}

.qna-connect-panel__brand {
  display: grid;
  gap: 1rem;
}

.qna-connect-panel__heading {
  display: grid;
  gap: 0.7rem;
}

.qna-connect-panel__heading .card-title {
  white-space: normal;
}

.qna-connect-panel__image {
  min-height: 280px;
}

.qna-connect-panel__actions {
  display: grid;
  gap: 0.9rem;
  align-items: start;
}

.social-row--qna,
.qna-connect-panel__actions .button-row--center {
  justify-content: flex-start;
}

.qna-connect__logo-card {
  place-items: center;
  min-height: 100%;
}

.qna-connect__logo {
  width: min(100%, 180px);
  filter: drop-shadow(0 16px 24px rgba(16, 20, 30, 0.12));
}

.qna-connect__text-card,
.qna-connect__cta-card {
  align-content: start;
}

/*
========================================
10. CONTACT PAGE
========================================
*/

/* Contact page intro copy and trust markers */
.contact-intro {
  display: grid;
  gap: 1.2rem;
}

.contact-title-group {
  display: grid;
  gap: 0.02rem;
}

.contact-subtitle {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.trust-list {
  gap: 0.65rem;
}

.trust-list span {
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(30, 53, 88, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.75);
  font-weight: 700;
  color: var(--primary);
}

/* Contact detail card and gallery spacing */
.contact-sheet {
  display: grid;
  gap: 1.1rem;
}

.contact-gallery-section {
  padding-bottom: 2rem;
}

.contact-main-section {
  padding-top: 0;
  padding-bottom: 2rem;
}

.contact-page-main {
  padding-bottom: 0;
}

/* Contact page: 4-image gallery */
.contact-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-gallery__item {
  min-height: 180px;
}

.contact-gallery__item:has(.contact-image-adjust) {
  min-height: 210px;
}

/* Contact gallery image crop adjustment for specific photos */
.image-frame img.contact-image-adjust {
  object-fit: cover;
  object-position: center 20%;
  border-radius: inherit;
}

/* Contact page main info card split */
.contact-card-layout {
  display: grid;
  gap: 1.75rem;
}

.contact-card-layout__content,
.contact-card-layout__aside {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.15rem;
}

.contact-card-layout__content .detail-list {
  margin-top: 0.25rem;
}

.contact-card-layout__content .section-copy {
  margin-bottom: 0;
}

.contact-card-layout__content .section-copy + .traits-inline {
  margin-top: -1rem;
  line-height: 1.55;
  color: var(--ink);
}

.contact-card-layout__aside {
  align-content: start;
}

.contact-logo-panel {
  --contact-logo-panel-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--contact-logo-panel-radius);
  background: rgba(255, 250, 242, 0.86);
  background-clip: padding-box;
  box-shadow: var(--shadow-soft);
}

.contact-logo-panel__image {
  display: block;
  width: min(100%, 220px);
  border-radius: inherit;
}

/* Contact page action row alignment */
.social-row--contact-card {
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 1.5rem;
}

.contact-sheet--primary .button-row--center {
  justify-content: center;
}

.social-row--contact {
  justify-content: flex-start;
}

/*
========================================
11. FOOTER
========================================
*/

.site-footer {
  padding: 0 0 2rem;
}

.footer-panel {
  padding: 1.5rem;
}

.footer-panel--light {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 22px rgba(18, 23, 30, 0.07);
}

.footer-panel--light::before {
  opacity: 0.45;
}

/* Footer contact grid */
.footer-contact {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.4rem;
}

.footer-contact__brand {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1.3rem;
}

.footer-contact__summary {
  display: grid;
  gap: 0.04rem;
  justify-self: center;
  justify-items: center;
  text-align: center;
  width: fit-content;
  max-width: 100%;
}

.footer-contact__summary .smallprint {
  max-width: 42rem;
  line-height: 1.45;
}

.footer-contact__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-content: start;
  justify-items: start;
}

.footer-contact__actions .button,
.footer-contact__actions .social-link {
  width: 100%;
}

.footer-contact--simple {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.footer-contact--simple {
  gap: 0;
}

.footer-contact--simple .smallprint + .smallprint {
  margin-top: 0.7rem;
}

.footer-contact--simple .smallprint {
  max-width: 42rem;
}

.footer-business {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/*
========================================
12. UTILITIES
========================================
*/

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/*
========================================
13. RESPONSIVE RULES
========================================
*/

/* Mobile-first small header and hero trims */
@media (max-width: 479px) {
  .brand {
    gap: 0.6rem;
  }

  .brand__mark {
    width: 56px;
    height: 56px;
  }

  .brand__title {
    font-size: 0.9rem;
  }

  .brand__tagline {
    font-size: 0.66rem;
    letter-spacing: 0.11em;
  }

  .hero-heading__main {
    font-size: clamp(1.85rem, 9vw, 2.2rem);
  }

  .hero-heading__sub {
    font-size: clamp(1.1rem, 5.5vw, 1.35rem);
  }

  .hero__brand-band {
    min-height: 132px;
  }

  .hero__brand-band img {
    width: min(170px, 46vw);
  }

  .page-title--compact {
    font-size: clamp(1.7rem, 9vw, 2.15rem);
  }
}

/* Primary mobile and tablet reductions */
@media (max-width: 768px) {
  .container,
  .site-header__inner,
  .site-footer__inner {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .site-header__inner {
    gap: 0.75rem;
    min-height: 80px;
  }

  .brand {
    gap: 0.65rem;
    flex: 1 1 auto;
  }

  .brand__mark {
    width: 58px;
    height: 58px;
  }

  .brand__title {
    font-size: clamp(0.95rem, 4vw, 1.08rem);
  }

  .brand__tagline {
    font-size: clamp(0.66rem, 2.8vw, 0.76rem);
    letter-spacing: 0.1em;
  }

  .nav-toggle {
    width: 2.8rem;
    height: 2.8rem;
  }

  .site-nav {
    inset: calc(100% + 0.4rem) 0.625rem auto;
  }

  .site-nav a {
    padding: 0.82rem 0.9rem;
  }

  .hero,
  .page-hero,
  .content-section {
    padding-bottom: 2.25rem;
  }

  .hero,
  .page-hero {
    padding-top: 1rem;
  }

  .hero__panel,
  .page-hero__panel,
  .contact-panel,
  .cta-panel,
  .footer-panel {
    padding: 1.1rem;
    border-radius: 28px;
  }

  .hero__brand-band {
    min-height: 118px;
    margin-bottom: 1rem;
  }

  .hero__brand-band img {
    width: min(150px, 44vw);
  }

  .hero__layout,
  .page-hero__layout,
  .story-layout,
  .story-layout--reverse,
  .contact-layout {
    gap: 1.1rem;
  }

  .hero__copy {
    gap: 1rem;
  }

  .hero__layout {
    justify-items: center;
  }

  .hero__layout--index {
    grid-template-columns: 1fr;
  }

  .hero__heading {
    gap: 0.45rem;
  }

  .hero-heading__main,
  .hero-heading__sub,
  .page-title,
  .page-title--compact,
  .section-title,
  .card-title,
  .contact-title {
    white-space: normal;
    line-height: 1.08;
  }

  .hero-heading__main {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .hero-heading__sub {
    font-size: clamp(1.08rem, 5vw, 1.45rem);
  }

  .hero__subtitle {
    font-size: 0.92rem;
    white-space: normal;
  }

  .image-frame--hero-large {
    width: min(100%, 280px);
    justify-self: center;
  }

  .page-title {
    font-size: clamp(1.7rem, 7.6vw, 2.45rem);
  }

  .page-title--compact {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .section-title,
  .card-title,
  .contact-title {
    font-size: clamp(1.45rem, 6.3vw, 2.05rem);
  }

  .hero__subtitle,
  .page-subtitle,
  .section-copy,
  .card-copy,
  .faq-copy,
  .footer-copy,
  .contact-copy,
  .page-intro-lines {
    line-height: 1.6;
  }

  .quick-links {
    justify-content: flex-start;
    gap: 0.55rem;
  }

  .page-subtitle__mobile-break {
    display: block;
  }

  .mobile-break-after-largs {
    display: block;
  }

  .chip-link {
    flex: 1 1 calc(50% - 0.55rem);
    min-width: 0;
    min-height: 44px;
    padding: 0.82rem 0.9rem;
    text-align: center;
  }

  .services-grid,
  .qna-list {
    gap: 0.95rem;
  }

  .service-card,
  .story-card,
  .qna-item,
  .contact-sheet,
  .contact-card,
  .testimonial-card {
    padding: 1.1rem;
  }

  .section-head--services {
    padding-left: 0;
  }

  .service-card .button {
    width: 100%;
  }

  .service-card--image {
    display: block;
    padding-bottom: 0.9rem;
  }

  .service-card--image .service-card__image-frame {
    height: auto;
    min-height: 0;
  }

  .service-price {
    gap: 0.28rem;
  }

  .page-hero__panel--about {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .about-hero__image {
    width: min(100%, 220px);
    justify-self: center;
  }

  .story-layout--scotland {
    justify-items: stretch;
  }

  .quote-block {
    padding: 1rem 1.05rem;
  }

  .about-intro-section {
    padding-top: 1rem;
    padding-bottom: 0.95rem;
  }

  .about-scotland-section {
    padding-bottom: 0.3rem;
  }

  .about-page-main {
    padding-bottom: 0.9rem;
  }

  .about-intro-section .story-card--about-box {
    margin-inline: auto;
  }

  .about-story-section .story-card__media,
  .about-scotland-section .story-card__media {
    justify-self: center;
  }

  .story-card__split {
    gap: 1.1rem;
  }

  .story-card__split--reverse > .story-card__copy {
    order: 1;
  }

  .story-card__split--reverse > .story-card__media {
    order: 2;
  }

  .quote-block p,
  .quote-signoff {
    font-size: clamp(1rem, 4.6vw, 1.3rem);
    line-height: 1.68;
  }

  .carousel__header {
    display: grid;
    gap: 0.75rem;
  }

  .carousel__viewport {
    overflow: hidden;
  }

  .qna-item {
    padding: 1rem 1.05rem;
  }

  .qna-button .card-title {
    font-size: clamp(1.18rem, 5.3vw, 1.5rem);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .qna-intro-panel {
    padding-block: 1rem;
  }

  .qna-page-section {
    padding-bottom: 2.25rem;
  }

  .qna-connect-panel {
    padding: 1.1rem;
    gap: 1.1rem;
  }

  .qna-intro-band {
    width: 100%;
    height: 145px;
    min-height: 145px;
    margin-bottom: 1rem;
  }

  .qna-intro-band img {
    object-position: center 20%;
  }

  .qna-connect-panel__brand,
  .qna-connect-panel__actions {
    gap: 0.8rem;
  }

  .qna-connect-panel__image {
    min-height: 220px;
  }

  .cta-panel__content {
    gap: 1rem;
  }

  .contact-layout {
    gap: 1.25rem;
  }

  .contact-intro,
  .contact-sheet {
    gap: 1rem;
  }

  .contact-gallery {
    gap: 0.85rem;
  }

  .home-hero-gallery {
    gap: 0.85rem;
  }

  .home-hero-gallery__item {
    min-height: 150px;
  }

  .contact-gallery-section {
    padding-bottom: 2.25rem;
  }

  .contact-main-section {
    padding-bottom: 2.25rem;
  }

  .contact-page-main {
    padding-bottom: 0;
  }

  .contact-gallery__item {
    min-height: 150px;
  }

  .contact-gallery__item:has(.contact-image-adjust) {
    min-height: 180px;
  }

  .contact-card-layout {
    gap: 1.25rem;
  }

  .contact-card-layout__content {
    justify-items: center;
    text-align: center;
  }

  .contact-card-layout__content .section-copy {
    margin-bottom: 0.75rem;
  }

  .contact-card-layout__content .section-copy + .traits-inline {
    margin-top: 0;
    margin-bottom: 0.75rem;
  }

  .contact-card-layout__content .traits-inline__line {
    display: block;
  }

  .contact-card-layout__content .traits-inline__line + .traits-inline__line {
    margin-top: 0.15rem;
  }

  .contact-card-layout__content .detail-list {
    justify-items: center;
    margin-top: 0.15rem;
  }

  .contact-card-layout__content .detail-item {
    justify-content: center;
  }

  .contact-subtitle {
    font-size: 1.08rem;
  }

  .trust-list {
    gap: 0.85rem;
    margin: 0.2rem 0 0.45rem;
  }

  .trust-list span {
    padding: 0.4rem 0.72rem;
  }

  .detail-list,
  .footer-contact__details {
    gap: 0.72rem;
  }

  .button-row {
    gap: 0.6rem;
  }

  .social-row--contact,
  .button-row--center {
    justify-content: flex-start;
  }

  .social-row--contact-card {
    justify-content: center;
    gap: 0.8rem;
  }

  .social-row--contact-card .social-link {
    flex: 0 1 calc(50% - 0.4rem);
  }

  .contact-sheet .button-row .button,
  .cta-panel__content .button-row .button {
    flex: 1 1 220px;
  }

  .footer-panel {
    padding: 1.15rem;
  }

  .footer-contact:not(.footer-contact--simple) .footer-contact__summary {
    display: contents;
  }

  .footer-contact:not(.footer-contact--simple) .footer-contact__brand {
    order: 1;
    justify-self: center;
    text-align: center;
  }

  .footer-contact:not(.footer-contact--simple) .footer-contact__summary .smallprint {
    order: 3;
    justify-self: center;
    text-align: center;
  }

  .footer-contact:not(.footer-contact--simple) .footer-contact__details {
    order: 2;
    justify-self: center;
    text-align: center;
  }

  .footer-contact:not(.footer-contact--simple) .footer-contact__details .detail-item {
    justify-content: center;
  }

  .footer-contact:not(.footer-contact--simple) .footer-contact__actions {
    order: 3;
  }

  .footer-contact--simple {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-contact--simple .footer-contact__brand {
    order: 1;
    margin-bottom: 0.5rem;
  }

  .footer-contact--simple .smallprint {
    order: 2;
  }
}

/* Small-phone overrides kept after 768px block to preserve original cascade */
@media (max-width: 420px) {
  .container,
  .site-header__inner,
  .site-footer__inner {
    width: min(calc(100% - 1rem), var(--container));
  }

  .hero__panel,
  .page-hero__panel,
  .contact-panel,
  .cta-panel,
  .footer-panel {
    padding: 0.95rem;
    border-radius: 10px;
  }

  .hero__brand-band {
    min-height: 104px;
  }

  .hero__brand-band img {
    width: min(136px, 44vw);
  }

  .hero-heading__main {
    font-size: clamp(1.7rem, 8.2vw, 2.05rem);
  }

  .hero-heading__sub {
    font-size: clamp(1rem, 4.9vw, 1.25rem);
  }

  .hero__subtitle {
    font-size: 0.86rem;
  }

  .page-title {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
  }

  .about-scotland-section {
    padding-bottom: 0.2rem;
  }

  .about-page-main {
    padding-bottom: 0.6rem;
  }

  .section-title,
  .card-title,
  .contact-title {
    font-size: clamp(1.28rem, 5.9vw, 1.68rem);
  }

  .section-title__mobile-break {
    display: block;
  }

  .service-card,
  .story-card,
  .qna-item,
  .contact-sheet,
  .contact-card,
  .testimonial-card {
    padding: 0.95rem;
  }

  .chip-link,
  .button,
  .social-link {
    min-height: 42px;
    padding: 0.78rem 0.88rem;
  }

  .chip-link {
    flex-basis: 100%;
  }

  .image-frame--hero-large {
    width: min(100%, 250px);
  }

  .about-hero__image {
    width: min(100%, 205px);
  }

  .quote-block {
    padding: 0.9rem;
  }

  .quote-block p,
  .quote-signoff {
    font-size: clamp(0.96rem, 4.5vw, 1.16rem);
  }

  .qna-button {
    gap: 0.7rem;
  }

  .qna-connect-panel {
    padding: 0.95rem;
  }

  .qna-connect-panel__image {
    min-height: 190px;
  }

  .contact-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qna-connect__logo {
    width: min(100%, 140px);
  }

  .contact-sheet .button-row .button,
  .cta-panel__content .button-row .button {
    flex-basis: 100%;
  }
}

/* Desktop navigation and two-column layouts */
@media (min-width: 720px) {
  .site-header__inner {
    gap: 2rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .hero__panel,
  .page-hero__panel,
  .contact-panel,
  .cta-panel,
  .footer-panel {
    padding: 2rem;
  }

  .hero__layout,
  .page-hero__layout,
  .story-layout,
  .story-layout--reverse,
  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
  }

  .hero__layout--index {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .hero__layout--index .hero__copy {
    width: auto;
    max-width: 100%;
    margin-inline: 0;
    display: grid;
    justify-items: center;
    text-align: center;
    align-content: start;
    gap: 0.85rem;
  }

  .home-hero-gallery {
    display: flex;
    gap: 1.75rem;
    width: auto;
    max-width: 100%;
    justify-content: center;
    align-items: stretch;
  }

  .home-hero-gallery__item {
    width: 150px;
    flex: 0 0 150px;
    min-height: 225px;
  }

  .hero__layout--index .hero__heading {
    justify-items: center;
    gap: 0.2rem;
    justify-self: center;
  }

  .hero__layout--index .hero__subtitle {
    margin-top: 0;
    text-align: center;
    justify-self: center;
  }

  .hero__layout--index .quick-links {
    justify-content: center;
    width: auto;
    margin-inline: 0;
  }

  .qna-intro-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .qna-intro-band {
    width: 100%;
    min-height: 195px;
    margin-bottom: 1.25rem;
  }

  .story-layout--reverse > :first-child {
    order: 2;
  }

  .story-layout--reverse > :last-child {
    order: 1;
  }

  .story-layout--scotland {
    grid-template-columns: minmax(0, 480px) minmax(0, 480px);
    justify-content: center;
    column-gap: 5.125rem;
    row-gap: 2rem;
  }

  .story-card__split {
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
    gap: 2rem;
  }

  .about-story-section .story-card__split {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 0.9rem;
  }

  .story-card__split--reverse {
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  }

  .about-scotland-section .story-card__split--reverse {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .story-card__media {
    width: min(100%, 300px);
    justify-self: end;
  }

  .story-card__split--reverse .story-card__media {
    justify-self: start;
  }

  .about-story-section .story-card,
  .about-scotland-section .story-card {
    padding: 1.9rem;
  }

  .about-story-section .story-card__split,
  .about-scotland-section .story-card__split {
    gap: 1.75rem;
  }

  .about-story-section .story-card__media,
  .about-scotland-section .story-card__media {
    width: min(100%, 288px);
  }

  .about-story-section .story-card__media {
    justify-self: end;
  }

  .services-grid .service-card--image {
    padding: 0.5rem;
    display: flex;
    height: 100%;
  }

  .service-card--image .service-card__image-frame {
    aspect-ratio: 16 / 10;
  }

  .qna-connect__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .qna-connect-panel {
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
  }

  .service-card--holiday {
    transform: scaleX(0.992);
    transform-origin: left center;
  }

  .service-card--holiday-image {
    transform: scaleX(1.008);
    transform-origin: right center;
  }

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

  .contact-card-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    align-items: start;
  }

  .footer-contact {
    grid-template-columns: minmax(220px, 1fr) minmax(360px, auto) minmax(220px, 1fr);
    align-items: start;
  }

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

  .footer-contact__summary {
    align-self: center;
  }

  .footer-contact__details {
    justify-self: start;
    align-self: center;
  }

  .footer-contact__actions {
    min-width: 190px;
    justify-self: end;
  }

  .carousel__controls {
    display: inline-flex;
  }
}

/* Wider desktop homepage layout */
@media (min-width: 980px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .hero__copy {
    gap: 1.15rem;
    justify-items: start;
    text-align: left;
  }

  .hero-heading__main {
    font-size: clamp(1.9rem, 3.5vw, 3.25rem);
  }

  .hero-heading__sub {
    font-size: clamp(1.06rem, 2vw, 1.75rem);
  }

  .hero__subtitle {
    max-width: 29rem;
    font-size: 0.94rem;
  }

  .image-frame--hero-large {
    width: 100%;
    min-height: 420px;
  }

  .quick-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    justify-content: stretch;
    gap: 0.65rem;
    width: 100%;
    max-width: 52rem;
  }

  .quick-links .chip-link {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0.8rem 0.7rem;
    font-size: 0.98rem;
    text-align: center;
  }
}
