/* ============================================================
   SUN SOL SEO — services.css
   Luxury Resort SEO Services page styles
   ============================================================ */

/* ── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  padding: 140px var(--gutter) 90px;
  background: linear-gradient(160deg, #0e2c35 0%, #1a4a57 45%, #2a6b7c 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 75% 35%, rgba(200,146,42,.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(42,107,124,.4) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-inner .eyebrow { color: var(--sun-lt); margin-bottom: .8rem; display: block; }
.hero h1 { font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 300; line-height: 1.1; color: var(--white); margin-bottom: 1.2rem; }
.hero h1 em { color: var(--sun-lt); font-style: italic; }
.hero-desc { color: rgba(255,255,255,.65); font-size: clamp(.92rem, 1.4vw, 1.1rem); max-width: 580px; margin-bottom: 2.5rem; line-height: 1.8; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.85); }
.btn-ghost:hover { border-color: rgba(255,255,255,.7); color: var(--white); }

/* ── PACKAGE SECTION ────────────────────────────── */
.packages { padding: 100px var(--gutter); background: var(--white); }
.packages-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.packages-header .eyebrow { margin-bottom: .6rem; }
.packages-header .section-title { margin-bottom: .8rem; }
.packages-header p { color: var(--taupe); }
.pkg-tabs {
  display: flex; justify-content: center; gap: 0; margin-bottom: 3rem;
  background: var(--sand); border: 1px solid rgba(140,123,107,.18);
  border-radius: 6px; padding: 5px; max-width: 400px; margin-left: auto; margin-right: auto;
}
.pkg-tab { flex: 1; padding: .7rem 1.5rem; border: none; border-radius: 4px; background: transparent; font-family: var(--f-body); font-size: .88rem; font-weight: 500; color: var(--taupe); cursor: pointer; transition: all .25s; }
.pkg-tab.active { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(26,22,18,.1); }
.pkg-panel { display: none; }
.pkg-panel.active { display: block; animation: panelIn .3s ease; }
.pkg-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }

