/* ========================================
   Rosie Speech Therapy — styles.css
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--dark-blue);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Design Tokens --- */
:root {
  --blue: #4760d8;
  --blue-hover: #3a50b8;
  --dark-blue: #1f2a44;
  --light-grey: #edeceb;
  --hero-blue: #d9e5ff;
  --light-blue: #d7e3f4;
  --light-magenta: #ffe9f7;
  --light-yellow: #ffeda5;
  --white: #ffffff;

  --font-heading: 'Nunito', 'Fredoka', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --container-max: 1200px;
  --section-padding: 80px 24px;
  --transition: 0.3s ease;

  --shadow-sm: 0 2px 8px rgba(31, 42, 68, 0.06);
  --shadow-md: 0 4px 20px rgba(31, 42, 68, 0.1);
  --shadow-lg: 0 8px 32px rgba(31, 42, 68, 0.14);
}

/* --- Utilities --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Anchor offset for sticky nav --- */
section[id] {
  scroll-margin-top: 80px;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: 2.75rem;
  color: var(--dark-blue);
}

h2 {
  font-size: 2.25rem;
  color: var(--dark-blue);
}

h3 {
  font-size: 1.125rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--dark-blue);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition);
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(71, 96, 216, 0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}


/* ========================================
   WAVE DIVIDERS
   ======================================== */
.wave-divider {
  line-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 70px;
}

.wave-hero-to-care {
  background: var(--hero-blue);
  margin-top: -1px;
}

.wave-care-to-meet {
  background: var(--light-magenta);
  margin-top: -1px;
}

.wave-meet-to-services {
  background: var(--light-grey);
  margin-top: -1px;
}

.wave-services-to-faq {
  background: var(--white);
  margin-top: -1px;
}

.wave-faq-to-contact {
  background: var(--light-blue);
  margin-top: -1px;
}

/* ========================================
   ANNOUNCEMENT BANNER
   ======================================== */
.announcement-banner {
  background: var(--dark-blue);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
}

.announcement-banner a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-banner a:hover {
  color: var(--light-blue);
}

.announcement-banner .banner-dismiss {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 1.2rem;
  padding: 4px 8px;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.announcement-banner .banner-dismiss:hover {
  opacity: 1;
}

.announcement-banner.hidden {
  display: none;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  padding: 12px 24px;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 80px;
  width: auto;
}

/* Match GET STARTED to LEARN MORE size */
.nav-cta {
  padding: 10px 24px;
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-blue);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-cta {
  margin-left: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--dark-blue);
  transition: color var(--transition);
}

.mobile-nav a:hover {
  color: var(--blue);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  background: var(--hero-blue);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 60px;
  padding-bottom: 60px;
  min-height: 500px;
}

.hero-text {
  flex: 1;
  max-width: 560px;
}

.hero-text h1 {
  margin-bottom: 16px;
}

.hero-text .subheadline {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark-blue);
  margin-bottom: 32px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

/* Decorative pastel blob behind hero image */
.hero-image::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, rgba(255, 233, 247, 0.6), rgba(215, 227, 244, 0.6));
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: blobFloat 8s ease-in-out infinite;
}

