:root {
  /* Brand palette */
  --teal: #2E8B8B;
  /* Primary */
  --coral: #F28B82;
  /* Secondary */
  --lime: #A3D65C;
  /* Accent */
  --bg: #ffffff;
  /* Neutral */
  --ink: #4A4A4A;
  /* Text Gray */
  --ink-2: #2d2d2d;
  --muted: #f4f6f8;
  /* Light gray bg */
  --outline: #e7eaee;
  /* borders */
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --radius: 16px;
}

/* Base */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

h1,
h2,
h3,
h4 {
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--ink-2);
  margin: 0 0 .6rem;
}

h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3.25rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 1.2vw + 1rem, 2.2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  line-height: 1.7;
  margin: 0 0 1rem;
}

a {
  color: var(--teal);
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.highlight {
  color: var(--teal);
}

.section-sub {
  color: #5b6870;
  margin-top: .25rem;
}

.small {
  font-size: .85rem;
  color: #5b6870;
}

.btn {
  display: inline-block;
  padding: .9rem 1.2rem;
  background: var(--teal);
  color: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 600;
  transition: transform .15s ease, opacity .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: .95;
  background-color: var(--muted);
  color: red;
  cursor: pointer;
}

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

.btn-light {
  background: #fff;
  color: var(--teal);
  border: 2px solid var(--outline);
}

.btn-sm {
  padding: .6rem .9rem;
  font-size: .9rem;
}

.link-arrow {
  font-weight: 600;
}

.link-arrow i {
  margin-left: .35rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--outline);
}

.header-wrap {
  display: flex;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: .7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  color: var(--ink-2);
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.brand .text-logo {
  display: none;
  font-size: 1.05rem;
}

.main-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.main-nav a {
  padding: .5rem .8rem;
  border-radius: 10px;
}

.main-nav a:hover {
  background: var(--muted);
  color: red;
}

/* Mobile Nav (checkbox hack) */
.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  /* increased height */
  cursor: pointer;
  gap: 5px;
  /* ensures clear gap between lines */
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--ink-2);
  border-radius: 2px;
}

@media (max-width: 880px) {
  .hamburger {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--outline);
    padding: 1rem;
    display: grid;
    gap: .5rem;
    transform: translateY(-120%);
    transition: transform .2s ease;
  }

  .nav-toggle:checked~.hamburger+.main-nav {
    transform: translateY(0);
  }
}

