/* --- CSS VARIABLE DEFINITIONS ON THEMATIC NAMES --- */
:root {
  --auricular-backdrop: #f4f8f9;
  --auricular-envelope: #ffffff;
  --auricular-anchor: #1e6b7b;
  --auricular-anchor-hover: #134e5a;
  --auricular-flare: #e0a96d;
  --auricular-shade: #2a323d;
  --auricular-shade-soft: #606f7b;
  --auricular-border-curve: 16px;
  --auricular-shadow-elevated: 0 8px 24px rgba(30, 107, 123, 0.08);
  --auricular-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-family-display: 'Montserrat', sans-serif;
  --font-family-body: 'Poppins', sans-serif;
}
:root {
  --primary-color: #7928CA;
  --secondary-color: #4C1D95;
  --accent-color: #B264FE;
  --light-color: #F3EBFF;
  --dark-color: #2D0A58;
  --gradient-primary: linear-gradient(135deg, #9F7AEA 0%, #7928CA 100%);
  --hover-color: #6923AD;
  --background-color: #FDFAFF;
  --text-color: #4B5563;
  --border-color: rgba(178, 100, 254, 0.2);
  --divider-color: rgba(76, 29, 149, 0.1);
  --shadow-color: rgba(76, 29, 149, 0.1);
  --highlight-color: #FFD700;
  --main-font: 'Montserrat', sans-serif;
  --alt-font: 'Playfair Display', serif;
}
/* --- RESET & ACCESSIBILITY --- */
*, ::before, ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--auricular-backdrop);
  color: var(--auricular-shade);
  font-family: var(--font-family-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-family-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--auricular-anchor);
  line-height: 1.25;
}

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

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

ul {
  list-style-type: none;
}