@keyframes blobFloat {
  0%, 100% { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
  33% { border-radius: 50% 60% 40% 60% / 60% 40% 60% 40%; }
  66% { border-radius: 40% 50% 60% 40% / 40% 50% 50% 60%; }
}

.hero-image img {
  max-height: 440px;
  width: auto;
  object-fit: cover;
  clip-path: inset(0 0 8% 0);
  transform: translateY(4%);
  position: relative;
  z-index: 1;
}

/* ========================================
   CARE ROOTED IN HEART
   ======================================== */
.care-section {
  background: var(--light-magenta);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative state outlines — Texas (left) and Illinois (right) */
.care-section::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  top: 30px;
  left: 20px;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M88.6 66.4 L87.7 70.7 L90.8 68.4 L85.8 72.7 L78.2 77.1 L81.2 74.7 L76.1 74.1 L78.0 76.6 L74.7 76.7 L72.0 82.2 L69.8 81.9 L71.5 83.3 L70.4 86.6 L68.1 86.3 L70.2 87.2 L69.2 91.0 L72.4 98.8 L70.2 100.0 L57.6 95.0 L54.3 84.5 L39.8 64.5 L32.9 63.4 L26.9 71.6 L24.5 71.1 L16.3 65.6 L13.1 56.7 L0.0 43.8 L27.3 43.6 L27.4 0.0 L50.6 0.0 L50.6 19.1 L52.9 20.8 L65.0 23.0 L66.1 25.6 L71.9 25.3 L72.5 27.2 L73.6 24.9 L78.4 27.5 L87.0 24.9 L96.0 28.8 L96.0 43.7 L100.0 52.7 L98.6 61.7 L97.4 65.3 L90.5 68.2 L92.7 66.5 L90.4 66.6 L90.7 64.3 L88.6 66.2 Z' fill='%234760d8' stroke='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.care-illinois-outline {
  position: absolute;
  bottom: 20px;
  right: 100px;
  width: 130px;
  height: auto;
  opacity: 0.06;
  pointer-events: none;
}

.care-section h2 {
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 3rem;
  position: relative;
  z-index: 1;
}

.care-section .heart-icon {
  display: inline-block;
  width: 44px;
  height: 40px;
  transform: translateY(-2px);
}

.care-section .heart-icon svg {
  width: 100%;
  height: 100%;
}

.care-content {
  position: relative;
  z-index: 1;
}

.care-content p {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--dark-blue);
}

/* ========================================
   MEET ROSIE
   ======================================== */
.meet-rosie-section {
  background: var(--light-grey);
  padding: var(--section-padding);
}

.meet-rosie-section h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 2.5rem;
}

.meet-rosie-content {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  max-width: 1000px;
  margin: 0 auto;
}

.meet-rosie-photo {
  position: relative;
  flex-shrink: 0;
  width: 420px;
}

/* Decorative blob behind headshot */
.meet-rosie-photo::before {
  content: '';
  position: absolute;
  width: 440px;
  height: 520px;
  background: linear-gradient(160deg, var(--light-magenta), var(--light-blue));
  border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
  top: -10px;
  left: -10px;
  z-index: 0;
  opacity: 0.7;
}

.meet-rosie-photo img.headshot {
  width: 100%;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.meet-rosie-photo .speech-bubble {
  position: absolute;
  top: 10px;
  right: 28px;
  width: 120px;
  max-width: none;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.1));
}

.meet-rosie-text {
  flex: 1;
}

.meet-rosie-text .greeting {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 20px;
  line-height: 1.3;
}

.meet-rosie-text p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}

/* Credential logos */
.credentials-label {
  text-align: center;
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dark-blue);
  opacity: 0.5;
  margin-top: 96px;
  margin-bottom: 8px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.credentials {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.credential-cell {
  flex: 1 1 0;
  max-width: 180px;
  height: 90px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.credential-logo {
  display: block;
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: 70px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(30%);
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.credential-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ASHA logo is portrait & has bottom whitespace — nudge down to visually align */
.credential-cell:first-child .credential-logo {
  height: 65px;
  max-height: 65px;
  transform: translateY(4px);
}

/* Tiny Tongue Tips logo sits high — nudge down */
.credential-cell:nth-child(2) .credential-logo {
  transform: translateY(8px);
}

.credential-logo--has-bg {
  border-radius: 6px;
  mix-blend-mode: multiply;
}

.trust-symbols {
  margin-top: 40px;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   SERVICES
   ======================================== */
.services-section {
  background: var(--white);
  padding: 80px 24px;
  position: relative;
}

.services-section h2 {
  text-align: center;
  color: var(--blue);
  margin-bottom: 48px;
  font-size: 2.5rem;
}

/* --- Services Tabs --- */
.services-tabs {
  display: flex;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  border-bottom: 2px solid var(--light-grey);
}

.services-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
  font-family: var(--font-body);
}

.services-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition);
}

.services-tab:hover {
  background: rgba(71, 96, 216, 0.04);
}

.services-tab.active {
  background: rgba(71, 96, 216, 0.06);
}

.services-tab.active::after {
  background: var(--blue);
}

.service-tab-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.services-tab:hover .service-tab-icon {
  transform: scale(1.1);
}

.services-tab.active .service-tab-icon {
  transform: scale(1.12);
}

.service-icon-bg-1 { background: rgba(245, 198, 224, 0.3); }
.service-icon-bg-2 { background: rgba(255, 237, 165, 0.35); }
.service-icon-bg-3 { background: rgba(215, 227, 244, 0.4); }

.service-tab-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.service-tab-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark-blue);
  text-align: center;
  line-height: 1.3;
  transition: color var(--transition);
}