/* Hero */
.hero {
  padding: 5rem 0 3rem;
  background: radial-gradient(80% 60% at 10% 10%, rgba(46, 139, 139, .08), transparent 50%), radial-gradient(60% 40% at 90% 20%, rgba(242, 139, 130, .08), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy p {
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  margin: 1.25rem 0 1rem;
  flex-wrap: wrap;
}

.trust-points {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.trust-points li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--outline);
  padding: .5rem .75rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.hero-media {
  display: grid;
  gap: 1rem;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.hero-icon {
  font-size: 1.6rem;
  color: var(--teal);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* About */
.about {
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.about-media video {
  min-height: 320px;
  border-radius: var(--radius);
  /* background: linear-gradient(135deg, rgba(46, 139, 139, .18), rgba(242, 139, 130, .18)), url('https://images.unsplash.com/photo-1581803118522-7b72f20f49d3?q=80&w=1200&auto=format&fit=crop') center/cover no-repeat; */
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 0;
}

.stat {
  background: var(--muted);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: .9rem;
  text-align: center;
}

.stat span {
  display: block;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--teal);
}

@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Services */
.services {
  padding: 4rem 0;
  background: linear-gradient(0deg, #fff, #fff), radial-gradient(60% 60% at 0% 20%, rgba(163, 214, 92, .08), transparent 50%);
  background-blend-mode: normal;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: .6rem;
}

.card i {
  font-size: 1.6rem;
  color: var(--coral);
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Products */
.products {
  padding: 4rem 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.product {
  background: linear-gradient(180deg, #fff, #fff), linear-gradient(135deg, rgba(46, 139, 139, .06), rgba(242, 139, 130, .06));
  background-blend-mode: normal;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: .6rem;
}

.product .tag {
  align-self: start;
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .8rem;
}

.product ul {
  margin: .25rem 0 .5rem;
  padding-left: 1.1rem;
}

.note {
  margin-top: .75rem;
  color: #5b6870;
  font-size: .9rem;
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.testimonials {
  padding: 4rem 0;
  background: var(--muted);
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.review {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.review blockquote {
  margin: 0 0 .5rem;
  font-style: italic;
}

@media (max-width: 980px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.contact {
  padding: 4rem 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1rem;
  align-items: start;
}

.contact-card,
.visit-card p {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  color: black;
}

.form {
  display: grid;
  gap: .85rem;
}

.form-row {
  display: grid;
  gap: .35rem;
}

input,
select,
textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--outline);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(46, 139, 139, .25);
  border-color: var(--teal);
}

.map-placeholder iframe {
  height: 220px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(163, 214, 92, .12), rgba(46, 139, 139, .12));
  margin-top: 1rem;
  border: 1px dashed var(--outline);
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  margin-top: 1rem;
  border-top: 1px solid var(--outline);
  background: #fff;
}

.footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--outline);
  border-radius: 999px;
}

.socials img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  /* border: 1px solid var(--outline); */
  /* border-radius: 999px; */
}

.socials a:hover {
  background: var(--muted);
}

/* Utilities */
.section-spacer {
  padding: 3rem 0;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Global responsive images/videos */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Footer */
.footer-flex {
  flex-wrap: wrap;
  text-align: center;
}

/* Tablet and below */
@media (max-width: 768px) {
  .header-wrap {
    flex-wrap: wrap;
  }

  .footer-flex {
    flex-direction: column;
    gap: 0.5rem;
  }

  .about-grid,
  .services .card-grid,
  .product-grid,
  .review-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  h2 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  p {
    font-size: 0.95rem;
  }

  .cta-row {
    flex-direction: column;
  }
}

/* New styles for doctor profile */
.doctor-profile {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.doctor-image img {
  border-radius: 50%;
  width: 280px;
  height: 280px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.doctor-info h3 {
  font-size: 1.8rem;
  margin-bottom: .5rem;
}

.doctor-info .subtitle {
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .doctor-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .doctor-image img {
    margin: 0 auto;
  }
}

/* Brands Ticker */
.brands {
  padding: 4rem 0;
  text-align: center;
  background: var(--neutral);
}

.brands h2 {
  margin-bottom: 2rem;
}

.ticker {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: scroll 25s linear infinite;
  gap: 3rem;
}

.ticker-track img {
  height: 200px;
  object-fit: contain;
  /* filter: grayscale(100%); */
  transition: filter 0.2s;
}

/* .ticker-track img:hover {
  filter: grayscale(0%);
} */

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .ticker-track img {
    height: 40px;
  }
}

/* Gallery Bento Grid */
.gallery-bento {
  padding: 4rem 0;
  background: var(--muted);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.bento-grid div {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.bento-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.bento-grid img:hover {
  transform: scale(1.05);
}

/* Hearing Aids Page */
.hearing-aids {
  padding: 4rem 0;
  background: var(--muted);
  text-align: center;
}

.hearing-aids h2 {
  font-size: 2.2rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.brand-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.brand-card {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.brand-card img {
  width: 100%;
  height: 160px;
  object-fit: fill;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.brand-card h3 {
  color: var(--teal);
  margin-bottom: 0.75rem;
  text-align: center;
}

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

.features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--outline);
  font-size: 0.95rem;
}

.features li:last-child {
  border-bottom: none;
}

/* Reviews Page - Bento Grid */
.reviews {
  padding: 4rem 0;
  background: var(--muted);
}

.reviews h2 {
  text-align: center;
  color: var(--teal);
  margin-bottom: 2rem;
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.5rem);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.review-card blockquote {
  font-style: italic;
  color: var(--ink-2);
  margin: 0 0 1.25rem;
}

.review-card footer {
  text-align: right;
  font-size: 0.9rem;
  color: var(--ink);
}

/* Reviews Page Enhancements */
.reviews .section-sub {
  text-align: center;
  margin-bottom: 2rem;
  color: #5b6870;
}

.stars {
  color: #f4c430;
  /* gold star color */
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

.ticker-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  background: var(--muted);
  padding: 2rem 0;
}

.ticker-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  /* important */
  animation: ticker-scroll 35s linear infinite;
}

.ticker-card {
  flex: 0 0 auto;
  width: 280px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticker-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.ticker-card h3 {
  font-size: 1.1rem;
  color: var(--teal);
  margin: 0.75rem 1rem 0.5rem;
}

.ticker-card p {
  font-size: 0.9rem;
  margin: 0 1rem 1rem;
  color: #333;
}

/* Scroll Animation */
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .ticker-card {
    width: 220px;
  }

  .ticker-track {
    animation-duration: 20s;
  }
}

@media (max-width: 480px) {
  .ticker-card {
    width: 180px;
  }

  .ticker-card img {
    height: 120px;
  }
}

.types-heading {
  text-align: center;
  margin: 60px 0 30px 0;
  /* Top and bottom spacing */
  font-size: 2rem;
  font-weight: 600;
}

.submit-review {
  margin: 2rem 0;
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: 8px;
}

.submit-review h2 {
  margin-bottom: 1rem;
}

.submit-review .form-group {
  margin-bottom: 1rem;
}

.submit-review input,
.submit-review select,
.submit-review textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.submit-review button {
  background: var(--teal);
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.submit-review button:hover {
  background: var(--muted);
  color: red;
}