/* =========================================
   Culif — Design System
   ========================================= */

/* --- Custom Properties --- */
:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #e94560;
  --accent-hover: #c73550;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg: #f8f9fa;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --border-radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================
   Header / Nav
   ========================================= */
.site-header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo:hover { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 0.5rem; }
.nav-link {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.9rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.btn-nav {
  background: var(--accent);
  color: var(--white) !important;
  margin-left: 0.5rem;
}
.btn-nav:hover { background: var(--accent-hover); }

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }

/* =========================================
   Hero
   ========================================= */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #0f3460 100%);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* =========================================
   Page Hero (inner pages)
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
}

/* =========================================
   Sections
   ========================================= */
.section { padding: 5rem 0; }
.section-light { background: var(--gray-100); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}
.section-intro {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.section-intro h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.section-intro p { color: var(--text-muted); font-size: 1.05rem; }

.content-block { max-width: 800px; margin: 0 auto; }
.content-block h2 { font-size: 1.75rem; margin-bottom: 1.25rem; }
.content-block p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.8; }

/* =========================================
   CTA Section
   ========================================= */
.section-cta {
  background: var(--primary);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}
.section-cta h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 1rem; }
.section-cta p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 2rem; }

/* =========================================
   Cards & Grids
   ========================================= */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.card-accent { border-top: 3px solid var(--accent); }

/* =========================================
   Values Grid
   ========================================= */
.value-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.value-icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.value-item h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.value-item p { color: var(--text-muted); font-size: 0.9rem; }

/* =========================================
   Contact Layout
   ========================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}
.contact-form-col h2,
.contact-info-col h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.75rem; }

.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-info-item strong { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.contact-info-item p { color: var(--text-muted); margin: 0; }

/* =========================================
   Forms
   ========================================= */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.required { color: var(--accent); }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* =========================================
   Alerts
   ========================================= */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding-top: 3rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  gap: 2rem;
}
.footer-brand .logo { color: var(--white); font-size: 1.25rem; display: block; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.7); font-size: 0.95rem; transition: color var(--transition); }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

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

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .contact-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-inner { flex-direction: column; }
  .hero { padding: 4rem 0; }
  .section { padding: 3.5rem 0; }
  .section-cta { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .nav-link { padding: 0.4rem 0.6rem; font-size: 0.9rem; }
}