.services-tab.active .service-tab-label {
  color: var(--blue);
}

/* --- Services Panels --- */
.services-panels {
  max-width: 960px;
  margin: 0 auto;
}

.services-panel {
  padding: 36px 32px;
  animation: panelFadeIn 0.3s ease;
}

.services-panel[hidden] {
  display: none;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.services-panel p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.services-panel > strong {
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

.services-panel ul {
  padding-left: 20px;
  list-style: disc;
}

.services-panel ul li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 4px;
}

/* ========================================
   FAQ
   ======================================== */
.faq-section {
  background: var(--light-blue);
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

/* Decorative shapes */
.faq-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.faq-decor-1 {
  width: 140px;
  height: 140px;
  background: rgba(255, 233, 247, 0.5);
  top: 60px;
  left: 5%;
}

.faq-decor-2 {
  width: 80px;
  height: 80px;
  background: rgba(255, 237, 165, 0.45);
  top: 40px;
  right: 8%;
}

.faq-decor-3 {
  width: 100px;
  height: 100px;
  background: rgba(255, 233, 247, 0.4);
  bottom: 50px;
  right: 4%;
  border-radius: 40% 60% 50% 50%;
}

.faq-decor-4 {
  width: 60px;
  height: 60px;
  background: rgba(255, 237, 165, 0.5);
  bottom: 80px;
  left: 8%;
}

.faq-card {
  background: var(--white);
  border-radius: 20px;
  padding: 56px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.faq-card h2 {
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  border-bottom: 1px solid rgba(31, 42, 68, 0.08);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark-blue);
  text-align: left;
  transition: color var(--transition);
  position: relative;
}

/* Left accent bar on hover/active */
.faq-question::before {
  content: '';
  position: absolute;
  left: -56px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--blue);
  border-radius: 2px;
  transition: height var(--transition);
}

.faq-question:hover::before,
.faq-question[aria-expanded="true"]::before {
  height: 60%;
}

.faq-question:hover {
  color: var(--blue);
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(71, 96, 216, 0.06);
}

.faq-question[aria-expanded="true"] .faq-toggle {
  transform: rotate(45deg);
  background: rgba(71, 96, 216, 0.12);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding-bottom: 20px;
}

.faq-answer-inner p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--dark-blue);
}

.faq-answer-inner a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========================================
   CONTACT
   ======================================== */
.contact-section {
  background: var(--white);
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

/* Contact background watermark */
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/contact-bg.png');
  background-size: 1400px auto;
  background-repeat: repeat;
  background-position: center top;
  opacity: 0.08;
  pointer-events: none;
}

.contact-section h2 {
  text-align: center;
  color: var(--blue);
  margin-bottom: 48px;
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
}

.contact-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

/* Business card side */
.contact-card {
  flex: 0 0 360px;
  text-align: center;
}

.contact-card-inner {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* Gradient accent bar at top */
.contact-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--light-magenta), var(--light-blue), var(--light-yellow));
}

.contact-logo {
  width: 200px;
  height: 200px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light-magenta), var(--light-blue));
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contact-logo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}

.contact-logo-inner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.contact-info {
  text-align: left;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}

.contact-row-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue);
}

.contact-row-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.contact-row span,
.contact-row a {
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-row a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-portal-btn {
  margin-top: 24px;
  display: inline-block;
}

/* Contact form */
.contact-form-wrapper {
  flex: 1;
}

.contact-form-wrapper h3 {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--dark-blue);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--dark-blue);
}

.form-group .required-star {
  color: #d84747;
}

.form-group .helper-text {
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
  font-style: italic;
}

.form-group label .helper-inline {
  font-weight: 400;
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(31, 42, 68, 0.2);
  border-radius: 0;
  font-size: 0.95rem;
  color: var(--dark-blue);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(71, 96, 216, 0.1);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231f2a44' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* Form errors */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #d84747;
}

.form-group .error-message {
  color: #d84747;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

/* Checkbox group error */
.form-group.error .checkbox-group {
  outline: 2px solid #d84747;
  outline-offset: 4px;
  border-radius: 2px;
}

.form-submit {
  margin-top: 28px;
}

/* Success message */
.form-success {
  text-align: center;
  padding: 48px 24px;
  display: none;
}

.form-success.show {
  display: block;
}

.form-success h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--blue);
  margin-bottom: 12px;
}

