/* ============================================
   Noel Home Private Care
   Main Stylesheet
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Colors */
  --color-primary: #1c4630;
  --color-primary-dark: #12301f;
  --color-primary-light: #43664c;
  --color-secondary: #c2982f;
  --color-secondary-dark: #9e7a20;
  --color-secondary-light: #ddbb63;
  --color-accent: #12301f;
  --color-cream: #faf5ea;
  --color-cream-dark: #f2e9d6;
  --color-dark: #1a1a1a;
  --color-dark-gray: #333333;
  --color-gray: #666666;
  --color-light-gray: #e3ded3;
  --color-off-white: #faf7f1;
  --color-white: #ffffff;
  --color-text: #4a4a4a;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Montserrat', sans-serif;

  /* Spacing */
  --section-padding: 80px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-med: 0.3s ease;
  --transition-slow: 0.5s ease;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--color-dark);
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* Available to screen readers, removed from the visual layout */
.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;
}

.section-label {
  /* block, not inline-block: .section-title is inline-block so it can shrink-wrap
     its underline, and an inline-block label would sit beside it rather than above */
  display: block;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), transparent);
  margin: 12px auto 0;
  border-radius: 2px;
}

.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-desc {
  color: var(--color-gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-accent));
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  padding: 8px 0;
  font-family: var(--font-accent);
  position: relative;
  z-index: 1;
}

.top-bar .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.top-bar-left .icon {
  width: 15px;
  height: 15px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--color-white);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-light-gray);
  position: sticky;
  top: 0;
  z-index: 250;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.97);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 56px;
  height: 56px;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-primary);
  white-space: nowrap;
}

.logo-sub {
  font-family: var(--font-accent);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-top: 7px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .logo {
    gap: 9px;
  }

  .logo-mark {
    width: 42px;
    height: 42px;
  }

  .logo-name {
    font-size: 1.12rem;
  }

  .logo-sub {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    margin-top: 5px;
  }
}

/* --- Navigation --- */
.main-nav ul {
  display: flex;
  gap: 2px;
}

.main-nav a {
  display: block;
  padding: 10px 12px;
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-dark-gray);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--color-secondary);
  border-radius: 1px;
  transition: transform var(--transition-med);
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* --- Dropdown: same-page sections grouped under "Home" --- */
.main-nav li {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-dark-gray);
}

.nav-dropdown-toggle .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

@media (min-width: 1051px) {
  .nav-dropdown-trigger::after {
    content: '';
    width: 0;
    height: 0;
    margin-left: 2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--color-dark-gray);
    opacity: 0.6;
  }

  /* Two classes (.main-nav .nav-submenu), not one — ".main-nav ul" above
     sets display:flex at equal-or-lower specificity and would otherwise
     win regardless of hover state, since a nav ul is still a ul. */
  /* top:100% with no margin — the panel sits flush against the trigger.
     A margin gap here would create a dead strip the cursor has to cross
     with nothing underneath it, dropping :hover before the pointer ever
     reaches the panel. The 6px of breathing room comes from padding-top
     instead, which stays inside the hoverable box. */
  .main-nav .nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    gap: 2px;
    min-width: 190px;
    padding: 14px 8px 8px;
    background: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 300;
  }

  .nav-dropdown:hover .nav-submenu,
  .nav-dropdown:focus-within .nav-submenu {
    display: flex;
  }

  .nav-submenu a {
    white-space: nowrap;
  }

  .nav-submenu a::after {
    display: none;
  }
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-phone .icon {
  width: 18px;
  height: 18px;
}

/* --- Mobile Menu Toggle --- */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

/* Translate first (in screen space), then rotate around the bar's own
   centre — reversing the order would apply the translate inside the
   already-rotated frame and throw the crossing point off-centre. The
   8px offset is the actual pitch between bars: 2px bar height + 6px gap. */
.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #12301f 0%, #1c4630 50%, #35573f 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Weighted left-to-right: dense enough behind the headline to hold contrast,
     thinning across the right so the house stays readable. */
  background: linear-gradient(100deg, rgba(18, 48, 31, 0.93) 0%, rgba(18, 48, 31, 0.86) 42%, rgba(28, 70, 48, 0.62) 74%, rgba(40, 74, 52, 0.44) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
  padding: 60px 0;
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(194, 152, 47, 0.22);
  border: 1px solid rgba(194, 152, 47, 0.38);
  color: var(--color-secondary-light);
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.hero h1 em {
  color: var(--color-secondary-light);
  font-style: normal;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-med);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(194, 152, 47, 0.38);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 152, 47, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(28, 70, 48, 0.30);
}

