/* =========================================================
   iSpecs Optical Clinic
   Main stylesheet — edit colors in :root to change the theme
   ========================================================= */

/* 1. Theme and reset */
:root {
  --gold: #a77a36;
  --gold-light: #d9bd8e;
  --gold-pale: #f4e8d5;
  --ink: #211a14;
  --cream: #fffaf3;
  --muted: #75695d;
  --line: #eadbc5;
  --shadow: 0 10px 28px rgba(65, 43, 20, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(211, 177, 121, .22) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 28%, rgba(211, 177, 121, .18) 0 2px, transparent 3px),
    linear-gradient(135deg, #eee4d5, #f8f2e9 48%, #e9dece);
  background-size: 34px 34px, 42px 42px, auto;
}

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

.page {
  width: min(100%, 1100px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 42px rgba(55, 37, 18, .13);
}

/* 2. Full-width cover photo
   Replace assets/clinic-interior.jpg to change the cover image. */
.hero {
  width: 100%;
  padding: 0;
  background: #e9d8bd;
  line-height: 0;
}

.clinic-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

/* 3. Shared section styling */
.section {
  position: relative;
  padding-left: 7.5%;
  padding-right: 7.5%;
}

.about,
.services,
.contact,
.review-section {
  position: relative;
  isolation: isolate;
}

.about::before,
.services::before,
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18px 3%;
  border: 1px solid rgba(185, 143, 79, .13);
  border-radius: 28px;
  pointer-events: none;
}

.about {
  padding-top: 34px;
  padding-bottom: 38px;
  text-align: center;
  background:
    radial-gradient(ellipse at 8% 30%, rgba(231, 208, 174, .35), transparent 35%),
    radial-gradient(ellipse at 92% 80%, rgba(231, 208, 174, .28), transparent 32%),
    linear-gradient(135deg, #fffdf9, #fbf3e8);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0 auto 14px;
}

.section-heading span {
  flex: 1;
  max-width: 290px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold));
}

.section-heading span:last-child {
  transform: scaleX(-1);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(19px, 2.8vw, 29px);
  font-weight: 700;
  letter-spacing: 1.4px;
  white-space: nowrap;
}

.about-copy {
  max-width: 700px;
  margin: 12px auto 28px;
  color: var(--muted);
  font-size: clamp(14px, 2.3vw, 21px);
  line-height: 1.6;
}

/* 4. Quick action buttons */
.action-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.action {
  display: flex;
  min-height: 108px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(194, 157, 102, .25);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #fbf1e3);
  box-shadow: 0 6px 16px rgba(60, 43, 25, .09);
  transition: transform .2s ease, box-shadow .2s ease;
}

.action:hover {
  transform: translateY(-4px);
  box-shadow: 0 11px 22px rgba(60, 43, 25, .14);
}

.action svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action:first-child svg,
.action .facebook,
.action .tiktok {
  fill: var(--ink);
  stroke: var(--ink);
}

.action .pin {
  stroke: var(--gold);
  stroke-width: 2.2;
}

.action .facebook,
.action .tiktok {
  width: 43px;
  height: 43px;
}

.action .solid {
  fill: var(--ink);
  stroke: none;
}

.action b {
  font-size: clamp(12px, 2vw, 17px);
  font-weight: 600;
  letter-spacing: .4px;
}

/* 5. Services */
.services {
  padding-top: 12px;
  padding-bottom: 34px;
  text-align: center;
  background:
    radial-gradient(circle at 12% 50%, rgba(218, 188, 143, .20), transparent 24%),
    radial-gradient(circle at 88% 50%, rgba(218, 188, 143, .20), transparent 24%),
    #f8efe2;
}

.services .section-heading {
  margin-bottom: 14px;
}

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

.service {
  display: flex;
  min-height: 145px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(183, 139, 75, .22);
  border-radius: 20px;
  background: rgba(255, 253, 249, .82);
  box-shadow: 0 5px 15px rgba(60, 43, 25, .06);
}

