/* ==========================================================================
   FERTILITY LEGAL EXPERT — SERVICE PAGES STYLESHEET
   ========================================================================== */

:root {
  --ink: #171311;
  --gold: #c58a1b;
  --pink: #c52b78;
  --cream: #fffaf2;
  --text: #514a45;
  --muted: #776e65;
  --line: #e8dcc8;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

/* ==========================================================================
   HERO SECTION (2-COLUMN)
   ========================================================================== */
.service-hero {
  padding: 65px 0 75px;
  background: linear-gradient(115deg, #fff 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 525px;
  gap: 50px;
  align-items: center;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
}

.hero-copy .eyebrow:before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 2px;
  background: var(--gold);
}

.hero-copy h1 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ink);
  line-height: 1.25;
  font-size: clamp(28px, 2.7vw, 42px);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

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

.hero-copy p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 26px;
}

.hero-copy .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 13px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  will-change: transform;
}

.hero-copy .btn:hover {
  background: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 43, 120, 0.28);
}

.hero-visual {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hero-visual:hover {
  transform: translateY(-4px);
}

.hero-visual img,
.image-frame img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  display: block;
  box-shadow: 0 10px 28px rgba(33, 21, 11, .06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-hero-grid .hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 35 / 24;
}

.hero-visual:hover img {
  box-shadow: 0 18px 40px rgba(33, 21, 11, .12);
}

.hero-visual:after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  z-index: 0;
  pointer-events: none;
  transition: inset 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.hero-visual:hover:after {
  inset: 18px -18px -18px 18px;
  border-color: #e4b64f;
}

.visual-caption {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 18px;
  background: #171311ef;
  color: #fff;
  padding: 10px 15px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   HEADINGS & TYPOGRAPHY
   ========================================================================== */
.section-heading-single {
  margin-bottom: 34px;
  max-width: 100%;
  text-align: center;
}

.section-heading-single .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--pink);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
}

.section-heading-single .eyebrow:before,
.section-heading-single .eyebrow:after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.section-heading-single h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ink);
  line-height: 1.25;
  font-size: clamp(17px, 1.6vw, 26px);
  margin: 0 auto;
  letter-spacing: -0.01em;
  white-space: normal;
  text-align: center;
}

.service-section {
  padding: 76px 0;
}

.service-section.soft {
  background: var(--cream);
}

.service-section h2,
.service-section h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ink);
  line-height: 1.25;
}

.service-section h3 {
  font-size: 20px;
  margin: 22px 0 10px;
}

/* ==========================================================================
   TWO COLUMN LAYOUT
   ========================================================================== */
.two-col {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 55px;
  align-items: center;
}

.two-col.reverse {
  grid-template-columns: 1.05fr .95fr;
}

.image-frame {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.image-frame:hover {
  transform: translateY(-4px);
}

.image-frame:before {
  content: "";
  position: absolute;
  inset: -10px 10px 10px -10px;
  border: 1px solid #d5b56e;
  border-radius: 12px;
  pointer-events: none;
  transition: inset 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.image-frame:hover:before {
  inset: -14px 14px 14px -14px;
  border-color: var(--gold);
}

.image-frame:hover img {
  box-shadow: 0 18px 40px rgba(33, 21, 11, .12);
}

.image-frame img {
  height: auto;
  aspect-ratio: 35 / 24;
}

.image-frame.tall img {
  height: auto;
}

.copy p {
  margin: 0 0 15px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

.service-section .note {
  padding: 15px 18px;
  border-left: 3px solid var(--gold);
  background: #fff8e9;
  margin-top: 18px !important;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  border-radius: 0 8px 8px 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
}

.service-section .note:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(197, 138, 27, .09);
  border-left-color: var(--pink);
}

.feature-list,
.check-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  display: grid;
  gap: 10px;
}

.feature-list li,
.check-list li {
  padding-left: 25px;
  position: relative;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.feature-list li:hover,
.check-list li:hover {
  transform: translateX(4px);
  color: var(--ink);
}

.feature-list li:before,
.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: 700;
  transition: transform 0.25s ease, color 0.25s ease;
}

.feature-list li:hover:before,
.check-list li:hover:before {
  transform: scale(1.2);
  color: var(--gold);
}

.section-title {
  max-width: 850px;
  text-align: center;
  margin: 0 auto 38px;
}

.section-title .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--pink);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
}

.section-title .eyebrow:before,
.section-title .eyebrow:after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.section-title h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ink);
  line-height: 1.25;
  font-size: clamp(20px, 2.1vw, 30px);
  margin: 0 auto 12px;
  text-align: center;
  white-space: normal;
}

