/* ============================================
   Clean Group — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #1a3a6b;
  --primary-light: #2a5298;
  --accent: #4ecdc4;
  --accent-dark: #38b2aa;
  --accent-light: #7ef0e8;
  --dark: #0d1b2a;
  --dark-2: #152236;
  --dark-3: #1e3451;
  --light: #f0f8ff;
  --light-2: #e8f4fd;
  --white: #ffffff;
  --text-dark: #1e293b;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --border: rgba(78, 205, 196, 0.2);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(13, 27, 42, 0.15);
  --shadow-lg: 0 20px 60px rgba(13, 27, 42, 0.25);
  --shadow-glow: 0 0 40px rgba(78, 205, 196, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --nav-height: 80px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Typography --- */
.font-display { font-family: 'Playfair Display', serif; }
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-mid); line-height: 1.75; }

/* --- Utility Classes --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(78, 205, 196, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 580px;
  margin: 0 auto 48px;
}

/* Dark section overrides */
.dark-section .section-title { color: var(--white); }
.dark-section .section-subtitle { color: rgba(255,255,255,0.65); }
.dark-section p { color: rgba(255,255,255,0.65); }
.dark-section h4 { color: var(--white); }

/* Light section text fixes */
.section h3, .section h4 { color: var(--dark); }
.section p { color: var(--text-mid); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26, 58, 107, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 58, 107, 0.45);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(78, 205, 196, 0.35);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(78, 205, 196, 0.45);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(78, 205, 196, 0.15);
  transform: translateY(-2px);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 52px;
  width: auto;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.brand-word {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.brand-word-clean {
  color: #8b4513;
}

.brand-word-group {
  color: var(--primary);
}

.footer-brand-text {
  margin: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 60%; }
.nav-link.active { color: var(--accent); }
.nav-link.active::after { width: 60%; }

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

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: var(--transition);
  letter-spacing: 0.05em;
}
.lang-btn.active {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(78, 205, 196, 0.4);
}
.lang-btn:hover:not(.active) { color: var(--dark); }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px 24px 32px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-10px);
  opacity: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-nav .nav-link {
  padding: 12px 16px;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

/* --- Page Header (for inner pages) --- */
.page-header {
  min-height: 360px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 50%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(78, 205, 196, 0.15) 0%, transparent 70%);
}

.page-header-content {
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* --- Cards (Glass) --- */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 32px;
  transition: var(--transition);
}
.glass-card:hover {
  border-color: rgba(78, 205, 196, 0.4);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* --- Stats --- */
.stat-number {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

/* --- Divider --- */
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  border-radius: 4px;
  margin: 16px auto 0;
}
.divider-left { margin-left: 0; }

/* --- Icon Box --- */
.icon-box {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(26, 58, 107, 0.15));
  border: 1px solid rgba(78, 205, 196, 0.3);
  margin-bottom: 20px;
  transition: var(--transition);
}
.icon-box-lg {
  width: 80px; height: 80px;
  font-size: 2rem;
}

/* --- Footer --- */
.footer {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 72px 0 32px;
  color: var(--text-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 320px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin: 0;
}

.footer-brand p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

.footer-title {
  /* color: var(--text-dark); */
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-links a i {
  font-size: 0.75rem;
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-contact-item i {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 3px;
  min-width: 16px;
}
.footer-contact-item span {
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgb(7, 7, 7); font-size: 0.85rem; }
.footer-bottom a { color: var(--accent); }

/* --- Scroll To Top --- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 900;
  border: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover { transform: translateY(-4px); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; }
  .section { padding: 64px 0; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-logo img { height: 46px; }
  .brand-word { font-size: 0.95rem; }
  .footer-brand { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .footer-brand img { height: 40px; }
  .footer-logo-link { justify-content: center; }
  .page-header { min-height: 320px; padding-top: calc(var(--nav-height) + 12px); }
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(26, 58, 107, 0.98) 0%, rgba(13, 27, 42, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(78, 205, 196, 0.3);
  z-index: 2000;
  padding: 20px 24px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner.hide {
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-content {
  flex: 1;
}

.cookie-title {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cookie-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.cookie-link {
  color: var(--accent);
  font-size: 0.9rem;
  text-decoration: underline;
  transition: var(--transition);
}

.cookie-link:hover {
  color: var(--accent-light);
  text-decoration: none;
}

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

.cookie-accept,
.cookie-decline {
  white-space: nowrap;
  font-size: 0.9rem;
  padding: 10px 20px;
}

.cookie-decline {
  background: transparent !important;
  color: var(--accent) !important;
  border: 2px solid var(--accent) !important;
  box-shadow: none !important;
}

.cookie-decline:hover {
  background: rgba(78, 205, 196, 0.1) !important;
}

/* Responsive cookie banner */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 16px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-accept,
  .cookie-decline {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 12px;
    bottom: calc(var(--nav-height) + 60px);
  }

  .cookie-title {
    font-size: 0.95rem;
  }

  .cookie-desc {
    font-size: 0.85rem;
  }
}