.form-success p {
  font-size: 1.05rem;
  color: var(--dark-blue);
}

/* Error message */
.form-error {
  text-align: center;
  padding: 48px 24px;
  display: none;
}

.form-error.show {
  display: block;
}

.form-error h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: #c0392b;
  margin-bottom: 12px;
}

.form-error p {
  font-size: 1.05rem;
  color: var(--dark-blue);
}

.form-error a {
  color: var(--blue);
  text-decoration: underline;
}

/* Submit button disabled state */
.form-submit button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--dark-blue);
  color: var(--white);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ========================================
   RESPONSIVE — Tablet (1024px)
   ======================================== */
@media (max-width: 1024px) {
  .contact-content {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    flex: none;
    width: 100%;
    max-width: 400px;
  }

  /* FAQ accent bar hidden at narrower card padding */
  .faq-question::before {
    display: none;
  }
}

/* ========================================
   RESPONSIVE — Tablet Portrait (768px)
   ======================================== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  :root {
    --section-padding: 60px 20px;
  }

  /* Wave dividers smaller on mobile */
  .wave-divider svg {
    height: 48px;
  }

  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-cta-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
    min-height: auto;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-image::before {
    width: 280px;
    height: 280px;
  }

  .hero-image img {
    max-height: 300px;
  }

  /* Care */
  .care-section {
    padding: 80px 20px;
  }

  .care-content p {
    font-size: 1.05rem;
    line-height: 1.75;
  }

  .care-section .heart-icon {
    display: none;
  }

  /* Meet Rosie */
  .meet-rosie-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .meet-rosie-photo {
    width: 300px;
  }

  .meet-rosie-photo::before {
    width: 320px;
    height: 380px;
  }

  .meet-rosie-photo .speech-bubble {
    right: -30px;
    top: -20px;
    width: 150px;
  }

  .credentials-label {
    margin-top: 46px;
  }

  .credentials {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .credential-cell {
    flex: 0 0 auto;
    width: 140px;
    height: 70px;
  }

  .meet-rosie-text .greeting {
    font-size: 1.3rem;
  }

  /* Services tabs — 3x2 grid on mobile so all tabs are visible */
  .services-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: none;
  }
  .services-tab {
    min-width: 0;
    flex-shrink: 0;
    border-bottom: 2px solid var(--light-grey);
  }
  .services-tab.active {
    border-bottom-color: var(--blue);
  }
  .services-tab::after {
    display: none;
  }
  .services-panel {
    padding: 28px 16px;
  }

  /* FAQ */
  .faq-card {
    padding: 32px 24px;
  }

  .faq-section {
    padding: 80px 20px;
  }

  /* Hide some decorative shapes on mobile */
  .faq-decor-3,
  .faq-decor-4 {
    display: none;
  }

  .contact-section::before {
    opacity: 0.06;
  }
}

/* ========================================
   RESPONSIVE — Mobile (480px)
   ======================================== */
@media (max-width: 480px) {
  h1 {
    font-size: 1.625rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

  .announcement-banner {
    font-size: 0.7rem;
    padding: 8px 40px 8px 16px;
    letter-spacing: 1px;
  }

  .nav-logo img {
    height: 56px;
  }

  .care-content p {
    font-size: 0.95rem;
  }

  .meet-rosie-section h2 {
    font-size: 2rem;
  }

  .meet-rosie-photo::before {
    width: 260px;
    height: 320px;
  }

  .credential-cell {
    width: 100px;
    height: 50px;
    padding: 4px;
  }

  .credentials {
    gap: 8px 12px;
  }

  .services-tab {
    min-width: 0;
    padding: 12px 6px;
    gap: 6px;
  }
  .service-tab-icon {
    width: 36px;
    height: 36px;
  }
  .service-tab-icon img {
    width: 20px;
    height: 20px;
  }
  .service-tab-label {
    font-size: 0.6rem;
  }

  .contact-card-inner {
    padding: 32px 20px;
  }

  .contact-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }

  .contact-row a,
  .contact-row span {
    font-size: 0.85rem;
    overflow-wrap: break-word;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 12px;
  }

  .wave-divider svg {
    height: 36px;
  }

  .faq-decor-1,
  .faq-decor-2 {
    display: none;
  }
}
