/* =====================
   Core variables
===================== */

:root {
  --primary: #0a3d3d;
  --primary-light: #0e5555;
  --accent: #E0B200;
  --accent-bright: #ffd75e;
  --surface: #f5f5f3;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #666666;
  --border: #d4d4d0;
  --h-space: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================
   Base typography
===================== */

body {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: var(--h-space);
  margin-bottom: 12px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =====================
   Header + navigation
===================== */

header {
  background: var(--primary);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
  display: inline-flex;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-image {
  height: 62px;
  width: auto;
  display: block;
}

/* Wordmark (single source of truth - remove duplicates) */
.brand-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.98;
}

.brand-line1,
.brand-line2 {
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--white);
}

.brand-line1 {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.02em;
}

.brand-line2 {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.04em;
  margin-top: 4px;
  transform: none;
}

/* Desktop nav */
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.9;
}

.nav-links a:hover {
  color: var(--accent);
  opacity: 1;
}

/* Mobile menu toggle (requires button in HTML) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--accent);
  background: rgba(224,178,0,0.10);
}

/* =====================
   Buttons
===================== */

.btn {
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(224,178,0,0.25);
}

.btn-secondary {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(224,178,0,0.10);
}

/* =====================
   Hero
===================== */

.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 40px 0 40px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(224,178,0,0.1), transparent 70%);
}

.hero-content {
  /* max-width: 760px; */
  position: relative;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.1;
  color: var(--white);
  margin-top: 0;
}

.hero h2 {
  font-size: 28px;
  line-height: 1.1;
  color: var(--accent);
  margin-top: 0;
}

.hero .lead {
  font-size: 18px;
  color: rgba(255,255,255,0.86);
  margin-bottom: 34px;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =====================
   Sections
===================== */

.services,
.methodology,
.testimonials {
  padding: 40px 0 40px;
  background: var(--white);
}

.approach {
  padding: 40px 0 40px;
  background: var(--primary);
  color: var(--white);
}

.case-study {
  padding: 40px 0 40px;
  background: var(--surface);
}

.contact {
  padding: 40px 0 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  text-align: center;
  color: var(--white);
}

/* =====================
   Section headers
===================== */

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: 40px;
  color: var(--primary);
  margin-top: 0;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  max-width: 760px;
  margin: 0 auto;
}

/* =====================
   Services
===================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--surface);
  padding: 40px;
  border-radius: 8px;
  position: relative;
  transition: all 0.35s;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  transition: height 0.35s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(10,61,61,0.12);
}

.service-card:hover::before {
  height: 100%;
}

.service-number {
  font-family: "Space Mono", monospace;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.service-card h3 {
  color: var(--primary);
  font-size: 20px;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 18px;
}

.service-card ul {
  list-style: none;
}

.service-card li {
  padding-left: 26px;
  position: relative;
}

.service-card li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* =====================
   Approach
===================== */

.approach .section-title,
.approach .section-subtitle {
  color: var(--white);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.approach-item {
  background: rgba(255,255,255,0.06);
  padding: 38px 22px;
  border-radius: 8px;
  text-align: center;
}

.approach-icon {
  width: 78px;
  height: 78px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: var(--primary);
  margin: 0 auto 22px;
}

/* =====================
   Case study
===================== */

.case-study-content {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

.case-study-text h3 {
  font-size: 28px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--primary);
}

.case-study-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 14px;
}

.case-study-text ul {
  list-style: none;
  margin: 22px 0;
  padding: 0;
}

.case-study-text li {
  padding: 9px 0;
  padding-left: 26px;
  position: relative;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.case-study-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

.metrics-grid {
  display: grid;
  margin-top: 64px;
  gap: 22px;
  align-content: start;
}

.metric {
  background: var(--primary);
  padding: 28px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(10,61,61,0.18);
}

.metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

.metric-value {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: "Space Mono", monospace;
}

.metric-label {
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =====================
   Testimonials
===================== */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial {
  background: var(--surface);
  padding: 36px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

/* =====================
   Footer
===================== */

footer {
  padding: 44px 0;
  background: var(--primary);
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
}

footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin: 0 14px;
}

footer a:hover {
  color: var(--accent);
}

/* LinkedIn wordmark */
.footer-social {
  margin: 18px 0 14px;
}

.linkedin-mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  transition: opacity 0.2s;
}

.linkedin-mark:hover {
  opacity: 0.85;
}

.linkedin-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 4px;
  border-radius: 2px;
  background: #0077B5;  /* LinkedIn blue */
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
  transform: none;
}

.linkedin-mark:hover .linkedin-in {
  background: #006399;  /* Darker blue on hover */
}

/* =====================
   Cookie banner
===================== */

#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: none;
  z-index: 999;
}

.cookie-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  max-width: 520px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

/* =====================
   Contact section link fix
===================== */

/* Text links only */
.contact a:not(.btn) {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contact a:not(.btn):hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

/* Buttons keep their own styling */
.contact .btn {
  text-decoration: none;
}

.contact .btn-primary {
  margin-top: 18px;
  margin-bottom: 18px;
}

/* =====================
   Responsive
===================== */

@media (max-width: 968px) {
  /* show menu toggle, convert nav links to dropdown */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    right: 40px;
    background: var(--primary);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    align-items: flex-start;
    justify-content: flex-start;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 8px 10px;
    width: 100%;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .case-study-content {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    margin-top: 32px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 24px;
  }

  .hero h1 {
    font-size: 34px;
  }

  /* logo scaling */
  .logo-image {
    height: 54px;
  }

  .brand-wordmark {
    line-height: 1.0;
  }

  .brand-line1 {
    font-size: 24px;
    letter-spacing: 0.02em;
  }

  .brand-line2 {
    font-size: 16px;
    letter-spacing: 0.05em;
    margin-top: 4px;
  }

  /* dropdown position on small screens */
.nav-links {
  right: 24px;
  left: 24px;  /* ADD THIS - constrains left edge */
  width: auto; /* ADD THIS - prevents width overflow */
}