.section-title p {
  margin: 0 auto;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  max-width: 780px;
}

/* ==========================================================================
   LAW GRID (STATUTORY)
   ========================================================================== */
.law-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.law-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 27px;
  box-shadow: 0 8px 24px rgba(33, 21, 11, .05);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  will-change: transform, box-shadow;
}

.law-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(33, 21, 11, .09);
  border-color: #d5b56e;
}

.law-index {
  font: 30px "Playfair Display", serif;
  color: var(--gold);
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease;
}

.law-card:hover .law-index {
  transform: translateY(-2px) scale(1.05);
  color: #a46d0a;
}

.law-card h3 {
  margin: 12px 0;
  font-size: 20px;
}

.law-card p {
  font-size: 14px;
  margin-bottom: 0;
  line-height: 1.7;
  color: var(--text);
}

/* ==========================================================================
   STEPS (DARK SECTION)
   ========================================================================== */
.service-section.dark {
  background: #1b1715;
  color: #eee4d8;
}

.service-section.dark h2,
.service-section.dark h3 {
  color: #fff;
}

.service-section.dark .section-title p {
  color: #d3c6b9;
}

.service-section.dark .section-title .eyebrow {
  color: #f785b4;
}

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

.steps article {
  padding: 22px 18px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 9px;
  background: rgba(255, 255, 255, .03);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              background 0.35s ease;
  will-change: transform, box-shadow;
}

.steps article:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .07);
  border-color: #e4b64f;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .38), 0 0 0 1px rgba(228, 182, 79, .25);
}

.steps article > span {
  font: 30px "Playfair Display", serif;
  color: #e4b64f;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease;
}

.steps article:hover > span {
  transform: translateY(-2px) scale(1.08);
  color: #ffd875;
}

.steps h3 {
  font-size: 17px;
  margin: 10px 0;
}

.steps p {
  font-size: 13px;
  color: #d3c6b9;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   CREATIVE COMPLIANCE CHECKLIST
   ========================================================================== */
.compliance-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.checklist-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 4px 16px rgba(33, 21, 11, .03);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  will-change: transform, box-shadow;
}

.checklist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(33, 21, 11, .08);
  border-color: #d5b56e;
}

.checklist-card-badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid #ebd9c3;
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  font-family: "Playfair Display", Georgia, serif;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s ease,
              border-color 0.35s ease;
}

.checklist-card:hover .checklist-card-badge {
  transform: scale(1.08);
  background: #fdf0db;
  border-color: #c58a1b;
}

.checklist-card-content h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 5px 0;
  line-height: 1.3;
}

.checklist-card-content p {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  line-height: 1.65;
}

/* Featured Renewal Card (Item 7 + Statutory Notice) */
.compliance-featured-card {
  background: linear-gradient(135deg, #fffaf2 0%, #ffffff 100%);
  border: 1.5px solid #d5b56e;
  border-left: 5px solid var(--gold);
  border-radius: 14px;
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  box-shadow: 0 8px 25px rgba(197, 138, 27, .08);
  margin-bottom: 24px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  will-change: transform, box-shadow;
}

.compliance-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(197, 138, 27, .15);
  border-color: #c58a1b;
}

.compliance-featured-left {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.compliance-featured-icon {
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  padding-top: 2px;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.compliance-featured-card:hover .compliance-featured-icon {
  transform: scale(1.12) rotate(-5deg);
}

.compliance-featured-left h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 6px 0;
}

.compliance-featured-left p {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 6px 0;
  line-height: 1.65;
}

.compliance-featured-left .alert-tag {
  display: inline-block;
  background: #fdf0db;
  color: #936006;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

.compliance-featured-right {
  flex-shrink: 0;
}

.compliance-featured-right .btn {
  white-space: nowrap;
  padding: 12px 22px;
  font-size: 13px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.compliance-featured-right .btn:hover {
  background: var(--pink);
}

.check-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 30px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 12px;
}

.check-panel .note {
  grid-column: 1 / -1;
}

/* ==========================================================================
   ADVOCATE PROFILE BOX
   ========================================================================== */
.advocate-box {
  background: #fff;
  max-width: 960px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 34px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(33, 21, 11, .05);
  margin: auto;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  will-change: transform, box-shadow;
}

.advocate-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(33, 21, 11, .09);
  border-color: #d5b56e;
}

.advocate-box img {
  width: 230px;
  height: 270px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.advocate-box:hover img {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
}

.advocate-box p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

/* ==========================================================================
   SERVICE FAQS
   ========================================================================== */
.service-faqs {
  max-width: 900px;
  margin: auto;
  display: grid;
  gap: 12px;
}

.service-faqs details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 20px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease,
              background 0.25s ease;
  will-change: transform, box-shadow;
}

.service-faqs details:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(33, 21, 11, .06);
  border-color: #d5b56e;
}