.service svg {
  width: 100px;
  height: 62px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service:nth-child(3) svg {
  stroke: var(--ink);
}

.service .eye-pupil {
  fill: var(--ink);
  stroke: none;
}

.service b {
  font-size: clamp(13px, 2vw, 17px);
  font-weight: 700;
  letter-spacing: .6px;
}

/* 6. Google review banner */
.review-section {
  padding: 4px 7.5% 32px;
  background: #f8efe2;
}

.google-review {
  display: flex;
  max-width: 900px;
  min-height: 92px;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: 14px 26px;
  border: 1.5px solid var(--gold-light);
  border-radius: 55px;
  background: linear-gradient(110deg, #fffdf9, #f4e4cc);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.google-review:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 24px rgba(60, 43, 25, .15);
}

.google-g {
  font-family: Arial, sans-serif;
  font-size: 43px;
  font-weight: 700;
  line-height: 1;
  color: #4285f4;
}

.review-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.review-copy b {
  font-size: clamp(15px, 2.2vw, 22px);
}

.review-copy small {
  color: var(--muted);
  font-size: clamp(12px, 1.7vw, 16px);
}

.review-stars {
  margin-left: auto;
  color: #d59a27;
  font-size: clamp(17px, 2.6vw, 26px);
  letter-spacing: 2px;
  white-space: nowrap;
}

.review-arrow {
  color: var(--gold);
  font-size: 32px;
  line-height: 1;
}

/* 7. Contact details */
.contact {
  padding-top: 0;
  padding-bottom: 40px;
  background:
    radial-gradient(ellipse at 90% 20%, rgba(225, 199, 161, .28), transparent 35%),
    #f8efe2;
}

.contact-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 249, .92);
  box-shadow: var(--shadow);
}

.contact-card > a {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(13px, 2.2vw, 20px);
}

.contact-card > a:last-child {
  border-bottom: 0;
}

.contact-card b {
  font-weight: 500;
}

.contact-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--ink);
}

.contact-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon .solid {
  fill: currentColor;
  stroke: none;
}

.arrow {
  margin-left: auto;
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
}

/* 8. Footer */
.footer {
  position: relative;
  overflow: hidden;
  padding: 30px 20px 28px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 80%, rgba(255,255,255,.55), transparent 25%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.45), transparent 25%),
    linear-gradient(180deg, #ead4b3, #f8eee1);
}

.gold-wave {
  position: absolute;
  top: -28px;
  left: -4%;
  width: 108%;
  height: 55px;
  border-top: 7px solid #bd914d;
  border-radius: 50%;
  box-shadow: 0 -3px 0 #fff8ed;
}

.tagline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.tagline span {
  width: min(13vw, 120px);
  height: 1px;
  background: var(--gold);
}

.tagline p {
  margin: 8px 0 4px;
  color: #382619;
  font-family: "Parisienne", "Playfair Display", cursive;
  font-size: clamp(30px, 5vw, 54px);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 7px 0 12px;
}

.socials a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d8c19b;
  border-radius: 50%;
  background: #fffaf2;
}

.socials svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #34261a;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials a:first-child svg,
.socials a:last-child svg {
  fill: #34261a;
  stroke: none;
}

.socials .solid {
  fill: #34261a;
  stroke: none;
}

.footer > small {
  color: #76604a;
  font-size: 11px;
}

/* 9. Mobile layout */
@media (max-width: 700px) {
  .clinic-photo {
    max-height: none;
  }

  .section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .about {
    padding-top: 27px;
    padding-bottom: 30px;
  }

  .section-heading {
    gap: 12px;
  }

  .action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .action {
    min-height: 94px;
    border-radius: 15px;
  }

  .action svg {
    width: 35px;
    height: 35px;
  }

  .service-grid {
    gap: 8px;
  }

  .service {
    min-height: 125px;
    border-radius: 15px;
  }

  .service svg {
    width: 82px;
  }

  .review-section {
    padding: 0 5% 26px;
  }

  .google-review {
    min-height: 78px;
    gap: 10px;
    padding: 11px 14px;
  }

  .google-g {
    font-size: 34px;
  }

  .review-stars {
    font-size: 16px;
    letter-spacing: 0;
  }

  .review-arrow {
    font-size: 25px;
  }

  .contact-card {
    padding: 6px 12px;
    border-radius: 16px;
  }

  .contact-card > a {
    min-height: 55px;
    gap: 12px;
  }

  .contact-icon {
    width: 39px;
    height: 39px;
  }

  .desktop {
    display: none;
  }

  .tagline {
    gap: 10px;
  }
}

@media (max-width: 390px) {
  .section-heading h2 {
    font-size: 17px;
  }

  .section-heading {
    gap: 8px;
  }

  .action b {
    font-size: 11px;
  }

  .review-stars {
    display: none;
  }

  .contact-card > a {
    font-size: 12px;
  }
}
