/* Base Styles - Core Variables and Reset */
:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --brand: #2f4a59;
  --brand-600: #27414f;
  --surface: #f8fafc;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 14px;
  --container: 1200px;
  
  /* Typography Scale */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 32px;
  --text-5xl: 36px;
  --text-6xl: 48px;
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
}

* { 
  box-sizing: border-box; 
}

html, body { 
  margin: 0; 
  padding: 0; 
  background: var(--bg); 
  color: var(--text); 
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.7;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

img { 
  max-width: 100%; 
  height: auto; 
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

a { 
  color: var(--brand); 
  text-decoration: none; 
}

a:hover { 
  text-decoration: underline; 
}

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

/* Header Styles */
header { 
  position: sticky; 
  top: 0; 
  z-index: 50; 
  background: rgba(255,255,255,.85); 
  backdrop-filter: saturate(180%) blur(12px); 
  border-bottom: 1px solid var(--border); 
}

.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 14px 0; 
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

.brand img { 
  width: 160px; 
  height: auto; 
}

nav ul { 
  display: flex; 
  gap: 18px; 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  align-items: center; 
}

nav a { 
  font-weight: 600; 
  color: var(--text); 
  opacity: .8; 
  padding: 8px 10px; 
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--brand);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover, nav a:focus { 
  opacity: 1; 
  background: #f1f5f9; 
  text-decoration: none;
}

nav a.active { 
  position: relative;
  color: var(--brand);
  font-weight: 600;
  transition: all 0.3s ease;
}

nav a.active::after {
  width: 80%;
}

.lang { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.lang label { 
  font-size: 14px; 
  color: var(--muted); 
}

.lang select { 
  padding: 6px 8px; 
  border-radius: 8px; 
  border: 1px solid var(--border); 
  background: #fff; 
}

/* Hero Section */
.hero { 
  padding: 140px 0 100px; 
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
}

.hero-grid { 
  display: grid; 
  grid-template-columns: 1.15fr 1fr; 
  gap: 60px; 
  align-items: center; 
  max-width: 1400px;
  margin: 0 auto;
}

.eyebrow { 
  color: #2f4a59; 
  font-weight: 700; 
  letter-spacing: 0.15em; 
  text-transform: uppercase; 
  font-size: 12px; 
  margin-bottom: 28px;
  line-height: 1.4;
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, rgba(47, 74, 89, 0.1) 0%, rgba(47, 74, 89, 0.15) 100%);
  border-radius: 50px;
  border: 1px solid rgba(47, 74, 89, 0.2);
}

h1, .hero h1 { 
  font-size: clamp(44px, 6vw, 64px) !important; 
  line-height: 1.1 !important; 
  margin: 0 0 32px !important; 
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.035em !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Project pages: force hero title to white over global H1 color */
.project-hero h1 { color: #ffffff !important; }

.sub { 
  color: #475569; 
  font-size: clamp(19px, 2.5vw, 23px); 
  margin: 0 0 40px; 
  line-height: 1.75; 
  font-weight: 400;
  max-width: 640px;
}

.value-line { 
  color: #1e3540; 
  margin: 0 0 40px; 
  font-style: normal; 
  font-weight: 700;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
  display: block;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(47, 74, 89, 0.08) 0%, rgba(47, 74, 89, 0.12) 100%);
  border-radius: 12px;
  border-left: 4px solid #2f4a59;
  max-width: fit-content;
}


.hero-media { 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow); 
  background: #00000006; 
}

/* Section Base */
section { 
  padding: 120px 0; 
}

section.alt { 
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); 
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }
  
  h1, .hero h1 {
    font-size: clamp(36px, 8vw, 48px) !important;
    line-height: 1.15 !important;
    margin-bottom: 24px !important;
  }
  
  .hero {
    padding: 80px 0 60px !important;
  }
  
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

section#services { 
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); 
}

section:not(:first-child)::before { 
  content: ''; 
  display: block; 
  height: 1px; 
  background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%); 
  margin: 0 auto; 
  width: 300px; 
  position: relative; 
  top: -60px; 
}

.section-title { 
  font-size: clamp(40px, 5vw, 56px); 
  font-weight: 700;
  margin: 0 0 24px; 
  text-align: center;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: #64748b;
  text-align: center;
  max-width: 750px;
  margin: 0 auto 64px;
  line-height: 1.7;
  font-weight: 400;
}

p {
  line-height: 1.8;
  margin-bottom: 20px;
  color: #475569;
  font-size: 17px;
}

h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  margin: 0 0 24px;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h3 {
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 600;
  margin: 0 0 16px;
  color: #1e293b;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--text);
  transition: all 0.3s ease;
  transform-origin: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-toggle:active {
  background: rgba(0, 0, 0, 0.1);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.mobile-nav-link {
  color: white;
  text-decoration: none;
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  padding: 16px 24px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.mobile-lang {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-lang label {
  color: white;
  font-size: var(--text-base);
  margin-bottom: 8px;
  display: block;
}

.mobile-lang select {
  background: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: var(--text-base);
}

.mobile-nav-cta {
  background: var(--brand);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: var(--font-semibold);
  font-size: var(--text-lg);
  transition: all 0.3s ease;
  margin-top: 16px;
}

.mobile-nav-cta:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
}

/* Footer */
footer { 
  padding: 32px 0; 
  border-top: 1px solid var(--border); 
  color: var(--muted); 
  text-align: center; 
}

/* Accessibility */
.skip-link { 
  position: absolute; 
  left: -9999px; 
  top: auto; 
  width: 1px; 
  height: 1px; 
  overflow: hidden; 
}

.skip-link:focus { 
  position: static; 
  width: auto; 
  height: auto; 
  padding: 10px; 
  background: var(--brand); 
  color: #fff; 
  border-radius: 8px; 
}

/* Responsive */
@media (max-width: 960px) { 
  .hero-grid { 
    grid-template-columns: 1fr; 
  } 
  .brand img { 
    width: 140px; 
  } 
}

@media (max-width: 768px) { 
  /* Show mobile menu toggle, hide desktop nav */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-inner nav {
    display: none;
  }
  
  .lang {
    display: none;
  }
  
  .brand img { 
    width: 120px !important; 
  } 
}
