/*
Theme Name: Pearl Tech Africa
Theme URI: https://pearltechafrica.site
Author: Pearl Tech Africa
Author URI: https://pearltechafrica.site
Description: Custom one-page theme for Pearl Tech Africa — full-spectrum ICT services covering device repair, networking, web & software development, website management, digital marketing, data analysis, cybersecurity and IT consulting.
Version: 1.4.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pearltechafrica
*/

/* ==========================================================================
   Pearl Tech Africa — stylesheet
   ========================================================================== */

:root {
  --navy: #0B3D66;
  --navy-2: #082C4A;
  --navy-soft: #0F3557;
  --pearl: #F4F7F9;
  --white: #FFFFFF;
  --gold: #17B8C4;
  --gold-dark: #0E8C96;
  --maroon: #6E1E3A;
  --maroon-dark: #551530;
  --maroon-light: #F5E9EE;
  --teal: #1E7A6E;
  --teal-light: #E4F1EE;
  --text: #1A2B3C;
  --text-light: #5B6B7A;
  --border: #DCE3E8;
  --shadow: 0 20px 45px -20px rgba(11, 61, 102, 0.25);
  --radius: 14px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 16px; color: var(--text-light); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 10px;
}

.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.light h2, .section-head.light .eyebrow { color: var(--pearl); }
.section-head.light .eyebrow { color: var(--gold); }
.section-sub { font-size: 1.02rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(23,184,196,0.45); }
.btn-outline { background: transparent; border-color: rgba(247,245,239,0.35); color: inherit; }
.hero .btn-outline { color: var(--pearl); }
.btn-outline:hover { background: rgba(247,245,239,0.08); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px -12px rgba(11,61,102,0.18); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
/* Brand logo (real logo file) */
.brand { display: flex; align-items: center; }
.brand-logo { height: 56px; width: auto; display: block; }
.brand-logo-plate { display: inline-flex; align-items: center; background: var(--white); padding: 12px 18px; border-radius: 10px; }
.brand-logo-plate .brand-logo { height: 44px; }

.nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav a { color: var(--navy); opacity: 0.75; font-size: 0.9rem; font-weight: 500; white-space: nowrap; transition: color 0.15s, opacity 0.15s; }
.nav a:hover, .nav a.is-active { color: var(--gold-dark); opacity: 1; }

/* Page banner (used on every page except Home) */
.page-banner { background: var(--navy); padding: 64px 0 54px; position: relative; overflow: hidden; }
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(23,184,196,0.18), transparent 50%);
}
.page-banner .container { position: relative; }
.page-banner .eyebrow { color: var(--gold); }
.page-banner h1 { color: var(--pearl); margin-bottom: 12px; }
.page-banner .section-sub { color: rgba(247,245,239,0.72); max-width: 620px; margin: 0; }
.page-banner.has-image { background-size: cover; background-position: center; }
.page-banner.has-image::before { background: linear-gradient(120deg, rgba(11,61,102,0.93), rgba(11,61,102,0.8)); }

/* About photo */
.about-photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------- Feature blocks (alternating photo + detail panels) ---------------- */
.feature-block { padding: 84px 0; }
.feature-block.alt { background: var(--pearl); }
.feature-block .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.feature-block .about-photo { aspect-ratio: 4 / 3; }
.feature-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.feature-meta span { background: var(--teal-light); color: var(--teal); font-size: 0.74rem; font-weight: 700; padding: 6px 13px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; }
.feature-checklist { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 11px; }
.feature-checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--navy); font-size: 0.95rem; }
.feature-checklist .check { color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* ---------------- Stats bar ---------------- */
.stats-bar { background: var(--navy); padding: 64px 0; }
.stats-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stats-bar strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--gold); }
.stats-bar span { color: rgba(247,245,239,0.68); font-size: 0.88rem; }

