/* ============================================
   MercanWorks OÜ — Premium Editorial Design
   style.css v3.1
   Cormorant Garamond + DM Sans
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --bg:            #F7F6F2;
  --bg-card:       #FFFFFF;
  --bg-dark:       #0F0D0A;
  --bg-warm:       #F0EEE8;
  --ink:           #111110;
  --ink-soft:      #1A1917;
  --muted:         #6B6860;
  --muted-light:   #9E9B97;
  --coral:         #E84545;
  --coral-dark:    #C93535;
  --coral-light:   rgba(232, 69, 69, 0.08);
  --purple:        #9B7FA6;
  --blue:          #27B3E8;
  --gradient:      linear-gradient(135deg, #E84545, #9B7FA6, #27B3E8);
  --border:        rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.12);
  --border-accent: rgba(232, 69, 69, 0.15);
  --whatsapp:      #25D366;
  --success:       #1E9952;

  /* Legacy compat aliases */
  --bg-primary:    var(--bg);
  --bg-secondary:  var(--bg-warm);
  --text-primary:  var(--ink);
  --text-secondary:var(--muted);
  --accent:        var(--coral);
  --accent-hover:  var(--coral-dark);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-base:    var(--font-body);
  --font-mono:    'Courier New', Courier, monospace;

  --text-xs:   0.6875rem; /* 11px */
  --text-sm:   0.8125rem; /* 13px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  2rem;      /* 32px */
  --text-4xl:  2.5rem;    /* 40px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  4rem;      /* 64px */

  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.1);

  --max-width: 1200px;
  --transition: 0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover { color: var(--coral-dark); }

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

ul, ol { list-style: none; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.lang-btn:hover {
  color: var(--coral);
  border-color: var(--border-accent);
}

.lang-btn.active {
  background-color: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(247, 246, 242, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 34px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-logo-text span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--coral); }

.nav-cta {
  display: none;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .nav-cta { display: flex; }
}

/* Nav WhatsApp button */
.nav-cta .btn-primary {
  font-size: 12px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  gap: 5px;
  transition: border-color var(--transition);
}

.hamburger:hover { border-color: var(--coral); }

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background-color: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 768px) {
  .hamburger { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: var(--space-4);
  gap: var(--space-1);
  box-shadow: var(--shadow-md);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xs);
  transition: background-color var(--transition), color var(--transition);
}

.mobile-menu a:hover {
  background-color: var(--coral-light);
  color: var(--coral);
}

/* Mobile Language Switcher */
.mobile-lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  margin-top: var(--space-2);
}

.mobile-lang-switcher .lang-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  text-transform: uppercase;
}

.mobile-lang-switcher .lang-btn:hover {
  color: var(--coral);
  border-color: var(--border-accent);
  background: var(--coral-light);
}

.mobile-lang-switcher .lang-btn.active {
  background: var(--coral);
  color: white;
  border-color: var(--coral);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background-color: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

.btn-primary:hover {
  background-color: var(--coral-dark);
  border-color: var(--coral-dark);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232, 69, 69, 0.3);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--coral);
  color: var(--coral);
  background-color: var(--bg-card);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 13px;
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
  border-color: #1ebe57;
  color: #fff;
}

/* Default: light background context (hero, service pages) */
.btn-email {
  background-color: var(--bg-card);
  color: var(--ink);
  border-color: var(--border-strong);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
}

.btn-email:hover {
  border-color: var(--coral);
  color: var(--coral);
  background-color: var(--bg-card);
}

/* Dark context override (CTA section) */
.cta-section .btn-email {
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-section .btn-email:hover {
  border-color: var(--coral);
  color: var(--coral);
  background-color: rgba(232, 69, 69, 0.1);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 13px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(232, 69, 69, 0.06) 0%,
    rgba(155, 127, 166, 0.04) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--coral-light);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: 7px 18px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-8);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, var(--text-6xl));
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-6);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.hero-intro {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto var(--space-3);
  line-height: 1.8;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--muted-light);
  max-width: 640px;
  margin: 0 auto var(--space-8);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-8);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: var(--space-16) 0;
}

@media (min-width: 768px) {
  section { padding: var(--space-20) 0; }
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--coral);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.section-desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
}

/* ============================================
   STATS / NUMBERS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-10);
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.stat-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--coral);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition), border-top-color var(--transition);
  box-shadow: var(--shadow-xs);
}

.service-card:hover {
  border-top-color: var(--coral);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit;
}

.service-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}

.service-card p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}

.service-arrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--coral);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition), color var(--transition);
}

.service-card:hover .service-arrow {
  gap: var(--space-3);
  color: var(--coral-dark);
}

/* ============================================
   WHY SECTION
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-top-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  box-shadow: var(--shadow-xs);
}

.why-item:hover {
  border-top-color: var(--coral);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.why-item .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--coral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
}

.why-item h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.why-item p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
}

/* ============================================
   CONTENT ARTICLE (H2 SECTIONS)
   ============================================ */
.content-section {
  background-color: var(--bg-warm);
}

.content-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  margin-top: var(--space-10);
}

.content-block {
  padding-left: var(--space-6);
  border-left: 2px solid var(--border-accent);
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 2.5vw, 30px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-4);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.content-block p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: var(--space-3);
}

.content-block ul,
.content-block ol {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.content-block ul li,
.content-block ol li {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  padding-left: var(--space-5);
  position: relative;
}

.content-block ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 400;
}

.content-block ol { counter-reset: item; }
.content-block ol li { counter-increment: item; }
.content-block ol li::before {
  content: counter(item) '.';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
}

