/* ================================================================
   BASE.CSS — Shared Design System | Star City Painters
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --navy:       #0B2A4A;
  --navy-mid:   #0d3358;
  --gold:       #D4A017;
  --gold-dark:  #b8881a;
  --slate:      #6E7B87;
  --light-gray: #D9D9D9;
  --off-white:  #F7F8F9;
  --white:      #FFFFFF;
  --body-text:  #3a4a56;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Montserrat', system-ui, sans-serif;

  --max-width:  1200px;
  --radius:     6px;
  --radius-lg:  12px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
  --shadow-sm:  0 2px 8px rgba(11,42,74,0.07);
  --shadow-md:  0 4px 24px rgba(11,42,74,0.12);
  --shadow-lg:  0 8px 40px rgba(11,42,74,0.16);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  { font-family: var(--font-sans); color: var(--body-text); background: var(--white); line-height: 1.65; }
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Skip Link (a11y) ──────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--gold); color: var(--navy);
  padding: 0.5rem 1rem; border-radius: 0 0 4px 4px;
  font-weight: 700; z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Container ─────────────────────────────────────────────── */
.container    { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container-sm { width: 100%; max-width: 780px;            margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.8rem 2rem; border-radius: var(--radius);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  white-space: nowrap; text-align: center; line-height: 1;
}
.btn-lg  { padding: 1rem 2.5rem; font-size: 0.95rem; }
.btn-sm  { padding: 0.55rem 1.25rem; font-size: 0.78rem; }

.btn-gold  { background: var(--gold);  color: var(--navy);  border-color: var(--gold); }
.btn-gold:hover  { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(212,160,23,0.35); }

.btn-navy  { background: var(--navy);  color: var(--white); border-color: var(--navy); }
.btn-navy:hover  { background: var(--navy-mid); border-color: var(--navy-mid); transform: translateY(-2px); }

.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }

.btn-outline-navy  { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover  { background: var(--navy); color: var(--white); }

.btn-outline-gold  { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline-gold:hover  { background: var(--gold); color: var(--navy); }

/* ── Typography Helpers ────────────────────────────────────── */
.eyebrow {
  display: inline-block; font-family: var(--font-sans); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
}
.eyebrow-slate { color: var(--slate); }
.eyebrow-white { color: rgba(255,255,255,0.75); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700; line-height: 1.18; color: var(--navy);
}
.section-title-white { color: var(--white); }

.section-sub {
  font-size: 1.05rem; color: var(--slate); line-height: 1.72; max-width: 560px;
}
.section-sub-white { color: rgba(255,255,255,0.82); }

.gold-rule  { display: block; width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin: 1rem 0; }
.gold-rule-center { margin-left: auto; margin-right: auto; }

/* ── Image Placeholders ────────────────────────────────────── */
.img-ph {
  background: linear-gradient(145deg, #c9d5dc 0%, #b0bfc9 100%);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.6rem; width: 100%;
  color: #5a6d79; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center; padding: 2rem;
}
.img-ph-dark {
  background: linear-gradient(145deg, #1a3a56 0%, #0d2a42 100%);
  color: rgba(255,255,255,0.35);
}
.img-ph-warm {
  background: linear-gradient(145deg, #d0cbbf 0%, #b8b0a0 100%);
  color: #6b5f50;
}

/* ── Stars ─────────────────────────────────────────────────── */
.stars { color: var(--gold); letter-spacing: 0.1em; line-height: 1; }

/* ── Section spacing ───────────────────────────────────────── */
.section-pad    { padding: 5rem 0; }
.section-pad-sm { padding: 3.5rem 0; }
.section-pad-lg { padding: 7rem 0; }

/* ── Text Alignment ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-center .section-sub, .text-center .gold-rule { margin-left: auto; margin-right: auto; }

/* ── Review Card ───────────────────────────────────────────── */
.review-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-md);
}
.review-card .reviewer-name { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.review-card .review-meta   { font-size: 0.75rem; color: var(--slate); margin-top: 0.15rem; }
.review-card .review-text   { font-size: 0.93rem; color: var(--body-text); line-height: 1.7; margin-top: 0.85rem; }

/* ── Service Card ──────────────────────────────────────────── */
.service-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ── Trust Bar Item ────────────────────────────────────────── */
.trust-item { display: flex; align-items: center; gap: 0.75rem; }
.trust-item-icon { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.trust-item strong { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.3; }
.trust-item span   { font-size: 0.75rem; color: var(--slate); }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-item       { border-bottom: 1px solid var(--light-gray); }
.faq-question   {
  width: 100%; text-align: left; background: none; border: none;
  cursor: pointer; padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  color: var(--navy); gap: 1rem; line-height: 1.4;
}
.faq-icon { flex-shrink: 0; font-size: 1.5rem; font-weight: 300; line-height: 1; transition: transform var(--transition); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.38s ease; }
.faq-answer p   { padding: 0 0 1.25rem; color: var(--body-text); font-size: 0.95rem; line-height: 1.72; }

/* ── Form Styles ───────────────────────────────────────────── */
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--slate);
}
.form-field input, .form-field select, .form-field textarea {
  padding: 0.75rem 1rem; border: 1.5px solid var(--light-gray);
  border-radius: var(--radius); font-size: 0.95rem;
  background: var(--white); color: var(--navy); transition: border-color 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--navy);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-success {
  margin-top: 1rem; padding: 1rem 1.25rem;
  background: #d4edda; color: #155724;
  border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
}

/* ── Mobile Nav ────────────────────────────────────────────── */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.5rem; gap: 5px; flex-direction: column;
}
.nav-toggle .bar {
  display: block; width: 24px; height: 2px;
  background: currentColor; border-radius: 2px; transition: var(--transition);
}
@media (max-width: 768px) { .nav-toggle { display: flex; } }

/* ── Scroll Animations ─────────────────────────────────────── */
.anim { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.anim.anim-in { opacity: 1; transform: translateY(0); }
.anim-d1 { transition-delay: 0.1s; }
.anim-d2 { transition-delay: 0.2s; }
.anim-d3 { transition-delay: 0.3s; }
.anim-d4 { transition-delay: 0.4s; }

/* ── Grid Utilities ────────────────────────────────────────── */
.g2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media (max-width: 900px) {
  .g2 { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: repeat(2,1fr); }
  .g4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .g3, .g4 { grid-template-columns: 1fr; }
  .section-pad    { padding: 3.5rem 0; }
  .section-pad-lg { padding: 5rem 0; }
}
