/* ==========================================================================
   Holme Valley Estate Planning - Main Stylesheet
   Mobile-first responsive design
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Variables)
   -------------------------------------------------------------------------- */
:root {
  /* Colour Palette */
  --color-primary: #8FAE8B;
  --color-primary-dark: #7A9B76;
  --color-primary-light: #A8C4A4;
  --color-secondary: #F5F1E8;
  --color-secondary-dark: #E8E2D5;
  --color-accent: #7D9AAA;
  --color-accent-dark: #6A8797;
  --color-text: #3D3D3D;
  --color-text-light: #5A5A5A;
  --color-text-muted: #777777;
  --color-highlight: #C9A9A6;
  --color-highlight-dark: #B89895;
  --color-white: #FFFFFF;
  --color-border: #E0DCD3;

  /* Typography */
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(61, 61, 61, 0.08);
  --shadow-md: 0 4px 12px rgba(61, 61, 61, 0.1);
  --shadow-lg: 0 8px 24px rgba(61, 61, 61, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Container widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
}

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

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.625rem;
}

h3 {
  font-size: 1.375rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 var(--space-sm);
}

.lead {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

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

.text-accent {
  color: var(--color-accent);
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.container--narrow {
  max-width: var(--container-md);
}

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

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

.section--sage {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--sage h2,
.section--sage h3 {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm);
  max-width: var(--container-xl);
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__nav {
  display: none;
}

.header__cta {
  display: none;
}

/* Mobile Menu Button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 67px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-white);
  padding: var(--space-md);
  overflow-y: auto;
  z-index: 999;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav__item {
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__link {
  display: block;
  padding: var(--space-md) 0;
  font-size: 1.125rem;
  color: var(--color-text);
}

.mobile-nav__link:hover {
  color: var(--color-primary-dark);
}

.mobile-nav__dropdown {
  padding-left: var(--space-md);
}

.mobile-nav__dropdown-link {
  display: block;
  padding: var(--space-sm) 0;
  color: var(--color-text-light);
  font-size: 1rem;
}

.mobile-nav__cta {
  margin-top: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 48px;
  min-width: 48px;
}

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

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

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

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

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary-dark);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

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

.btn--white:hover {
  background-color: var(--color-secondary);
  color: var(--color-text);
}

.btn--small {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  min-height: 44px;
}

.btn--full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: var(--space-xl) 0 var(--space-2xl);
  background-color: var(--color-secondary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%238FAE8B' fill-opacity='0.15' d='M0,60 Q180,20 360,50 Q540,80 720,40 Q900,0 1080,30 Q1260,60 1440,25 L1440,120 L0,120 Z'/%3E%3Cpath fill='%238FAE8B' fill-opacity='0.1' d='M0,80 Q240,40 480,70 Q720,100 960,60 Q1200,20 1440,50 L1440,120 L0,120 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
  pointer-events: none;
}

/* Decorative leaf elements */
.hero__decoration {
  position: absolute;
  color: var(--color-primary);
  pointer-events: none;
  z-index: 0;
}

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

.hero__decoration--1 {
  width: 80px;
  height: 100px;
  top: 10%;
  right: 8%;
  transform: rotate(15deg);
}

.hero__decoration--2 {
  width: 60px;
  height: 75px;
  top: 50%;
  right: 15%;
  transform: rotate(-20deg);
}

.hero__decoration--3 {
  width: 50px;
  height: 62px;
  bottom: 25%;
  right: 5%;
  transform: rotate(35deg);
}

.hero__decoration--4 {
  width: 45px;
  height: 56px;
  top: 20%;
  right: 25%;
  transform: rotate(-10deg);
}

.hero__decoration--5 {
  width: 70px;
  height: 87px;
  bottom: 15%;
  right: 22%;
  transform: rotate(25deg);
}

/* Hide some decorations on mobile */
@media (max-width: 767px) {
  .hero__decoration--2,
  .hero__decoration--4 {
    display: none;
  }

  .hero__decoration--1 {
    width: 50px;
    height: 62px;
    top: 5%;
    right: 5%;
  }

  .hero__decoration--3 {
    width: 35px;
    height: 44px;
    bottom: 30%;
  }

  .hero__decoration--5 {
    width: 45px;
    height: 56px;
    bottom: 10%;
    right: 15%;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero__title {
  font-size: 2.25rem;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  border: 1px solid var(--color-border);
}

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

.card__icon {
  width: 56px;
  height: 56px;
  background-color: var(--color-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary-dark);
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.card__link {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

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

.card__link:hover svg {
  transform: translateX(4px);
}

/* Service Cards Grid */
.services-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* Testimonials Grid - centered */
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-lg);
}

.testimonials-grid .testimonial {
  flex: 1 1 300px;
  max-width: 380px;
}

/* --------------------------------------------------------------------------
   Trust Signals
   -------------------------------------------------------------------------- */
.trust-signals {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.trust-signal {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.trust-signal__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-signal__icon img {
  max-width: 100%;
  max-height: 100%;
}

.trust-signal__text {
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-left: 4px solid var(--color-primary);
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.testimonial__author {
  font-weight: 500;
  color: var(--color-text);
}

.testimonial__location {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Process/Steps
   -------------------------------------------------------------------------- */
.process-steps {
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 48px;
  width: 2px;
  height: calc(100% - 32px);
  background-color: var(--color-border);
}

.process-step__content h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.process-step__content p {
  color: var(--color-text-light);
  margin: 0;
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}

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

.faq-question {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: var(--space-sm);
}

.faq-answer p {
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 48px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(143, 174, 139, 0.2);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-radio {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.form-radio input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer__column h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.footer__logo {
  margin-bottom: var(--space-md);
}

.footer__logo img {
  height: 45px;
  filter: brightness(0) invert(1);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  margin-bottom: var(--space-xs);
}

.footer__list a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

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

.footer__contact p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  margin-bottom: var(--space-xs);
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.8);
}

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

.footer__phone {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-white) !important;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-md);
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.6);
}

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

.footer__disclaimer {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Page Header (for inner pages)
   -------------------------------------------------------------------------- */
.page-header {
  background-color: var(--color-secondary);
  padding: var(--space-xl) 0;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%238FAE8B' fill-opacity='0.1' d='M0,30 Q360,10 720,40 Q1080,70 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
  pointer-events: none;
}

.page-header__title {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.page-header__subtitle {
  color: var(--color-text-light);
  font-size: 1.125rem;
  max-width: 600px;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

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

.breadcrumb span {
  margin: 0 var(--space-xs);
}

/* --------------------------------------------------------------------------
   Content Sections
   -------------------------------------------------------------------------- */
.content-section {
  padding: var(--space-xl) 0;
}

.content-section h2 {
  margin-bottom: var(--space-md);
}

.content-section p {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.content-section ul {
  color: var(--color-text-light);
  padding-left: var(--space-md);
  margin-bottom: var(--space-md);
}

.content-section li {
  margin-bottom: var(--space-xs);
}

/* Two column content layout */
.content-grid {
  display: grid;
  gap: var(--space-xl);
}

.content-sidebar {
  background-color: var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.content-sidebar h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.content-sidebar .footer__list a {
  color: var(--color-text);
}

.content-sidebar .footer__list a:hover {
  color: var(--color-primary-dark);
}

/* --------------------------------------------------------------------------
   Location/Map Section
   -------------------------------------------------------------------------- */
.map-placeholder {
  background-color: var(--color-secondary);
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border: 2px dashed var(--color-border);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  text-align: center;
}

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

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Image Placeholders
   -------------------------------------------------------------------------- */
.image-placeholder {
  background-color: var(--color-secondary);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border: 2px dashed var(--color-border);
  padding: var(--space-md);
  text-align: center;
}

.image-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Areas/Locations Page
   -------------------------------------------------------------------------- */
.areas-grid {
  display: grid;
  gap: var(--space-sm);
}

.area-link {
  display: block;
  padding: var(--space-md);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.area-link:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.area-link h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  font-family: var(--font-sans);
  font-weight: 500;
}

.area-link p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* --------------------------------------------------------------------------
   Tablet Styles (768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .hero {
    padding: var(--space-2xl) 0 var(--space-3xl);
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  .hero__cta {
    flex-direction: row;
  }

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

  .trust-signals {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .trust-signal {
    flex: 1 1 calc(50% - var(--space-md));
  }

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

  .footer__legal {
    flex-direction: row;
    gap: var(--space-md);
  }

  .page-header {
    padding: var(--space-2xl) 0;
  }

  .page-header__title {
    font-size: 2.5rem;
  }

  .content-grid {
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
  }

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

  .form-radio-group {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .form-radio {
    flex: 1 1 calc(50% - var(--space-sm));
  }
}

/* --------------------------------------------------------------------------
   Desktop Styles (1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  /* Desktop Header */
  .menu-toggle {
    display: none;
  }

  .header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }

  .header__nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .header__nav-link {
    color: var(--color-text);
    font-weight: 500;
    padding: var(--space-xs) 0;
    position: relative;
  }

  .header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-base);
  }

  .header__nav-link:hover::after,
  .header__nav-link.active::after {
    width: 100%;
  }

  /* Dropdown */
  .header__dropdown {
    position: relative;
  }

  .header__dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }

  .header__dropdown-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform var(--transition-fast);
  }

  .header__dropdown:hover .header__dropdown-toggle svg {
    transform: rotate(180deg);
  }

  .header__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
  }

  .header__dropdown:hover .header__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header__dropdown-link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    font-weight: 400;
  }

  .header__dropdown-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary-dark);
  }

  .header__cta {
    display: block;
  }

  /* Hero */
  .hero {
    padding: var(--space-3xl) 0;
  }

  .hero__title {
    font-size: 3.25rem;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  }

  /* Areas Grid */
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Two column hero for some pages */
  .hero--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
  }

  .hero--split .hero__content {
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   Large Desktop (1200px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .areas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .header,
  .footer,
  .btn,
  .mobile-nav {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  h1, h2, h3, h4 {
    color: #000;
    page-break-after: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