.btn-secondary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 70, 48, 0.40);
}

/* ============================================
   INFO BAR
   ============================================ */
.info-bar {
  background: var(--color-cream);
  padding: 40px 0;
  border-bottom: 1px solid var(--color-light-gray);
}

.info-bar .wrapper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 4px 18px;
  border-right: 1px solid var(--color-light-gray);
}

.info-item:last-child {
  border-right: none;
}

.info-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary-light);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.info-item h3 {
  font-family: var(--font-accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0;
  line-height: 1.45;
}

.info-item p {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(28, 70, 48, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

/* Static images keep fixed height / cover crop */
.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-content .company-name {
  color: var(--color-primary);
  font-weight: 700;
}

/* ============================================
   PHILOSOPHY / MISSION / VISION
   ============================================ */
.values-section {
  background: linear-gradient(180deg, var(--color-off-white) 0%, var(--color-white) 100%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-med);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light-gray);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-med);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(194, 152, 47, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-secondary-dark);
}

.value-card h3 {
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.95rem;
}

/* ============================================
   SERVICES PREVIEW
   ============================================ */
.services-preview {
  background: var(--color-white);
}

.services-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.service-group h3 {
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-light-gray);
  font-family: var(--font-accent);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.service-group-link {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 2px solid rgba(28, 70, 48, 0.30);
  padding-bottom: 2px;
  transition: all var(--transition-fast);
  position: relative;
}

.service-group-link::after {
  content: ' →';
  display: inline-block;
  transition: transform var(--transition-fast);
  font-size: 0.85em;
}

.service-group-link:hover {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}

.service-group-link:hover::after {
  transform: translateX(4px);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.service-list li:hover {
  background: var(--color-off-white);
  transform: translateX(4px);
}

.service-list li::before {
  content: '';
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px 12px no-repeat,
    linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  flex-shrink: 0;
}

.service-list li a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.service-list li a:hover {
  color: var(--color-primary);
}

/* --- Bullet List (Sub-Pages) --- */
ul.bullet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

ul.bullet li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 0.95rem;
  list-style: none;
}

ul.bullet li:hover {
  background: var(--color-off-white);
  transform: translateX(4px);
}

ul.bullet li::before {
  content: '';
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px 12px no-repeat,
    linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  flex-shrink: 0;
}

ul.bullet li a {
  color: var(--color-primary);
  font-weight: 600;
  transition: color var(--transition-fast);
}

ul.bullet li a:hover {
  color: var(--color-secondary);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent) 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(194, 152, 47, 0.10) 0%, transparent 70%);
}

.testimonials-section .section-label {
  color: var(--color-secondary-light);
}

.testimonials-section .section-title {
  color: var(--color-white);
}

.testimonials-section .section-title::after {
  background: linear-gradient(90deg, var(--color-secondary), transparent);
}

.testimonial-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-med);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
}

.testimonial-quote::before {
  content: '"';
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--color-secondary);
  line-height: 0;
  vertical-align: sub;
  margin-right: 4px;
}

.testimonial-author {
  font-family: var(--font-accent);
  font-weight: 600;
  color: var(--color-secondary-light);
  font-size: 0.9rem;
}

/* ============================================
   PAYMENT SECTION
   ============================================ */
.payment-section {
  background: var(--color-off-white);
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.payment-methods {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light-gray);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.payment-methods h3 {
  color: var(--color-primary-dark);
  margin-bottom: 20px;
}

.payment-methods ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-methods li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

.payment-methods li::before {
  content: '•';
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1;
}

/* ============================================
   PAGE HERO (Sub-pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(194, 152, 47, 0.10) 0%, transparent 70%);
}

.page-hero .section-label {
  color: var(--color-secondary-light);
}

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
}

/* ============================================
   TEAM / STAFF SECTION
   ============================================ */
.staff-section {
  background: var(--color-off-white);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.staff-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-light-gray);
  transition: all var(--transition-med);
}

.staff-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.staff-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.staff-card-body {
  padding: 24px;
}

.staff-card-body h3 {
  color: var(--color-primary-dark);
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.staff-card-body .role {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-secondary);
  margin-bottom: 12px;
  display: block;
}

.staff-card-body p {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-bottom: 0;
}

/* ============================================
   CAREERS SECTION
   ============================================ */