/* ---------------- Values grid ---------------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; }
.value-card p { font-size: 0.92rem; margin: 0; }

/* ---------------- Industries strip ---------------- */
.industries-strip { background: var(--pearl); padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.industries-strip .section-head { margin: 0 auto 28px; text-align: center; }
.industry-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.industry-chip { background: var(--white); border: 1px solid var(--border); padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 0.88rem; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.industry-chip svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }

@media (max-width: 980px) {
  .feature-block .container { grid-template-columns: 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
}

/* ---------------- News / blog grid ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-thumb { height: 190px; overflow: hidden; background: var(--pearl); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-thumb.placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.news-thumb.placeholder svg { width: 40px; height: 40px; color: rgba(247,245,239,0.35); }
.news-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-meta { font-size: 0.74rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.news-meta .news-cat { color: var(--gold-dark); font-weight: 700; }
.news-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.news-card h3 a { color: var(--navy); }
.news-card h3 a:hover { color: var(--gold-dark); }
.news-card p { font-size: 0.92rem; margin: 0 0 14px; flex: 1; }
.news-card .read-more { font-weight: 700; font-size: 0.85rem; color: var(--gold-dark); }

.pagination-row { display: flex; justify-content: center; gap: 10px; margin-top: 50px; flex-wrap: wrap; }
.pagination-row a, .pagination-row span { padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px; font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.pagination-row span.current { background: var(--navy); color: var(--pearl); border-color: var(--navy); }
.pagination-row a:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ---------------- Single post ---------------- */
.post-hero { background: var(--navy); padding: 70px 0 46px; position: relative; overflow: hidden; }
.post-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 0%, rgba(23,184,196,0.18), transparent 50%); }
.post-hero .container { position: relative; max-width: 800px; }
.post-hero .post-meta { color: rgba(247,245,239,0.65); font-size: 0.85rem; margin-bottom: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.post-hero .post-meta .news-cat { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.post-hero h1 { color: var(--pearl); margin-bottom: 0; }

.post-featured-img { max-width: 900px; margin: -40px auto 0; padding: 0 24px; position: relative; }
.post-featured-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

.post-content-wrap { padding: 70px 0 30px; }
.post-content { max-width: 720px; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.post-content h2 { margin-top: 42px; }
.post-content h3 { margin-top: 30px; }
.post-content p { color: var(--text); }
.post-content a { color: var(--gold-dark); text-decoration: underline; }
.post-content img { border-radius: 12px; margin: 24px 0; max-width: 100%; }
.post-content ul, .post-content ol { padding-left: 22px; margin: 0 0 16px; color: var(--text); }
.post-content blockquote { border-left: 3px solid var(--gold); margin: 24px 0; padding: 4px 0 4px 20px; color: var(--text-light); font-style: italic; }

.post-footer-nav { max-width: 720px; margin: 40px auto 0; padding: 24px 24px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; }
.post-footer-nav a { font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.post-footer-nav a:hover { color: var(--gold-dark); }

@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ---------------- Recent News slider (homepage only) ---------------- */
.news-slider-section { padding: 100px 0; background: var(--pearl); }
.news-slider-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.news-slider-controls { display: flex; gap: 10px; flex-shrink: 0; }
.slider-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.slider-arrow:hover { background: var(--navy); border-color: var(--navy); color: var(--pearl); }

.news-slider-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.news-slider-track::-webkit-scrollbar { height: 6px; }
.news-slider-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.news-slide {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

@media (max-width: 760px) {
  .news-slide { flex-basis: 78vw; }
  .news-slider-head { align-items: flex-start; }
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 90px 0 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(23,184,196,0.2), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(30,122,110,0.25), transparent 45%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-content .lead { color: rgba(247,245,239,0.78); font-size: 1.08rem; max-width: 540px; }
.hero-content h1 { color: var(--pearl); }
.hero-content .eyebrow { color: var(--gold); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 44px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 32px; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--gold); }
.hero-stats span { font-size: 0.82rem; color: rgba(247,245,239,0.6); }
.hero-visual { display: flex; justify-content: center; }
.hero-graphic { width: 100%; max-width: 380px; }

/* Trust strip */
.trust-strip { background: var(--pearl); border-bottom: 1px solid var(--border); padding: 18px 0; }
.trust-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.trust-inner > span:first-child { font-weight: 600; font-size: 0.82rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; }
.trust-items { display: flex; gap: 24px; flex-wrap: wrap; }
.trust-items span { font-size: 0.88rem; color: var(--navy); font-weight: 500; opacity: 0.75; }

/* ---------------- Services ---------------- */
.services { padding: 100px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: 12px;
  margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card p { font-size: 0.92rem; margin: 0; }

/* ---------------- Why / About ---------------- */
.why { padding: 100px 0; background: var(--pearl); }
.why-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.why-visual { position: relative; height: 360px; }
.why-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 230px;
}
.why-card svg { width: 30px; height: 30px; color: var(--gold-dark); flex-shrink: 0; }
.why-card-1 svg { color: var(--gold); }
.why-card strong { display: block; font-family: var(--font-head); color: var(--navy); }
.why-card span { font-size: 0.8rem; color: var(--text-light); }
.why-card-1 { top: 10%; left: 4%; background: var(--navy); }
.why-card-1 strong, .why-card-1 span { color: var(--pearl); }
.why-card-2 { bottom: 8%; right: 2%; }
.why-visual::before {
  content: "";
  position: absolute;
  inset: 10% 20%;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  border-radius: 24px;
  opacity: 0.18;
}
.feature-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--navy); }
.check { color: var(--teal); font-weight: 700; }

/* ---------------- Process ---------------- */
.process { padding: 100px 0; background: var(--navy); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-step { position: relative; padding: 28px 22px; border: 1px solid rgba(247,245,239,0.12); border-radius: var(--radius); }
.step-num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--gold); opacity: 0.9; }
.process-step h3 { color: var(--pearl); margin-top: 10px; }
.process-step p { color: rgba(247,245,239,0.6); font-size: 0.9rem; margin: 0; }

/* ---------------- Portfolio ---------------- */
.portfolio { padding: 100px 0; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.portfolio-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.portfolio-thumb { position: relative; height: 190px; display: flex; align-items: flex-end; padding: 18px; overflow: hidden; }
.portfolio-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.portfolio-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,61,102,0) 35%, rgba(11,61,102,0.85) 100%); z-index: 1; }
.portfolio-thumb span { position: relative; z-index: 2; color: var(--white); font-weight: 600; font-size: 0.95rem; text-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.thumb-1 { background: linear-gradient(135deg, #1E7A6E, #0F1B2D); }
.thumb-2 { background: linear-gradient(135deg, #D8A63E, #16233A); }
.thumb-3 { background: linear-gradient(135deg, #0F1B2D, #1E7A6E 130%); }
.portfolio-body { padding: 22px; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); background: var(--teal-light); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.portfolio-body p { font-size: 0.9rem; margin: 0; }

/* ---------------- Testimonials ---------------- */
.testimonials { padding: 100px 0; background: var(--navy-2); }
.testimonial-slider { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial-track { position: relative; min-height: 190px; }
.testimonial { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; margin: 0; }
.testimonial.active { opacity: 1; position: relative; }
.testimonial p { font-size: 1.2rem; color: var(--pearl); font-style: italic; margin-bottom: 20px; }
.testimonial footer strong { display: block; color: var(--gold); font-family: var(--font-head); }
.testimonial footer span { font-size: 0.85rem; color: rgba(247,245,239,0.55); }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.testimonial-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(247,245,239,0.25); cursor: pointer; padding: 0; }
.testimonial-dots button.active { background: var(--gold); }

/* ---------------- CTA banner ---------------- */
.cta-banner { background: linear-gradient(120deg, var(--teal), var(--navy)); padding: 70px 0; }
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { color: var(--white); }
.cta-inner p { color: rgba(247,245,239,0.8); margin-bottom: 30px; }

/* ---------------- FAQ ---------------- */
.faq { padding: 100px 0; }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-list { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-question {
  width: 100%;
  text-align: left;
  background: var(--pearl);
  border: none;
  padding: 18px 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-icon { color: var(--gold-dark); font-size: 1.3rem; transition: transform 0.2s ease; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; background: var(--white); }
.faq-answer p { padding: 0 22px; margin: 18px 0; font-size: 0.92rem; }

/* ---------------- Contact ---------------- */
.contact { padding: 100px 0; background: var(--pearl); }
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list strong { font-family: var(--font-head); color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-list span { color: var(--text-light); }
.contact-form { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--pearl);
  color: var(--text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.form-note { margin: 14px 0 0; font-size: 0.88rem; text-align: center; color: var(--teal); min-height: 1.2em; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(247,245,239,0.1); }
.footer-brand p { color: rgba(247,245,239,0.55); font-size: 0.9rem; margin: 16px 0 20px; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(247,245,239,0.08); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--pearl); }
.social-links a:hover { background: var(--gold); color: var(--navy); }
.footer-col h4 { color: var(--pearl); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(247,245,239,0.6); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { color: rgba(247,245,239,0.55); font-size: 0.88rem; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(247,245,239,0.15); background: rgba(247,245,239,0.06); color: var(--pearl); font-size: 0.85rem; }
.newsletter-form button { background: var(--gold); color: var(--navy); border: none; border-radius: 8px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
.footer-bottom-inner { display: flex; justify-content: space-between; padding: 22px 24px; font-size: 0.82rem; color: rgba(247,245,239,0.45); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .why-inner, .contact-inner { grid-template-columns: 1fr; }
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Nav collapses to the hamburger earlier than the rest of the layout —
   7 links + logo + CTA need more breathing room than a phone breakpoint. */
@media (max-width: 1050px) {
  .nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px -12px rgba(11,61,102,0.15); padding: 20px 24px; transform: translateY(-130%); transition: transform 0.25s ease; }
  .nav.open { transform: translateY(0); }
  .nav ul { flex-direction: column; gap: 18px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 760px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .portfolio-grid, .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .why-visual { height: 280px; }
  .why-card { width: 190px; padding: 14px 16px; }
}
