/* ============================================================
   SUN SOL SEO — main.css
   Shared styles for all pages
   ============================================================ */

/* ── GOOGLE FONTS are loaded in each HTML <head> ── */

/* ── CSS VARIABLES ─────────────────────────────── */
:root {
  --sand:    #f5ede0;
  --cream:   #fdf8f2;
  --ink:     #1a1612;
  --taupe:   #8c7b6b;
  --sun:     #c8922a;
  --sun-lt:  #e8b85a;
  --sea:     #2a6b7c;
  --sea-lt:  #3d8fa3;
  --sea-dk:  #1a3a45;
  --white:   #ffffff;

  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'DM Sans', system-ui, sans-serif;

  --radius: 3px;
  --gutter: clamp(2rem, 5vw, 6rem);
  --max: 1280px;
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* global — no horizontal scroll ever */
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* global — no horizontal scroll ever */
  /* Establish containing block so fixed elements respect viewport */
  position: relative;
}

/* All form elements and images stay within their container */
input, select, textarea, button { max-width: 100%; box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

/* ── UTILITY ────────────────────────────────────── */
.container {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
  /* Safety: never wider than viewport */
  max-width: 100%;
  box-sizing: border-box;
}

.eyebrow {
  font-family: var(--f-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sun);
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 3.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--sea); }

/* ── NAVIGATION ─────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253,248,242,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(140,123,107,.15);
  overflow: hidden; /* prevent nav from being wider than viewport */
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  min-width: 0; /* allow flex children to shrink */
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 42px; width: auto; display: block; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .9rem; font-weight: 400; letter-spacing: .04em;
  color: var(--taupe); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-cta {
  background: var(--sea);
  color: var(--white) !important;
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--sea-lt) !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  width: 36px; height: 36px;
}
.nav-hamburger span {
  display: block; height: 2px; background: var(--ink);
  border-radius: 2px; transition: all .3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  overflow-x: hidden; /* prevent drawer content from overflowing */
  background: rgba(253,248,242,.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(140,123,107,.15);
  padding: 1.5rem var(--gutter) 2rem;
  flex-direction: column; gap: 1rem;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  font-size: 1rem; font-weight: 400; color: var(--taupe);
  text-decoration: none; padding: .6rem 0;
  border-bottom: 1px solid rgba(140,123,107,.1);
  transition: color .2s;
}
.mobile-drawer a:hover { color: var(--ink); }
.mobile-drawer .mob-cta {
  display: inline-block; text-align: center;
  background: var(--sea); color: var(--white) !important;
  padding: .85rem 1.5rem; border-radius: var(--radius);
  font-weight: 500; margin-top: .5rem; border: none;
}

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .95rem 2.2rem;
  border-radius: var(--radius);
  font-size: .95rem; font-weight: 500; letter-spacing: .03em;
  text-decoration: none;
  transition: all .22s;
  cursor: pointer;
  border: none;
  font-family: var(--f-body);
}
.btn-primary { background: var(--sun); color: var(--white); }
.btn-primary:hover { background: var(--sun-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,146,42,.3); }
.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); }
.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); }

/* ── FAQ ACCORDION ──────────────────────────────── */
.faq-item {
  background: var(--cream);
  border: 1px solid rgba(140,123,107,.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.75rem;
  font-family: var(--f-display);
  font-size: 1.15rem; font-weight: 600;
  color: var(--ink);
  transition: background .2s;
}
.faq-q:hover { background: rgba(200,146,42,.04); }
.faq-icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--sun); transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  font-size: .97rem; color: var(--taupe); line-height: 1.8;
  padding: 0 1.75rem;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 1.75rem 1.5rem;
}

/* ── FORMS ──────────────────────────────────────── */
.form-field {
  display: flex; flex-direction: column; gap: .4rem;
  margin-bottom: 1rem;
}
.form-field label {
  font-size: .78rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  color: var(--white);
  font-family: var(--f-body);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.form-field input:focus,
.form-field select:focus { border-color: rgba(200,146,42,.5); }
.form-field input::placeholder { color: rgba(255,255,255,.25); }
.form-field select option { background: #1a1612; }
.form-submit {
  width: 100%;
  background: var(--sun);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 1rem;
  font-family: var(--f-body);
  font-size: .9rem; font-weight: 500; letter-spacing: .05em;
  cursor: pointer;
  transition: background .2s, transform .2s;
  margin-top: .5rem;
}
.form-submit:hover { background: var(--sun-lt); transform: translateY(-2px); }

/* ── SERVICE LIST (shared by homepage + services page) ── */
.service-badge {
  display: inline-block;
  background: var(--sun);
  color: var(--white);
  font-size: .7rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}
.service-list {
  list-style: none;
  display: flex; flex-direction: column; gap: .7rem;
  margin-bottom: 2rem;
}
.service-list li {
  display: flex; gap: .65rem;
  font-size: .96rem; color: var(--ink);
}
.service-list li::before { content: '→'; color: var(--sun); flex-shrink: 0; }
.btn-service {
  display: inline-block;
  font-size: .92rem; font-weight: 500;
  text-decoration: none;
  color: var(--sea);
  border-bottom: 1px solid var(--sea);
  padding-bottom: 2px;
  transition: border-color .2s;
}

/* ── FOOTER ─────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
  padding: 60px var(--gutter) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: .85rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: .78rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col li a {
  color: rgba(255,255,255,.45); font-size: .85rem; text-decoration: none;
  transition: color .2s;
}
.footer-col li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: .78rem;
}
.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SHARED RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 480px) {
  :root { --gutter: 1.2rem; }
  .section-title { font-size: 1.85rem; }
}
