/* ============================================================
   SUN SOL SEO — home.css
   Homepage-specific styles (index.html only)
   ============================================================ */

/* ── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
  background: linear-gradient(160deg, #0e2c35 0%, #1a4a57 45%, #2a6b7c 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(200,146,42,.18) 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,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 820px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(200,146,42,.15);
  border: 1px solid rgba(200,146,42,.3);
  color: var(--sun-lt);
  font-size: .72rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  animation: fadeUp .8s ease both;
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.07;
  color: var(--white);
  margin-bottom: 1.5rem;
  animation: fadeUp .9s .1s ease both;
}
.hero h1 em { font-style: italic; color: var(--sun-lt); }
.hero h1 strong { font-weight: 600; }
.hero-desc {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: rgba(255,255,255,.7);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  animation: fadeUp .9s .2s ease both;
}
.hero-ctas {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .9s .3s ease both;
}
.trust-bar {
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.08);
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem var(--gutter);
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
  z-index: 2;
}
.trust-item {
  color: rgba(255,255,255,.55);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.trust-item strong {
  color: rgba(255,255,255,.85); display: block;
  font-size: 1.1rem; font-weight: 400; letter-spacing: 0; text-transform: none;
}

/* ── PROBLEM SECTION ────────────────────────────── */
.problem { padding: 100px var(--gutter); background: var(--sand); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.problem-label { margin-bottom: .8rem; }
.problem-title { margin-bottom: 1.2rem; }
.problem-body { color: var(--taupe); margin-bottom: 2rem; line-height: 1.8; }
.problem-cards { display: flex; flex-direction: column; gap: 1rem; }
.problem-card {
  background: var(--cream);
  border: 1px solid rgba(140,123,107,.15);
  border-left: 3px solid var(--sun);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.problem-card h3 {
  font-family: var(--f-display);
  font-size: 1.15rem; font-weight: 600;
  margin-bottom: .4rem;
}
.problem-card p { font-size: .95rem; color: var(--taupe); line-height: 1.65; }

/* ── STRATEGY PILLARS ───────────────────────────── */
.solution { padding: 100px var(--gutter); }
.solution-header { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.solution-header .section-title { margin-bottom: 1rem; }
.solution-header p { color: var(--taupe); font-size: 1.05rem; }
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.strategy-card {
  background: var(--cream);
  border: 1px solid rgba(140,123,107,.12);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: box-shadow .25s, transform .25s;
}
.strategy-card:hover { box-shadow: 0 12px 40px rgba(26,22,18,.08); transform: translateY(-4px); }
.strategy-num {
  font-family: var(--f-display);
  font-size: 3rem; font-weight: 300; color: var(--sun);
  line-height: 1; margin-bottom: 1rem;
}
.strategy-card h3 {
  font-family: var(--f-display);
  font-size: 1.45rem; font-weight: 600;
  margin-bottom: .7rem;
}
.strategy-card p { font-size: .96rem; color: var(--taupe); line-height: 1.75; }

/* ── ENTITY / WHO WE ARE ────────────────────────── */
.entity-block {
  background: linear-gradient(135deg, var(--sea) 0%, #1a4a57 100%);
  padding: 80px var(--gutter);
  overflow: hidden; /* prevent any child from spilling outside */
}
.entity-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}
/* Both columns must stay within the grid cell */
.entity-text,
.entity-facts { min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.entity-text .eyebrow { color: var(--sun-lt); margin-bottom: .8rem; }
.entity-title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  overflow-wrap: break-word;
}
.entity-title em { font-style: italic; color: var(--sun-lt); }
.entity-desc {
  color: rgba(255,255,255,.7); line-height: 1.8; margin-bottom: 1.5rem;
  overflow-wrap: break-word; word-break: break-word;
}
.entity-facts { display: flex; flex-direction: column; gap: .8rem; }
.entity-fact {
  display: flex; gap: .75rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  font-size: .88rem; color: rgba(255,255,255,.8);
  min-width: 0; overflow-wrap: break-word;
}
.entity-fact::before { content: '✓'; color: var(--sun-lt); flex-shrink: 0; font-weight: 600; }

/* ── FAQ ────────────────────────────────────────── */
.faq-section { padding: 100px var(--gutter); background: var(--sand); }
.faq-header { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }
.faq-header .section-title { margin-bottom: .8rem; }
.faq-header p { color: var(--taupe); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── SERVICES TABS ──────────────────────────────── */
.services { padding: 100px var(--gutter); }
.services-header { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; }
.services-header .section-title { margin-bottom: .8rem; }
.services-header p { color: var(--taupe); font-size: 1.05rem; }

.pkg-tabs {
  display: flex; justify-content: center; gap: 0;
  margin: 0 auto 2.5rem;
  background: var(--sand);
  border: 1px solid rgba(140,123,107,.18);
  border-radius: 6px;
  padding: 5px;
  max-width: 380px;
}
.pkg-tab {
  flex: 1; padding: .65rem 1.4rem;
  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; }

.hp-pkg-layout { max-width: 960px; margin: 0 auto; }
.hp-pkg-card {
  border: 1px solid rgba(140,123,107,.15);
  border-radius: 6px; overflow: hidden;
  background: var(--white);
}
.hp-pkg-card.featured {
  background: linear-gradient(145deg, var(--sea-dk) 0%, #1a4a57 100%);
  border-color: transparent;
}
.hp-pkg-head {
  padding: 1.75rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(140,123,107,.1);
}
.hp-pkg-card.featured .hp-pkg-head { border-color: rgba(255,255,255,.08); }
.hp-pkg-head h3 {
  font-family: var(--f-display);
  font-size: 2rem; font-weight: 300; color: var(--ink);
  margin: .4rem 0 .3rem;
}
.hp-pkg-card.featured .hp-pkg-head h3 { color: var(--white); }
.hp-pkg-card.featured .service-desc { color: rgba(255,255,255,.55); }
.hp-pkg-inherit {
  background: rgba(200,146,42,.1);
  border: 1px solid rgba(200,146,42,.2);
  color: var(--sun-lt);
  font-size: .85rem; font-weight: 500;
  padding: .75rem 2rem;
}
.hp-pkg-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0; padding: 0;
}
.hp-pkg-col {
  padding: 1.75rem 2rem;
  border-right: 1px solid rgba(140,123,107,.08);
}
.hp-pkg-card.featured .hp-pkg-col { border-color: rgba(255,255,255,.07); }
.hp-pkg-col:last-child { border-right: none; }
.hp-col-label {
  font-size: .7rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sun);
  margin-bottom: .85rem;
}
.hp-pkg-card.featured .hp-col-label { color: var(--sun-lt); }
.hp-pkg-card.featured .service-list li { color: rgba(255,255,255,.8); }
.hp-pkg-card.featured .service-list li::before { color: var(--sun-lt); }
.hp-pkg-footer {
  padding: 1.25rem 2rem;
  background: rgba(0,0,0,.02);
  border-top: 1px solid rgba(140,123,107,.08);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.hp-pkg-card.featured .hp-pkg-footer { background: rgba(0,0,0,.15); border-color: rgba(255,255,255,.07); }
.hp-pkg-card.featured .btn-service { color: var(--sun-lt); border-color: var(--sun-lt); }
.btn-sea-sm {
  background: var(--sea); color: var(--white);
  padding: .55rem 1.4rem; border-radius: var(--radius);
  font-size: .84rem; font-weight: 500; text-decoration: none;
  transition: background .2s; border: none; font-family: var(--f-body); cursor: pointer;
}
.btn-sea-sm:hover { background: var(--sea-lt); }
.btn-sun-sm {
  background: var(--sun); color: var(--white);
  padding: .55rem 1.4rem; border-radius: var(--radius);
  font-size: .84rem; font-weight: 500; text-decoration: none;
  transition: background .2s; border: none; font-family: var(--f-body); cursor: pointer;
}
.btn-sun-sm:hover { background: var(--sun-lt); }

/* Not included strip */
.not-summary {
  margin-top: 2.5rem;
  background: var(--sand);
  border: 1px solid rgba(140,123,107,.15);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
}
.not-summary-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.not-summary-icon { font-size: 1.2rem; flex-shrink: 0; }
.not-summary-head strong { display: block; font-size: .9rem; color: var(--ink); margin-bottom: .2rem; }
.not-summary-head p { font-size: .82rem; color: var(--taupe); }
.not-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.not-pill {
  background: var(--cream);
  border: 1px solid rgba(140,123,107,.2);
  border-radius: 2rem;
  padding: .28rem .85rem;
  font-size: .75rem; color: var(--taupe);
}
.not-more {
  font-size: .82rem; color: var(--sea); text-decoration: none;
  font-weight: 500; border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.not-more:hover { border-color: var(--sea); }

/* ── KEYWORD TAGS ───────────────────────────────── */
.kw-section {
  padding: 80px var(--gutter);
  background: var(--cream);
  border-top: 1px solid rgba(140,123,107,.1);
  border-bottom: 1px solid rgba(140,123,107,.1);
}
.kw-header { text-align: center; margin-bottom: 2.5rem; }
.kw-header .section-title { margin-bottom: .5rem; }
.kw-header p { color: var(--taupe); max-width: 540px; margin: 0 auto; }
.kw-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.kw-tag {
  background: var(--sand);
  border: 1px solid rgba(140,123,107,.2);
  border-radius: 2rem;
  padding: .45rem 1.1rem;
  font-size: .82rem; color: var(--taupe);
  transition: all .2s;
}
.kw-tag:hover { background: var(--sea); color: var(--white); border-color: var(--sea); }
.kw-tag.high { border-color: var(--sun); color: var(--sun); background: rgba(200,146,42,.06); }
.kw-tag.high:hover { background: var(--sun); color: var(--white); }

/* ── AUDIT CTA ──────────────────────────────────── */
.audit-section {
  padding: 100px var(--gutter);
  background: linear-gradient(155deg, #1a1612 0%, #2a1e14 50%, #1a2a32 100%);
}
.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.audit-left .eyebrow { color: var(--sun-lt); margin-bottom: .8rem; }
.audit-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;
}
.audit-title em { color: var(--sun-lt); font-style: italic; }
.audit-left p { color: rgba(255,255,255,.6); margin-bottom: 1.5rem; line-height: 1.8; }
.audit-deliverables { display: flex; flex-direction: column; gap: .75rem; }
.audit-d {
  display: flex; gap: 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.audit-d-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;
}
.audit-d-text h4 { color: var(--white); font-size: .92rem; font-weight: 500; margin-bottom: .2rem; }
.audit-d-text p { color: rgba(255,255,255,.5); font-size: .82rem; line-height: 1.5; }
.audit-form {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 2.5rem;
}
.audit-form h3 {
  font-family: var(--f-display);
  font-size: 1.6rem; font-weight: 300; color: var(--white);
  margin-bottom: 1.5rem;
}

/* ── ABOUT ──────────────────────────────────────── */
.about { padding: 100px var(--gutter); background: var(--sand); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-content .eyebrow { margin-bottom: .8rem; }
.about-content .section-title { margin-bottom: 1.4rem; }
.about-content p { color: var(--taupe); margin-bottom: 1.2rem; line-height: 1.85; font-size: 1.02rem; }
.about-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.about-stat strong {
  display: block;
  font-family: var(--f-display);
  font-size: 3rem; font-weight: 300; color: var(--sea); line-height: 1;
}
.about-stat span { font-size: .82rem; color: var(--taupe); text-transform: uppercase; letter-spacing: .1em; }
.about-visual { display: flex; flex-direction: column; gap: 1rem; }
.about-panel {
  background: linear-gradient(145deg, var(--sea-dk) 0%, #1a4a57 100%);
  border-radius: 4px; padding: 2.5rem; color: var(--white);
}
.about-panel-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sun-lt); margin-bottom: 1.2rem;
}
.about-panel-items { display: flex; flex-direction: column; gap: .85rem; }
.about-panel-item {
  display: flex; gap: .85rem; align-items: flex-start;
  font-size: .96rem; color: rgba(255,255,255,.78); line-height: 1.5;
}
.about-panel-item::before { content: '→'; color: var(--sun-lt); flex-shrink: 0; font-weight: 500; }
.about-panel-sand {
  background: var(--sand);
  border: 1px solid rgba(140,123,107,.18);
  border-radius: 4px; padding: 2rem 2.5rem;
  display: flex; gap: 3rem;
}
.about-panel-stat { text-align: center; }
.about-panel-stat strong {
  display: block;
  font-family: var(--f-display);
  font-size: 2.8rem; font-weight: 300; color: var(--sea);
  line-height: 1; margin-bottom: .3rem;
}
.about-panel-stat span { font-size: .75rem; color: var(--taupe); text-transform: uppercase; letter-spacing: .1em; }

/* ── HOMEPAGE RESPONSIVE ────────────────────────── */
@media (max-width: 900px) {
  .trust-bar { display: none; }
  .hero { min-height: 90svh; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 340px; text-align: center; }
  .problem-grid,
  .entity-inner,
  .audit-grid,
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  /* Entity text must not overflow on mobile */
  .entity-text { min-width: 0; max-width: 100%; }
  .entity-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .entity-facts { min-width: 0; }
  .strategy-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .about-panel-sand { gap: 1.5rem; flex-wrap: wrap; }
  .about-stats { flex-wrap: wrap; gap: 1.5rem; }
  .kw-tags { gap: .5rem; }
  .solution-header,
  .services-header,
  .faq-header { text-align: left; }
  .hp-pkg-body { grid-template-columns: 1fr; }
  .hp-pkg-col { border-right: none; border-bottom: 1px solid rgba(140,123,107,.08); padding: 1.25rem; }
  .hp-pkg-card.featured .hp-pkg-col { border-color: rgba(255,255,255,.07); }
  .hp-pkg-col:last-child { border-bottom: none; }
  .hp-pkg-footer { flex-direction: column; align-items: flex-start; }
  /* audit section — fix overflow */
  .audit-section { overflow: hidden; }
  .audit-form { box-sizing: border-box; padding: 1.5rem; }
  /* entity block — prevent text overflow */
  .entity-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .entity-desc { font-size: .92rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  /* about-panel-sand stats stay in a row on small screens */
  .about-panel-sand { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1.5rem; padding: 1.5rem; }
  .about-panel-stat { min-width: 80px; }
  .about-panel-stat strong { font-size: 2rem; }
  /* audit title — prevent overflow */
  .audit-title { font-size: clamp(1.6rem, 5vw, 2.4rem); word-break: break-word; }
}

/* ── OVERFLOW PROTECTION (mobile) ──────────────────
   Prevents grid/flex children from overflowing their
   cells on narrow screens without breaking layout.
─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container > * { min-width: 0; }
  h1, h2, h3, h4, p, li, td, span {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  section, header, footer { overflow-x: hidden; }
}
