/* ==========================================================================
   AnyTask Professionals — styles.css
   Rebuilt from SPEC.md (design tokens §2, sections §4, interactions §5)
   ========================================================================== */

:root {
  --navy-dark: #0F2A4A;
  --navy: #1F4E79;
  --navy-light: #3E76A8;
  --white: #FFFFFF;
  --black: #181818;
  --gray-light: #F4F6F8;
  --gray-border: #E1E5EA;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
  --container: 1160px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 42, 74, 0.10);
}

/* Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-light); }
h1, h2, h3 { font-family: var(--font-heading); color: var(--navy-dark); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { margin: 0 0 0.35em; color: var(--navy-dark); }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { display: block; width: 100%; }

/* Top bar ------------------------------------------------------------- */
.topbar { background: var(--navy-dark); color: var(--white); font-size: 0.88rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--white); }
.topbar a:hover { color: #CFE0F0; }
.topbar-cta { font-weight: 600; text-decoration: underline; }

/* Header / nav -------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s;
}
.site-header.is-stuck { box-shadow: 0 2px 14px rgba(15, 42, 74, 0.12); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
/* Logo: swap assets/images/logo.svg for the real file; height is capped so any
   reasonably proportioned logo (wordmark or mark+text) fits the header. */
.logo { display: flex; align-items: center; font-family: var(--font-heading); font-size: 1.45rem; font-weight: 700; color: var(--navy-dark); white-space: nowrap; }
.logo img { height: 52px; width: auto; max-width: 280px; object-fit: contain; }
.logo span { color: var(--navy-light); }
.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--black); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 700; color: var(--navy-dark); white-space: nowrap; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 3px; background: var(--navy-dark); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero ---------------------------------------------------------------- */
.hero {
  background:
    linear-gradient(rgba(15, 42, 74, 0.88), rgba(15, 42, 74, 0.88)),
    var(--navy-dark) center/cover no-repeat;
  color: var(--white);
  padding: 72px 0;
}
.hero .container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 em { color: #A9C6E4; font-style: italic; }
.hero-eyebrow, .section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-light);
  margin-bottom: 12px;
}
.hero-eyebrow { color: #A9C6E4; }
.hero .lead { font-size: 1.05rem; color: #E8EEF5; max-width: 56ch; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero .btn-outline { border-color: var(--white); color: var(--white); }
.hero .btn-outline:hover { background: var(--white); color: var(--navy-dark); }

/* Lead form card ------------------------------------------------------ */
.lead-form {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.lead-form .offer {
  display: inline-block;
  background: var(--gray-light);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.lead-form h3 { margin-bottom: 14px; }
.lead-form label { display: block; font-size: 0.82rem; font-weight: 600; margin: 12px 0 4px; color: var(--navy-dark); }
.lead-form input, .lead-form select, .contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--black);
}
.lead-form input:focus, .lead-form select:focus,
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--navy-light);
  border-color: var(--navy-light);
}
.lead-form .btn { margin-top: 18px; }

/* Sections ------------------------------------------------------------ */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-light); }
.section-heading { margin-bottom: 36px; }
.section-heading.center, .center { text-align: center; }

/* Service cards ------------------------------------------------------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card .icon { font-size: 1.9rem; margin-bottom: 12px; }
.service-card a { font-weight: 600; font-size: 0.92rem; }
.service-card img { border-radius: 8px; margin-bottom: 16px; }

/* Split (about) ------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* Trust badges -------------------------------------------------------- */
.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--navy-dark);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy-light); }

/* Feature grid (Why Choose Us) ---------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.feature-item { text-align: center; padding: 18px 10px; }
.feature-item .icon {
  width: 54px; height: 54px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-light);
  color: var(--navy);
  border-radius: 50%;
  font-size: 1.3rem;
}
.feature-item h4 { font-size: 0.98rem; }
.feature-item p { font-size: 0.86rem; color: #4A5561; margin: 0; }

/* Gallery ------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 16px;
}
.gallery-grid a { overflow: hidden; border-radius: 8px; display: block; }
.gallery-grid a.tall { grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-cta { text-align: center; margin-top: 34px; }

/* Lightbox ------------------------------------------------------------ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 74, 0.92);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute;
  top: 18px; right: 26px;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

/* Testimonials -------------------------------------------------------- */
.testimonial-slider { text-align: center; max-width: 780px; position: relative; }
.testimonial-slide { display: none; }
.testimonial-slide.is-active { display: block; }
.stars { color: #E8A33D; font-size: 1.2rem; letter-spacing: 3px; margin-bottom: 14px; }
.testimonial-slide blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--navy-dark);
  margin: 0 0 16px;
}
.testimonial-slide cite { font-style: normal; font-weight: 600; color: #4A5561; font-size: 0.92rem; }
.testimonial-controls { margin-top: 26px; display: flex; justify-content: center; gap: 12px; }
.testimonial-controls button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gray-border);
  background: var(--white);
  color: var(--navy);
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.testimonial-controls button:hover { background: var(--navy); color: var(--white); }

/* Blog cards ---------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-card img { height: 180px; width: 100%; object-fit: cover; }
.blog-body { padding: 20px 22px 24px; }
.blog-body .eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy-light); font-weight: 700; }
.blog-body h3 { font-size: 1.08rem; margin: 8px 0 8px; }
.blog-body p { font-size: 0.9rem; color: #4A5561; }
.readmore { font-weight: 600; font-size: 0.9rem; }

/* CTA banner ---------------------------------------------------------- */
.cta-banner { background: var(--navy-dark); color: var(--white); text-align: center; padding: 64px 0; }
.cta-banner h2 { color: var(--white); margin-bottom: 22px; }

/* Page header (subpages) ---------------------------------------------- */
.page-header { background: var(--navy-dark); color: var(--white); padding: 52px 0; }
.page-header h1 { color: var(--white); margin-bottom: 6px; }
.breadcrumb { color: #A9C6E4; font-size: 0.88rem; }

/* Contact page -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info-list { list-style: none; margin: 0 0 24px; padding: 0; }
.contact-info-list li { margin-bottom: 14px; padding-left: 4px; }
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-form label { display: block; font-size: 0.82rem; font-weight: 600; margin: 12px 0 4px; color: var(--navy-dark); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { margin-top: 18px; }

/* Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-dark); color: #C9D6E4; padding: 64px 0 28px; font-size: 0.92rem; }
.site-footer a { color: #C9D6E4; }
.site-footer a:hover { color: var(--white); }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 42px; width: auto; max-width: 230px; object-fit: contain; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); margin-bottom: 14px; font-size: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-map iframe { width: 100%; border: 0; border-radius: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
}

/* Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .service-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
  .main-nav li a { display: block; padding: 12px 22px; }
  .service-grid, .blog-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid a.tall { grid-row: auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-cta { display: none; }
  .logo img { height: 40px; max-width: 200px; }
  .section { padding: 52px 0; }
  .hero { padding: 52px 0; }
  .header-actions .btn { display: none; }
}
