/* ==========================================================================
   DETAILING BY DAVE — Shared Stylesheet
   ========================================================================== */

:root {
  --color-navy: #001524;
  --color-teal: #15616d;
  --color-cream: #ffecd1;
  --color-orange: #ff7d00;
  --color-rust: #78290f;

  --color-text-dark: #10222a;
  --color-text-light: #ffecd1;
  --color-muted: #4d6a72;

  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(0, 21, 36, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 21, 36, 0.12);
  --shadow-lg: 0 16px 40px rgba(0, 21, 36, 0.18);

  --container-width: 1200px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: #ffffff;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-navy);
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

p { color: var(--color-muted); }

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

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-cream);
}

.section-dark {
  background: var(--color-navy);
  color: var(--color-text-light);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-text-light);
}

.section-dark p {
  color: #c9d8dc;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 12px;
}

.section-intro h2 {
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-orange);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #e56f00;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-on-dark {
  color: var(--color-text-light);
  border-color: var(--color-text-light);
}

.btn-on-dark:hover {
  background: var(--color-text-light);
  color: var(--color-navy);
}

.btn-block { width: 100%; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(0, 21, 36, 0.97);
  backdrop-filter: blur(6px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffffff;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--color-orange);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav ul {
  display: flex;
  gap: 4px;
}

.main-nav a:not(.btn) {
  display: inline-block;
  padding: 10px 16px;
  color: #dfe9ec;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:not(.btn):hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 600;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.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 {
  position: relative;
  color: #ffffff;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 21, 36, 0.92) 30%, rgba(0, 21, 36, 0.6) 75%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 80px 0;
}

.hero h1 { color: #ffffff; margin-bottom: 20px; }

.hero-sub {
  font-size: 1.15rem;
  color: #dbe7ea;
  margin-bottom: 16px;
  max-width: 560px;
}

.hero-value {
  color: var(--color-cream);
  font-weight: 600;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Services
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 { margin-bottom: 10px; }

.service-card-body p { flex: 1; margin-bottom: 0; font-size: 0.96rem; }

/* ==========================================================================
   Industries
   ========================================================================== */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industry-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 220px;
  box-shadow: var(--shadow-sm);
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 21, 36, 0.92) 10%, rgba(0, 21, 36, 0.15) 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.industry-card-overlay h3 { color: #ffffff; margin-bottom: 6px; font-size: 1.1rem; }

.industry-card-overlay p { color: #dbe7ea; font-size: 0.88rem; margin-bottom: 0; }

/* ==========================================================================
   How We Work
   ========================================================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-card {
  background: #ffffff;
  border: 1px solid #e9dcc5;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
}

.process-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.process-icon svg { width: 26px; height: 26px; stroke: var(--color-orange); }

.process-step-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: #e9dcc5;
}

.process-card h3 { margin-bottom: 10px; }
.process-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ==========================================================================
   Case Studies
   ========================================================================== */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.case-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.case-card-body { padding: 24px; }

.case-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 10px;
}

.case-card-body h3 { margin-bottom: 12px; }

.case-row {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.case-row strong {
  display: block;
  color: var(--color-navy);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.case-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #d8c9ab;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-rust);
  font-size: 1.05rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-note {
  text-align: center;
  font-size: 0.85rem;
  color: #b7c6ca;
  max-width: 600px;
  margin: -24px auto 40px;
  font-style: italic;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.testimonial-quote-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-orange);
  margin-bottom: 16px;
}

.testimonial-card p.quote {
  color: #e8eef0;
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.testimonial-person {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95rem;
}

.testimonial-role {
  color: #a9bcc1;
  font-size: 0.85rem;
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.about-text p { margin-bottom: 16px; }

.about-mission {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--color-cream);
  border-left: 4px solid var(--color-orange);
  border-radius: var(--radius-sm);
}

.about-mission strong { display: block; color: var(--color-navy); margin-bottom: 6px; font-family: var(--font-heading); }

/* ==========================================================================
   Achievements
   ========================================================================== */

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.achievement-card {
  padding: 32px 20px;
}

.achievement-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 125, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.achievement-icon svg { width: 28px; height: 28px; stroke: var(--color-orange); }

.achievement-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.achievement-label {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ==========================================================================
   Blog
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.blog-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.blog-card img { width: 100%; height: 160px; object-fit: cover; }

.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.blog-date {
  font-size: 0.78rem;
  color: var(--color-teal);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-card-body h3 { font-size: 1.05rem; margin-bottom: 10px; }
.blog-card-body p { font-size: 0.9rem; flex: 1; }

.blog-readmore {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-orange);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e2d6bd;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-navy);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--color-orange);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question svg { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 300px;
  padding-bottom: 22px;
}

.faq-answer p { font-size: 0.95rem; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 236, 209, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg { width: 20px; height: 20px; stroke: var(--color-cream); }

.contact-info-item h3 { color: #ffffff; font-size: 1rem; margin-bottom: 4px; }
.contact-info-item p { color: #c9d8dc; font-size: 0.92rem; margin-bottom: 0; }

.contact-form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d8dde0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 12px;
  text-align: center;
}

.form-success {
  display: none;
  background: rgba(21, 97, 109, 0.1);
  border: 1px solid var(--color-teal);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--color-teal);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 18px;
  text-align: center;
}

.form-success.is-visible { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #000d16;
  color: #b7c6ca;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 14px;
  display: block;
}

.footer-logo span { color: var(--color-orange); }

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 18px;
  font-family: var(--font-heading);
}

.footer-col p { font-size: 0.88rem; margin-bottom: 14px; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.88rem;
  color: #b7c6ca;
  transition: color 0.15s ease;
}

.footer-col ul li a:hover { color: var(--color-orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}

.footer-bottom a { color: #b7c6ca; }
.footer-bottom a:hover { color: var(--color-orange); }

/* ==========================================================================
   Cookie Banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-navy);
  color: #dbe7ea;
  padding: 20px 24px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-inner p { color: #c9d8dc; font-size: 0.9rem; margin: 0; max-width: 640px; }

.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

.cookie-actions .btn { padding: 10px 22px; font-size: 0.88rem; }

/* ==========================================================================
   Terms Page
   ========================================================================== */

.terms-content {
  max-width: 820px;
  margin: 0 auto;
}

.terms-content h2 {
  margin-top: 40px;
  margin-bottom: 14px;
}

.terms-content h2:first-child { margin-top: 0; }

.terms-content p { margin-bottom: 14px; }

.terms-content ul {
  margin: 0 0 14px 0;
  padding-left: 0;
}

.terms-content ul li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
  color: var(--color-muted);
}

.terms-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-orange);
}

.terms-updated {
  font-size: 0.88rem;
  color: var(--color-teal);
  font-weight: 600;
  margin-bottom: 32px;
}

.page-hero {
  background: var(--color-navy);
  color: #ffffff;
  padding: 64px 0;
  text-align: center;
}

.page-hero h1 { color: #ffffff; margin-bottom: 12px; }
.page-hero p { color: #c9d8dc; max-width: 600px; margin: 0 auto; }

/* ==========================================================================
   Responsive — Tablet (768–1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  .card-grid,
  .industry-grid,
  .case-grid { grid-template-columns: repeat(2, 1fr); }

  .process-grid { grid-template-columns: repeat(2, 1fr); }

  .achievement-grid { grid-template-columns: repeat(2, 1fr); }

  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid { gap: 36px; }

  .about-media img { height: 340px; }

  .contact-grid { grid-template-columns: 1fr; }

  .contact-form { order: -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .section { padding: 64px 0; }
}

/* ==========================================================================
   Responsive — Mobile (max 767px)
   ========================================================================== */

@media (max-width: 767px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--color-navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
  }

  .main-nav.is-open { transform: translateX(0); }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 4px;
    margin-bottom: 24px;
  }

  .main-nav a:not(.btn) { width: 100%; padding: 14px 10px; }

  .nav-cta { margin-left: 0; width: 100%; }
  .nav-cta .btn { width: 100%; }

  .nav-toggle { display: flex; }

  .hero { min-height: 90vh; }
  .hero-content { padding: 60px 0; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }

  .card-grid,
  .industry-grid,
  .process-grid,
  .achievement-grid,
  .blog-grid,
  .testimonial-grid,
  .case-grid { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; }

  .about-media img { height: 260px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .section { padding: 52px 0; }

  .cookie-inner { flex-direction: column; align-items: stretch; text-align: center; }

  .cookie-actions { justify-content: center; }

  .contact-form { padding: 26px 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  h1 { font-size: 2rem; }
}