.careers-section {
  background: var(--color-white);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background: var(--color-off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  color: var(--color-primary-dark);
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--color-text);
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gray);
  margin-bottom: 4px;
}

.contact-detail-text p,
.contact-detail-text a {
  color: var(--color-dark);
  font-weight: 500;
  margin-bottom: 0;
}

.contact-detail-text a:hover {
  color: var(--color-primary);
}

/* Contact Form */
.contact-form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-light-gray);
}

.contact-form-card h3 {
  color: var(--color-primary-dark);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-dark-gray);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(28, 70, 48, 0.12);
}

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

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-secondary-light);
}

.footer-links a::before {
  content: '› ';
  color: var(--color-secondary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-contact .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 5px;
  color: var(--color-secondary);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-med);
  z-index: 200;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* ============================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px;
  }

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

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

  .about-grid,
  .contact-grid {
    gap: 40px;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================ */
/* Nav switches to the slide-out mobile menu earlier than the general mobile
   breakpoint — seven items no longer fit the header at tablet widths. */
@media (max-width: 1050px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 40px;
  }

  .main-nav.active {
    display: flex;
  }

  body.menu-open .site-header {
    backdrop-filter: none;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 280px;
  }

  .main-nav a {
    font-size: 1.1rem;
    padding: 14px 20px;
    text-align: center;
    white-space: normal;
  }

  .mobile-toggle {
    display: flex;
    z-index: 300;
  }

  /* Same-page sections collapse under "Home" so the mobile menu opens to
     three rows instead of seven; tapping the chevron reveals them. */
  .nav-dropdown-trigger {
    width: 100%;
    justify-content: center;
  }

  .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-dropdown-toggle .icon {
    width: 20px;
    height: 20px;
  }

  .nav-dropdown.submenu-open .nav-dropdown-toggle .icon {
    transform: rotate(180deg);
  }

  .main-nav .nav-submenu {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .nav-dropdown.submenu-open .nav-submenu {
    display: flex;
  }

  .nav-submenu a {
    font-size: 0.95rem;
    padding: 10px 20px;
    color: var(--color-gray);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 48px;
  }

  /* Hero */
  .hero {
    min-height: 480px;
  }

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

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Layouts */
  .about-grid,
  .contact-grid,
  .payment-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .testimonial-cards {
    grid-template-columns: 1fr;
  }

  .services-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .wrapper {
    padding: 0 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .contact-form-card {
    padding: 24px;
  }
}
/* ============================================
   NOEL HOME — SECTION MODIFIERS
   ============================================ */
.section-alt {
  background: var(--color-cream);
}

/* Flip which side the image sits on in a split row */
.about-grid.reverse .about-image {
  order: 2;
}

.about-grid.reverse .about-content {
  order: 1;
}

/* Footer picks up the brand green rather than near-black */
.site-footer {
  background: var(--color-primary-dark);
}

.logo-footer .logo-name {
  color: var(--color-white);
}

.logo-footer .logo-sub {
  color: var(--color-secondary-light);
}

.logo-footer .logo-mark {
  width: 48px;
  height: 48px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ============================================
   ACCORDION — Services
   ============================================ */
.accordion {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--color-light-gray);
}

.accordion-item {
  border-bottom: 1px solid var(--color-light-gray);
}

.accordion-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  transition: color var(--transition-fast);
}

.accordion-header:hover {
  color: var(--color-secondary-dark);
}

.accordion-title {
  flex: 1;
}

.accordion-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: transform var(--transition-med), opacity var(--transition-med);
}

.accordion-icon::before {
  width: 16px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.accordion-icon::after {
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
}

.accordion-header[aria-expanded="true"] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-panel-inner {
  padding: 0 4px 28px 4px;
}

.accordion-panel-inner > p {
  color: var(--color-text);
  margin-bottom: 14px;
}

.accordion-panel:not([hidden]) {
  animation: accordionOpen 0.28s var(--ease-out) both;
}

@keyframes accordionOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   CTA BAND / CLOSING BAND
   ============================================ */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  position: relative;
  overflow: hidden;
}

.cta-band .section-title,
.cta-band h2 {
  color: var(--color-white);
}

.cta-band .section-title::after {
  background: var(--color-secondary);
}

.cta-band .section-desc {
  color: rgba(255, 255, 255, 0.82);
  margin-left: auto;
  margin-right: auto;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.closing-band {
  background: var(--color-secondary);
  padding: 26px 0;
  text-align: center;
}

.closing-band p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* ============================================
   CONTACT FORM & INFO CARDS
   ============================================ */
.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-light-gray);
}