.pkg-card { border: 1px solid rgba(140,123,107,.15); border-radius: 6px; overflow: hidden; background: var(--white); }
.pkg-card.featured { background: linear-gradient(145deg, var(--sea-dk) 0%, #1a4a57 100%); border-color: transparent; }
.pkg-card-head { padding: 2rem 2rem 1.5rem; border-bottom: 1px solid rgba(140,123,107,.1); }
.pkg-card.featured .pkg-card-head { border-color: rgba(255,255,255,.08); }
.pkg-badge { display: inline-block; background: var(--sun); color: var(--white); font-size: .65rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .2rem .7rem; border-radius: 2rem; margin-bottom: .8rem; }
.pkg-name { font-family: var(--f-display); font-size: 2.2rem; font-weight: 300; color: var(--ink); line-height: 1; margin-bottom: .4rem; }
.pkg-card.featured .pkg-name { color: var(--white); }
.pkg-tagline { font-size: .88rem; color: var(--taupe); }
.pkg-card.featured .pkg-tagline { color: rgba(255,255,255,.55); }
.pkg-body { padding: 2rem; }
.pkg-section-label { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: .75rem; margin-top: 1.5rem; }
.pkg-section-label:first-child { margin-top: 0; }
.pkg-card.featured .pkg-section-label { color: var(--sun-lt); }
.pkg-item { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid rgba(140,123,107,.08); align-items: flex-start; }
.pkg-card.featured .pkg-item { border-color: rgba(255,255,255,.07); }
.pkg-item:last-child { border-bottom: none; }
.pkg-check { flex-shrink: 0; width: 18px; height: 18px; background: rgba(42,107,124,.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.pkg-card.featured .pkg-check { background: rgba(200,146,42,.2); }
.pkg-check svg { width: 10px; height: 10px; stroke: var(--sea); stroke-width: 2.5; fill: none; }
.pkg-card.featured .pkg-check svg { stroke: var(--sun-lt); }
.pkg-item-text { font-size: .88rem; color: var(--ink); line-height: 1.5; }
.pkg-card.featured .pkg-item-text { color: rgba(255,255,255,.82); }
.pkg-item-text strong { font-weight: 500; display: block; }
.pkg-item-text span { font-size: .82rem; color: var(--taupe); }
.pkg-card.featured .pkg-item-text span { color: rgba(255,255,255,.45); }
.pkg-inherit { display: flex; gap: .75rem; align-items: center; background: rgba(42,107,124,.06); border: 1px solid rgba(42,107,124,.15); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; font-size: .85rem; color: var(--sea); font-weight: 500; }
.pkg-card.featured .pkg-inherit { background: rgba(200,146,42,.1); border-color: rgba(200,146,42,.2); color: var(--sun-lt); }
.pkg-cta { padding: 0 2rem 2rem; }
.pkg-cta .btn { width: 100%; text-align: center; display: block; }
.btn-sea { background: var(--sea); color: var(--white); }
.btn-sea:hover { background: var(--sea-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(42,107,124,.3); }

/* ── COMPARISON TABLE ───────────────────────────── */
.comparison { padding: 90px var(--gutter); background: var(--white); }
.comparison-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.comparison-header .eyebrow { margin-bottom: .6rem; }
.comparison-header .section-title { margin-bottom: .8rem; }
.comparison-wrap { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.comparison-table th { padding: 1rem 1.5rem; text-align: left; font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); border-bottom: 2px solid rgba(140,123,107,.15); }
.comparison-table th.pkg-col { text-align: center; }
.comparison-table th.featured-col { background: rgba(42,107,124,.06); border-radius: 4px 4px 0 0; color: var(--sea); }
.comparison-table td { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(140,123,107,.08); font-size: .88rem; vertical-align: middle; }
.comparison-table td.pkg-col { text-align: center; }
.comparison-table td.featured-col { background: rgba(42,107,124,.04); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(140,123,107,.03); }
.comparison-table tr:hover td.featured-col { background: rgba(42,107,124,.06); }
.comparison-table .row-cat td { background: var(--sand); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); padding: .6rem 1.5rem; border-bottom: none; }
.check-yes { color: var(--sea); font-size: 1.1rem; }
.check-no { color: rgba(140,123,107,.35); font-size: 1.1rem; }
.check-once { display: inline-block; background: rgba(200,146,42,.12); color: var(--sun); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 2rem; }
.check-monthly { display: inline-block; background: rgba(42,107,124,.1); color: var(--sea); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 2rem; }

/* ── NOT INCLUDED ───────────────────────────────── */
.not-included { padding: 80px var(--gutter); background: var(--sand); }
.not-header { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.not-header .eyebrow { margin-bottom: .6rem; }
.not-header .section-title { margin-bottom: .8rem; }
.not-header p { color: var(--taupe); }
.not-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.not-card { background: var(--cream); border: 1px solid rgba(140,123,107,.12); border-radius: var(--radius); padding: 1.5rem; }
.not-card-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .75rem; }
.not-icon { font-size: 1.3rem; flex-shrink: 0; }
.not-card h3 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.not-card p { font-size: .85rem; color: var(--taupe); line-height: 1.65; }
.not-tag { display: inline-block; background: rgba(140,123,107,.1); color: var(--taupe); font-size: .72rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 2rem; margin-bottom: .5rem; }
.referral-note { margin-top: 2.5rem; background: var(--white); border: 1px solid rgba(42,107,124,.15); border-left: 3px solid var(--sea); border-radius: var(--radius); padding: 1.5rem 2rem; display: flex; gap: 1.5rem; align-items: flex-start; max-width: 780px; margin-left: auto; margin-right: auto; }
.referral-note-icon { font-size: 1.5rem; flex-shrink: 0; }
.referral-note h4 { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; margin-bottom: .3rem; }
.referral-note p { font-size: .87rem; color: var(--taupe); line-height: 1.7; }

/* ── CTA SECTION ────────────────────────────────── */
.cta-section { padding: 90px var(--gutter); background: linear-gradient(155deg, #1a1612 0%, #2a1e14 50%, #1a2a32 100%); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.cta-left .eyebrow { color: var(--sun-lt); margin-bottom: .8rem; }
.cta-title { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; color: var(--white); line-height: 1.15; margin-bottom: 1.2rem; }
.cta-title em { color: var(--sun-lt); font-style: italic; }
.cta-left p { color: rgba(255,255,255,.6); margin-bottom: 1.5rem; line-height: 1.8; }
.cta-steps { display: flex; flex-direction: column; gap: .75rem; }
.cta-step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num { font-family: var(--f-display); font-size: 1.8rem; font-weight: 300; color: var(--sun-lt); line-height: 1; flex-shrink: 0; width: 2rem; }
.step-text h4 { color: var(--white); font-size: .92rem; font-weight: 500; margin-bottom: .15rem; }
.step-text p { color: rgba(255,255,255,.45); font-size: .82rem; line-height: 1.5; }
.cta-form { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; padding: 2.5rem; }
.cta-form h3 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 300; color: var(--white); margin-bottom: 1.5rem; }

/* ── SERVICES RESPONSIVE ────────────────────────── */
@media (max-width: 900px) {
  .pkg-layout { grid-template-columns: 1fr; }
  .not-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding: 110px 1.5rem 70px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; max-width: 320px; text-align: center; }
}
@media (max-width: 600px) {
  .pkg-tabs { max-width: 100%; }
  .not-grid { grid-template-columns: 1fr; }
}

/* ── OVERFLOW PROTECTION (mobile) ──────────────────
   Prevents any section or grid child from causing
   horizontal scroll on narrow screens.
   These rules target the specific elements that
   tend to overflow on mobile without breaking layout.
─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Every direct grid/flex child must respect its cell */
  .container > * { min-width: 0; }

  /* Text-heavy elements always wrap */
  h1, h2, h3, h4, p, li, td, th, span, a {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* All sections clip overflow */
  section, header, footer, nav, aside, main { overflow-x: hidden; }
}
