/* ============================================
   ACADEMIC ATELIER — MAIN STYLES
   ============================================ */

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

:root {
  --blue:       #2b7abf;
  --blue-light: #4a9fd4;
  --blue-dark:  #1f5f96;
  --accent:     #2b7abf;
  --dark:       #0f172a;
  --gray-900:   #111827;
  --gray-700:   #374151;
  --gray-500:   #6b7280;
  --gray-300:   #d1d5db;
  --gray-100:   #f3f4f6;
  --white:      #ffffff;
  --font:       'Inter', sans-serif;
  --radius:     12px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 15px;
}

/* ---- Shared Utilities ---- */
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: #eff6ff; }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.3px;
}
.nav-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-logo-img[src=""] { display: none; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 26px;
  flex: 1;
}
.nav-links a {
  text-decoration: none;
  font-size: 13.5px;
  color: var(--gray-700);
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--blue); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-icon-btn:hover { color: var(--blue); background: var(--gray-100); }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, #fafbff 0%, #eef2ff 60%, #f0f9ff 100%);
  padding: 60px 0 48px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-badge {
  display: inline-block;
  background: #dbeafe;
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}
.hero-title-accent { color: var(--blue); }
.hero-sub {
  font-size: 14.5px;
  color: var(--gray-500);
  max-width: 400px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-img-wrap {
  width: 320px;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge-card {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: var(--white);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}
.badge-card-icon { font-size: 20px; }
.badge-card-text { display: flex; flex-direction: column; }
.badge-card-text strong { font-size: 13px; font-weight: 700; color: var(--dark); }
.badge-card-text span { font-size: 11.5px; color: var(--gray-500); }

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: 80px 0;
  background: var(--white);
}
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.8px;
  text-align: center;
  margin-bottom: 10px;
}
.section-sub {
  font-size: 14px;
  color: var(--gray-500);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.7;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon-blue   { background: #dbeafe; color: var(--blue); }
.feature-icon-purple { background: #ede9fe; color: #7c3aed; }
.feature-icon-amber  { background: #fef3c7; color: #d97706; }
.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ============================================
   COLLECTIONS
   ============================================ */
.collections {
  padding: 72px 0;
  background: #f9fafb;
}
.section-title-left {
  font-size: 30px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.7px;
  margin-bottom: 6px;
}
.section-sub-left {
  font-size: 13.5px;
  color: var(--gray-500);
  max-width: 420px;
}
.collections-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.view-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.view-all-link:hover { text-decoration: underline; }
/* Category label divider */
.collections-category-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.collections-category-label span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--gray-500);
  white-space: nowrap;
}
.collections-category-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* Featured (2-column) grid */
.collections-grid-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 32px;
}

/* Small skills (3-column) grid */
.collections-grid-small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.collection-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.collection-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* Featured cards (tall, span rows) */
.collection-card-featured {
  grid-row: span 1;
  padding: 28px 24px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  position: relative;
}
.collection-card-dark {
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  color: var(--white);
}
.collection-card-blue {
  background: linear-gradient(160deg, #2b7abf 0%, #1f5f96 100%);
  color: var(--white);
}
.collection-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.collection-card-featured h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -.4px;
}
.collection-card-featured p {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
}
.collection-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* Small cards */
.collection-card-small {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}
.collection-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.collection-card-small h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.collection-card-small p {
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, #2b7abf 0%, #1f5f96 50%, #174d7a 100%);
  padding: 72px 28px;
  text-align: center;
}
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-banner h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.9px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.cta-banner p {
  font-size: 14.5px;
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
  line-height: 1.7;
}
.cta-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-form input {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow .2s;
}
.cta-form input:focus { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.cta-form .btn-primary {
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 700;
}
.cta-form .btn-primary:hover { background: #f0f9ff; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 52px 0 0;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -.3px;
  display: block;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 16px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  color: var(--gray-500);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.footer-social a:hover { color: var(--blue); }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gray-500);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: 13.5px;
  color: var(--gray-700);
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: var(--blue); }
.footer-contact-item { white-space: nowrap; }
.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 28px;
  border-top: 1px solid var(--gray-100);
  margin-top: 36px;
}
.footer-bottom span {
  font-size: 11px;
  color: var(--gray-500);
  letter-spacing: .4px;
  text-transform: uppercase;
}