/* --- SHELL HOUSING (Container) --- */
.canal-shell {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- GLOBAL LAYOUT PADDINGS --- */
section {
  padding-top: 10dvh;
  padding-bottom: 10dvh;
}

/* --- HEADER BAR (Layout Option 2: Navigation left, logo right) --- */
.audio-header-bar {
  background-color: var(--auricular-anchor);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.audio-logo-holder img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.acoustic-navigation {
  flex-grow: 1;
}

.acoustic-nav-list {
  display: flex;
  gap: 24px;
}

.acoustic-nav-link {
  color: #ffffff;
  font-family: var(--font-family-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--auricular-transition);
}

.acoustic-nav-link:hover {
  color: var(--auricular-flare);
}

/* Hamburger Hidden Elements */
.acoustic-menu-checkbox {
  display: none;
}

.acoustic-menu-trigger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.acoustic-hamburger-line {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 3px;
  transition: var(--auricular-transition);
}

/* --- BUTTONS --- */
.auricular-btn-pill {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-family-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: var(--auricular-transition);
  text-align: center;
  border: none;
  cursor: pointer;
}

.auricular-btn-accent {
  background-color: var(--auricular-flare);
  color: var(--auricular-shade);
}

.auricular-btn-accent:hover {
  background-color: #d1975e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(224, 169, 109, 0.4);
}

.auricular-btn-white {
  background-color: #ffffff;
  color: var(--auricular-anchor);
}

.auricular-btn-white:hover {
  background-color: var(--auricular-backdrop);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

/* --- HERO SCREEN (Preset A: Fullscreen with bg.webp space parallax overlay) --- */
.acoustic-intro-zone {
  position: relative;
  height: 75vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('img/bg.webp') no-repeat center center/cover;
  padding: 0;
  text-align: center;
}

.acoustic-intro-zone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(19, 78, 90, 0.9), rgba(42, 50, 61, 0.85));
  z-index: 1;
}

.acoustic-intro-content {
  position: relative;
  z-index: 10;
  color: #ffffff;
}

.acoustic-main-headline {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
  font-family: var(--font-family-display);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.acoustic-main-subtext {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  margin-bottom: 32px;
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.acoustic-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  animation: bounce 2s infinite;
  z-index: 10;
}

/* --- CONTENT SECTIONS (Preset A layout rules) --- */
.decibel-split-stage {
  background-color: var(--auricular-envelope);
}

.decibel-split-wrapper {
  display: flex;
  align-items: center;
  gap: 48px;
}

.decibel-media-port {
  flex: 0 0 40%;
}

.decibel-media-port img {
  border-radius: var(--auricular-border-curve);
  box-shadow: var(--auricular-shadow-elevated);
  object-fit: cover;
  width: 100%;
  height: 400px;
}

.decibel-text-port {
  flex: 0 0 60%;
}

.decibel-eyebrow {
  display: inline-block;
  font-family: var(--font-family-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--auricular-flare);
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.decibel-heading {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 24px;
}

.decibel-paragraph {
  color: var(--auricular-shade-soft);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.decibel-split-reverse {
  flex-direction: row-reverse;
}

/* --- DECORATIVE DIVIDER (Preset A requirement) --- */
.cochlear-break-line {
  background-color: var(--auricular-backdrop);
  padding: 24px 0;
}

.cochlear-break-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cochlear-line-left,
.cochlear-line-right {
  flex-grow: 1;
  height: 2px;
  background-color: rgba(30, 107, 123, 0.2);
}

.cochlear-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--auricular-anchor);
}

.cochlear-badge-text {
  font-family: var(--font-family-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* --- FEATURES SECTION --- */
.tympanic-grid-deck {
  background-color: var(--auricular-backdrop);
}

.tympanic-header {
  max-width: 720px;
  margin: 0 auto 56px auto;
  text-align: center;
}

.tympanic-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.acoustic-benefit-card {
  background-color: var(--auricular-envelope);
  padding: 40px 32px;
  border-radius: var(--auricular-border-curve);
  box-shadow: var(--auricular-shadow-elevated);
  transition: var(--auricular-transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30, 107, 123, 0.05);
}

.acoustic-benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(30, 107, 123, 0.12);
}

.acoustic-card-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.acoustic-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.acoustic-card-desc {
  color: var(--auricular-shade-soft);
  font-size: 0.95rem;
}

/* --- CTA STRIP (Preset A requirement with parallax bg.webp) --- */
.sonic-callout-strip {
  position: relative;
  background: url('img/bg.webp') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  padding: 100px 0;
  text-align: center;
}

.sonic-callout-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(30, 107, 123, 0.85);
  z-index: 1;
}

.sonic-callout-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
}

.sonic-callout-heading {
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.sonic-callout-sub {
  font-size: 1.2rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* --- TESTIMONIALS SECTION (Preset A dynamic layout) --- */
.audio-feedback-row {
  background-color: var(--auricular-backdrop);
}

.feedback-intro {
  max-width: 720px;
  margin: 0 auto 56px auto;
}

.feedback-grid-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.auditory-vibe-bubble {
  background-color: var(--auricular-envelope);
  padding: 32px;
  border-radius: var(--auricular-border-curve);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--auricular-shadow-elevated);
}

.auditory-rating {
  color: var(--auricular-flare);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.auditory-vibe-text {
  color: var(--auricular-shade-soft);
  font-style: italic;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.auditory-vibe-author {
  font-size: 1rem;
  margin-bottom: 4px;
}

.auditory-vibe-location {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--auricular-flare);
}

/* --- FORM SECTION (Contrasting style, centered form) --- */
.audiogram-request-block {
  background-color: var(--auricular-anchor);
  color: #ffffff;
}

.audiogram-request-block h2,
.audiogram-request-block h3 {
  color: #ffffff;
}

.audiogram-form-container {
  max-width: 900px;
  margin: 0 auto;
}

.audiogram-form-intro {
  text-align: center;
  margin-bottom: 48px;
}

.audiogram-form-intro .decibel-paragraph {
  color: rgba(255, 255, 255, 0.8);
}

.audiogram-grid-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: var(--auricular-border-curve);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auricular-location-details {
  font-style: normal;
}

.auricular-address-title {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.auricular-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.9);
}

.auricular-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.auditory-intake-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-family-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: var(--font-family-body);
  transition: var(--auricular-transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--auricular-flare);
  background-color: rgba(255, 255, 255, 0.15);
}

/* --- FAQ SECTION (Accordion open visible format) --- */
.frequency-qna-stack {
  background-color: var(--auricular-envelope);
}

.frequency-accordion-shell {
  max-width: 800px;
  margin: 48px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.frequency-qa-node {
  background-color: var(--auricular-backdrop);
  border-radius: var(--auricular-border-curve);
  border: 1px solid rgba(30, 107, 123, 0.08);
  overflow: hidden;
}

.frequency-qa-title {
  padding: 24px;
  font-family: var(--font-family-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--auricular-anchor);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* remove webkit default arrow */
}

/* Hide default marker in summary */
.frequency-qa-title::-webkit-details-marker {
  display: none;
}

.frequency-toggle-icon {
  width: 18px;
  height: 18px;
  position: relative;
}

.frequency-toggle-icon::before,
.frequency-toggle-icon::after {
  content: '';
  position: absolute;
  background-color: var(--auricular-anchor);
  transition: var(--auricular-transition);
}

/* Horizontal line */
.frequency-toggle-icon::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

/* Vertical line */
.frequency-toggle-icon::after {
  top: 0;
  left: 8px;
  width: 2px;
  height: 18px;
}

/* Rotate icon on state */
details[open] .frequency-toggle-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

details[open] .frequency-toggle-icon::before {
  transform: rotate(180deg);
}

.frequency-qa-answer {
  padding: 0 24px 24px 24px;
  color: var(--auricular-shade-soft);
  border-top: 1px solid rgba(30, 107, 123, 0.05);
}

.frequency-qa-answer p {
  padding-top: 16px;
  font-size: 0.95rem;
}

/* --- FOOTER (Desktop logo left, navigation right) --- */
.audio-footer-bar {
  background-color: var(--auricular-shade);
  padding: 40px 0;
  color: #ffffff;
}

.footer-nav-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: var(--auricular-transition);
}

.footer-nav-link:hover {
  color: var(--auricular-flare);
}

/* --- ANIMATIONS --- */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* --- RESPONSIVE DESIGN & ADAPTIVE STYLING --- */
@media (max-width: 991px) {
  .decibel-split-wrapper {
    flex-direction: column;
    gap: 32px;
  }
  
  .decibel-media-port {
    width: 100%;
  }

  .decibel-media-port img {
    height: auto;
    max-height: 350px;
  }

  .decibel-text-port {
    width: 100%;
  }

  .audiogram-grid-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .acoustic-menu-trigger {
    display: flex;
    order: 1;
  }

  .audio-logo-holder {
    order: 2;
  }

  .acoustic-navigation {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--auricular-anchor);
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .acoustic-nav-list {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .acoustic-menu-checkbox:checked ~ .acoustic-navigation {
    display: block;
  }

  /* Hamburger transform logic when open */
  .acoustic-menu-checkbox:checked ~ .acoustic-menu-trigger .acoustic-hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .acoustic-menu-checkbox:checked ~ .acoustic-menu-trigger .acoustic-hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .acoustic-menu-checkbox:checked ~ .acoustic-menu-trigger .acoustic-hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .footer-flex-align {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-nav-list {
    justify-content: center;
  }
}

@media (min-width: 1440px) {
  .canal-shell {
    max-width: 1320px;
  }
}