/* Step list */
.step-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.step-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--coral);
  color: var(--coral);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.step-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  padding-top: 3px;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  background-color: var(--bg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-10);
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition);
}

.faq-item.open {
  background-color: var(--bg-card);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition);
}

.faq-question:hover { background-color: rgba(0, 0, 0, 0.02); }

.faq-question-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-full);
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  font-size: 15px;
  font-weight: 400;
  transition: transform var(--transition), border-color var(--transition),
              background-color var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--coral);
  background-color: var(--coral-light);
}

.faq-answer {
  display: none;
  padding: 0 var(--space-6) var(--space-6);
}

.faq-item.open .faq-answer { display: block; }

.faq-answer p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  padding-top: var(--space-1);
  max-width: 700px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background-color: var(--bg-dark);
  border-top: none;
  border-bottom: none;
  text-align: center;
  padding: var(--space-20) 0;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, 52px);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta-section h2 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
  font-weight: 600;
}

.cta-section p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  max-width: 520px;
  margin: 0 auto var(--space-10);
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* Contact cards in CTA area */
.cta-section .contact-card,
.cta-section a.btn {
  transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
  background-color: var(--bg-warm);
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-xs);
}

@media (min-width: 768px) {
  .project-card { grid-template-columns: 1fr 1fr; }
  .project-card.reverse { direction: rtl; }
  .project-card.reverse > * { direction: ltr; }
}

.project-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.project-card + .project-card { margin-top: var(--space-8); }

.project-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--bg-warm);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img { transform: scale(1.05); }

.project-info {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}

.project-badge {
  display: inline-flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.project-badge span {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted-light);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.project-info h3 small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--coral);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.project-info p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
}

.project-expand-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  color: var(--coral);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), background-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
}

.project-expand-btn:hover {
  border-color: var(--coral);
  background-color: var(--coral-light);
}

.project-details {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.project-details.open { display: flex; }

.project-detail-block h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-detail-block ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.project-detail-block li {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  padding-left: var(--space-4);
  position: relative;
}

.project-detail-block li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--success);
  font-size: 11px;
  top: 0.2em;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--coral);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}

.project-link:hover {
  gap: var(--space-3);
  color: var(--coral-dark);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-light);
  letter-spacing: 0.04em;
}

.breadcrumb-list li + li::before {
  content: '/';
  color: var(--border-strong);
}

.breadcrumb-list a {
  color: var(--muted-light);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb-list a:hover { color: var(--coral); }
.breadcrumb-list li:last-child { color: var(--coral); }

/* ============================================
   BLOG POST
   ============================================ */
.blog-post {
  max-width: 760px;
  margin: 0 auto;
}

.blog-post h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 2.5vw, 30px);
  font-weight: 600;
  color: var(--ink);
  margin: var(--space-10) 0 var(--space-4);
  line-height: 1.2;
  letter-spacing: -0.02em;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.blog-post p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: var(--space-4);
}

.blog-post ul,
.blog-post ol {
  margin: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.blog-post ul li,
.blog-post ol li {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  padding-left: var(--space-6);
  position: relative;
}

.blog-post ul li::before {
  content: '–';
  position: absolute;
  left: var(--space-2);
  color: var(--coral);
  font-weight: 400;
}

.blog-post ol { counter-reset: blog-counter; }
.blog-post ol li { counter-increment: blog-counter; }
.blog-post ol li::before {
  content: counter(blog-counter) '.';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
}

/* Formula / Code block */
.formula-box {
  background-color: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--coral);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 2;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0;
  font-size: 13px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.compare-table th,
.compare-table td {
  padding: 12px var(--space-4);
  border: 1px solid var(--border);
  text-align: left;
}

.compare-table th {
  background-color: var(--ink-soft);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.compare-table td {
  background-color: var(--bg-card);
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--muted);
}

.compare-table tr:hover td {
  background-color: var(--coral-light);
  color: var(--ink);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--bg-dark);
  border-top: none;
  padding: var(--space-16) 0 var(--space-10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: var(--space-5);
  opacity: 0.85;
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.8;
  max-width: 320px;
}

.footer-address {
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1.9;
}

.footer-address strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}

.footer-col ul li a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: #fff; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--space-3);
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  transition: color var(--transition);
}

.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.18);
}

.footer-legal {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-10);
}

@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-xs);
}

.blog-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-card-tag {
  display: inline-block;
  background-color: var(--coral-light);
  color: var(--coral);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}

.blog-card p {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.blog-card-meta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-light);
  display: flex;
  gap: var(--space-3);
}

/* ============================================
   AEO HIDDEN CONTENT
   ============================================ */
#aeo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  overflow: hidden;
  pointer-events: none;
  font-size: 1px;
  color: transparent;
  top: 0;
  left: 0;
}

/* ============================================
   NOTICE / ALERT
   ============================================ */
.notice {
  background-color: var(--coral-light);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: var(--space-6) 0;
}

.notice strong {
  color: var(--coral-dark);
  font-weight: 600;
}

/* ============================================
   TAG LIST
   ============================================ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.tag {
  background-color: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ============================================
   RELATED POSTS
   ============================================ */
.related-posts {
  background-color: var(--bg-warm);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 640px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

.related-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-xs);
}

.related-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
}

.related-card span {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--coral);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.related-card strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-accent  { color: var(--coral); }
.text-muted   { color: var(--muted); }
.text-center  { text-align: center; }
.text-small   { font-size: 13px; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-8) 0;
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .nav, .hamburger, .mobile-menu, .cta-section { display: none; }
  body { background: white; color: black; font-family: Georgia, serif; }
  .section-title, .hero h1, .blog-post h2 { font-family: Georgia, serif; }
}