.service-faqs details[open] {
  border-color: var(--pink);
  box-shadow: 0 10px 26px rgba(197, 43, 120, .07);
}

.service-faqs summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  font-size: 16px;
  transition: color 0.25s ease;
}

.service-faqs details:hover summary {
  color: var(--pink);
}

.service-faqs summary::-webkit-details-marker {
  display: none;
}

.service-faqs summary:after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--pink);
  font-size: 22px;
  top: 12px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.service-faqs details:hover summary:after {
  transform: scale(1.15);
}

.service-faqs details[open] summary:after {
  content: "−";
  transform: rotate(180deg);
}

.service-faqs details p {
  font-size: 14px;
  margin: 0;
  padding: 0 0 18px;
  line-height: 1.7;
  color: var(--text);
}

/* ==========================================================================
   SERVICE CONTACT STRIP
   ========================================================================== */
.service-contact-strip {
  background: linear-gradient(110deg, #1a1513, #35271d);
  color: #fff;
  padding: 45px 0;
}

.service-contact-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.service-contact-strip h2 {
  color: #fff;
  margin-bottom: 8px;
  font-family: "Playfair Display", Georgia, serif;
}

.service-contact-strip p {
  margin: 0;
  color: #e0d4c8;
}

.service-contact-strip .btn {
  background: var(--gold);
  color: var(--ink);
  padding: 13px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  will-change: transform;
}

.service-contact-strip .btn:hover {
  background: #d49826;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 138, 27, 0.35);
}

/* ==========================================================================
   RESPONSIVE (LAPTOP / TABLET / MOBILE)
   ========================================================================== */
@media (max-width: 1159px) and (min-width: 901px) {
  .service-hero-grid {
    grid-template-columns: 1.05fr .95fr;
  }
}

@media (max-width: 900px) {
  /* Headings wrap naturally on mobile without overflow */
  .section-title h2 {
    font-size: clamp(22px, 5.2vw, 30px);
    line-height: 1.3;
    margin-bottom: 14px;
    text-align: center;
  }

  /* Hero: Heading -> Image -> Content */
  .service-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy .eyebrow {
    order: 1;
    margin-bottom: 8px;
  }

  .hero-copy h1 {
    order: 2;
    font-size: clamp(26px, 6vw, 34px);
    line-height: 1.3;
    margin-bottom: 14px;
    text-align: left;
    white-space: normal;
  }

  .service-hero-grid .hero-visual {
    order: 3;
    width: 100%;
    margin-right: 0;
    margin-bottom: 14px;
  }

  .service-hero-grid .hero-visual img {
    height: auto;
    width: 100%;
  }

  .hero-copy p {
    order: 4;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-copy .btn {
    order: 5;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Two-Col sections: Heading -> Image -> Content */
  .two-col,
  .two-col.reverse {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .two-col .image-frame,
  .two-col.reverse .image-frame {
    order: 1 !important; /* Image comes first right under heading */
    width: 100%;
    max-width: 100%;
  }

  .two-col .copy,
  .two-col.reverse .copy {
    order: 2 !important; /* Content follows the image */
    width: 100%;
  }

  .image-frame img,
  .image-frame.tall img {
    height: auto;
    width: 100%;
  }

  .law-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .compliance-checklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .compliance-featured-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
    gap: 18px;
  }

  .compliance-featured-right {
    width: 100%;
  }

  .compliance-featured-right .btn {
    width: 100%;
    display: block;
    text-align: center;
  }

  .check-panel {
    grid-template-columns: 1fr;
  }

  .check-panel .note {
    grid-column: auto;
  }

  /* Advocate section: Heading -> Image -> Content */
  .advocate-box {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    gap: 18px;
  }

  .advocate-box img {
    order: 1;
    width: 100%;
    height: 300px;
  }

  .advocate-box .advocate-content {
    order: 2;
    width: 100%;
  }

  .service-contact-strip .wrap {
    align-items: center;
    text-align: center;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .service-hero {
    padding: 40px 0 50px;
  }

  .service-section {
    padding: 50px 0;
  }

  .advocate-box img {
    height: 250px;
  }

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

  .law-grid,
  .compliance-checklist-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ACCESSIBILITY: PREFERS REDUCED MOTION
   ========================================================================== */
@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;
  }
}
