:root {
  --primary: #0d7377;
  --primary-dark: #095456;
  --primary-light: #e8f4f4;
  --accent: #e3794a;
  --accent-dark: #c9623a;
  --text: #1a1a2e;
  --text-light: #555;
  --bg: #ffffff;
  --bg-alt: var(--primary-light);
  --footer-bg: #1a1a2e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.2;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  position: relative;
  z-index: 100;
  background: var(--bg);
}
.header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}
.logo svg.logo-icon { width: 140px; height: 140px; }
.logo svg.logo-wordmark { height: 90px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.nav a:hover { color: var(--primary); }
.nav a.active { color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 2px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  right: 24px;
  top: 24px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .logo svg.logo-icon { width: 80px; height: 80px; }
  .logo svg.logo-wordmark { height: 52px; }
  .hamburger { display: flex; }
  .nav {
    display: none;
    flex-direction: column;
    padding: 16px 0;
    gap: 16px;
  }
  .nav.open { display: flex; }
}

/* Hero */
.hero {
  padding: 80px 0 120px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  background-color: var(--primary);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%23ffffff' fill-opacity='0.06' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 700px;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* Page hero (smaller, for subpages) */
.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%23ffffff' fill-opacity='0.06' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  font-weight: 700;
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-top: 12px;
  max-width: 600px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Section styling */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--bg);
  padding: 32px 28px;
  border-left: 3px solid var(--primary);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--primary);
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}
.about-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.about-content p:last-child { margin-bottom: 0; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: var(--bg);
  padding: 32px 28px;
  border-left: 3px solid var(--accent);
  position: relative;
}
.quote-mark {
  font-size: 3rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 8px;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.author-info strong {
  display: block;
  font-size: 0.95rem;
}
.author-info span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.contact-details { list-style: none; }
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.contact-details svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-details a { color: var(--text); }
.contact-details a:hover { color: var(--primary); }
.contact-map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Big Footer */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.footer a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer a:hover { color: #fff; }
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 64px 0 48px;
}
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand .footer-logo svg { height: 40px; width: auto; }
.footer-brand .footer-logo svg path { fill: #fff; }
.footer-brand .footer-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.footer-brand p {
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.9rem; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  fill: none;
  stroke: rgba(255,255,255,0.5);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a { font-size: 0.85rem; }

/* Legal/Terms page */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 0 96px;
}
.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
}
.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
}
.legal-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}
.legal-content ul {
  color: var(--text-light);
  margin-bottom: 16px;
  padding-left: 24px;
  line-height: 1.7;
}
.legal-content ul li { margin-bottom: 8px; }
.legal-date {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 32px;
}

/* Case Studies page */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}
.case-study-card {
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
.case-study-header {
  background: var(--primary-light);
  padding: 32px 28px;
  border-bottom: 3px solid var(--primary);
}
.case-study-header .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: rgba(13,115,119,0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.case-study-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
.case-study-body {
  padding: 28px;
}
.case-study-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.case-study-stats {
  display: flex;
  gap: 24px;
}
.case-study-stat {
  text-align: center;
}
.case-study-stat .stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.case-study-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* About page extras */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.team-card {
  text-align: center;
}
.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid var(--primary-light);
}
.team-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.team-card .role {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.team-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.value-card {
  text-align: center;
  padding: 32px 24px;
}
.value-card svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.value-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}
