/* ============================================================
   California Certified Interpreters – Shared Stylesheet
   Modern, professional design
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ── Design Tokens ── */
:root {
  --navy:       #0d2b4e;
  --navy-mid:   #1a3a5c;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --white:      #ffffff;
  --off-white:  #f7f8fa;
  --light-gray: #eef0f4;
  --text-dark:  #1c2b3a;
  --text-mid:   #4a5568;
  --text-light: #718096;
  --radius:     8px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.16);
  --transition: .25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-mid); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout Helpers ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--gray { background: var(--off-white); }

.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

.section-title { margin-bottom: .75rem; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.divider {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 2rem;
  border-radius: 2px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 4px 16px rgba(201,168,76,.35);
}

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

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

/* ── Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.nav-logo-text .brand-sub {
  font-size: .7rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  padding: .5rem .85rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.nav-links .btn-primary {
  font-size: .88rem;
  padding: .5rem 1.1rem;
  margin-left: .5rem;
}

.nav-contact-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}

.nav-contact-info a {
  color: var(--gold-light);
  font-weight: 500;
}

.nav-contact-info a:hover { color: var(--white); }

.nav-topbar {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: .35rem 0;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0f3460 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .18;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,43,78,.9) 0%, rgba(13,43,78,.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 2.25rem;
  max-width: 560px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
}

.hero-badge svg {
  flex-shrink: 0;
  color: var(--gold);
}

/* ── Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.75rem;
  border: 1px solid var(--light-gray);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: .6rem;
}

.card p { font-size: .95rem; }

/* ── Two-col section ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col.reverse .col-img { order: -1; }

.col-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.col-text .section-label { display: block; }
.col-text h2 { margin-bottom: 1rem; }
.col-text p { margin-bottom: 1.25rem; }

/* ── Feature List ── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 1.25rem 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .95rem;
  color: var(--text-mid);
}

.feature-list li svg {
  flex-shrink: 0;
  margin-top: .2rem;
  color: var(--gold);
}

/* ── Stats strip ── */
.stats-strip {
  background: var(--navy);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .4rem;
}

.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Services list page ── */
.service-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: box-shadow var(--transition);
}

.service-item:hover { box-shadow: var(--shadow-md); }

.service-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Translation doc list ── */
.doc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.chip {
  background: var(--light-gray);
  color: var(--text-dark);
  border-radius: 99px;
  padding: .3rem .9rem;
  font-size: .85rem;
  font-weight: 500;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), #0f3460);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner h2 { color: var(--white); position: relative; margin-bottom: .75rem; }
.cta-banner p  { color: rgba(255,255,255,.75); position: relative; margin-bottom: 2rem; font-size: 1.05rem; }
.cta-banner .btn { position: relative; }

/* ── Forms ── */
.form-section {
  max-width: 640px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group.full { grid-column: 1 / -1; }

label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dark);
}

input, select, textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid #d2d8e0;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,43,78,.12);
}

textarea { resize: vertical; min-height: 130px; }

.form-submit {
  margin-top: 1.75rem;
  text-align: center;
}

.form-submit .btn { min-width: 180px; justify-content: center; }

.success-msg {
  display: none;
  background: #e6f4ea;
  color: #1e6f3c;
  border: 1px solid #a8d5b5;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  text-align: center;
  font-weight: 500;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}

.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p  { color: rgba(255,255,255,.75); margin-top: .75rem; font-size: 1.05rem; }

/* ── Contact info cards ── */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.contact-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--gold);
}

.contact-card h4 { font-size: 1rem; margin-bottom: .35rem; }
.contact-card p, .contact-card a { font-size: .95rem; color: var(--text-mid); }
.contact-card a:hover { color: var(--navy); text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 3.5rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .nav-logo { margin-bottom: 1rem; }

.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.6); max-width: 340px; }

.footer-col h4 {
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }

.footer-col ul a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--white); }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
  display: flex;
  gap: .4rem;
  align-items: center;
  justify-content: center;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--gold); }

/* ── Testimonial / Quote ── */
.testimonial {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  padding: 2rem;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: .5rem;
  left: 1.25rem;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--gold);
  opacity: .4;
  line-height: 1;
}
.testimonial p { color: var(--text-mid); font-style: italic; margin-bottom: .75rem; }
.testimonial-author { font-weight: 600; font-size: .9rem; color: var(--navy); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .two-col.reverse .col-img { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .section { padding: 3.5rem 0; }
  .hero { min-height: 70vh; }

  .nav-links { display: none; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--navy-mid); padding: 1rem 1.5rem 1.5rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-topbar { display: none; }

  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
}