.contact-form h3 {
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.contact-form>p {
  color: var(--color-gray);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.form-message {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.form-message.success {
  display: block;
  background: #e9f3ec;
  color: var(--color-primary);
  border: 1px solid #bcd9c6;
}

.form-message.error {
  display: block;
  background: #fbecec;
  color: #8c2f2f;
  border: 1px solid #edc3c3;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-card h3 {
  font-family: var(--font-accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray);
  margin-bottom: 4px;
}

.contact-info-card p {
  margin-bottom: 0;
  color: var(--color-dark-gray);
  font-weight: 600;
}

.contact-info-card a {
  color: var(--color-primary);
  font-weight: 700;
}

/* Hero type sits over a photograph — a soft shadow guarantees legibility
   regardless of what the image is doing behind any given letter. */
.hero h1,
.hero-content p {
  text-shadow: 0 2px 12px rgba(12, 30, 20, 0.55);
}

/* ============================================
   ICON SYSTEM — Lucide sprite (ISC)
   ============================================ */
/* The sprite is inlined per page and never painted; symbols are pulled in
   by <use>. Kept in flow-free space rather than display:none so that
   referencing into it stays reliable across browsers. */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: -0.14em;
  stroke-width: 2;
  color: inherit;
}

/* Larger glyphs get a lighter stroke so they read as drawn, not bolded —
   matching the line weight of the logo mark. */
.info-icon .icon,
.value-icon .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.75;
}

.card-icon .icon {
  width: 20px;
  height: 20px;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top .icon {
  width: 20px;
  height: 20px;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   NOEL HOME — RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .info-bar .wrapper {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 32px;
  }

  .info-item:nth-child(3n) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .info-bar .wrapper {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

  .info-item {
    border-right: none;
    padding: 4px 8px;
  }

  .info-item:nth-child(odd) {
    border-right: 1px solid var(--color-light-gray);
  }

  .header-phone {
    display: none;
  }

  .accordion-header {
    font-size: 1.02rem;
    gap: 12px;
    padding: 18px 2px;
  }

  .accordion-panel-inner {
    padding: 0 2px 24px 2px;
  }

  .contact-form {
    padding: 24px;
  }

  .closing-band {
    padding: 20px 0;
  }
}

@media (max-width: 520px) {
  .info-bar .wrapper {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .info-item:nth-child(odd) {
    border-right: none;
  }
}

/* ============================================
   TRANSFER TIERS — Platinum / Gold comparison
   ============================================ */
.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.tier-card {
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.tier-card.tier-platinum {
  border: 2px solid var(--color-secondary);
  box-shadow: var(--shadow-lg);
}

.tier-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.tier-platinum .tier-badge {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  color: var(--color-white);
}

.tier-gold .tier-badge {
  background: var(--color-cream-dark);
  color: var(--color-primary);
}

.tier-card h3 {
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.tier-note {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

.tier-card ul.bullet {
  margin: 0 0 26px;
  flex-grow: 1;
}

.tier-card ul.bullet li {
  padding: 10px 0;
}

.tier-card ul.bullet li:hover {
  background: none;
  transform: none;
}

.tier-card .btn {
  align-self: stretch;
  justify-content: center;
}

/* ============================================
   SLIDESHOW — Our Homes gallery
   ============================================ */
.slideshow {
  position: relative;
  max-width: 900px;
  margin: 44px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--color-dark);
}

.slideshow-track {
  position: relative;
  aspect-ratio: 4 / 3;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow);
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
}

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

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 28px 20px;
  background: linear-gradient(0deg, rgba(18, 48, 31, 0.85) 0%, transparent 100%);
  color: var(--color-white);
}

.slide-caption h3 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.slide-caption p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition-fast);
}

.slideshow-arrow:hover {
  background: var(--color-white);
  transform: translateY(-50%) scale(1.06);
}

.slideshow-arrow.prev {
  left: 16px;
}

.slideshow-arrow.next {
  right: 16px;
}

.slideshow-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slideshow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.slideshow-dot.is-active {
  background: var(--color-secondary);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .tier-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tier-card {
    padding: 30px 26px;
  }

  .slideshow-arrow {
    width: 38px;
    height: 38px;
  }

  .slide-caption {
    padding: 20px 18px 16px;
  }

  .slide-caption h3 {
    font-size: 1.05rem;
  }
}
