/* =============================================
   TEMPLATE 1 — "The Editorial"
   Aesthetic: Refined editorial, magazine-inspired
   Palette: Deep navy, warm cream, gold accent
   Typography: Playfair Display + DM Sans
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg:           #F9F6F0;
  --bg-alt:       #EEE8DC;
  --surface:      #FFFFFF;
  --navy:         #0D1B2A;
  --navy-mid:     #1A2E45;
  --accent:       #C49A3C;
  --accent-light: #E8C97A;
  --text:         #1A1A1A;
  --text-muted:   #6B6B6B;
  --border:       #D8CFC2;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:       4px;
  --shadow:       0 2px 20px rgba(13,27,42,0.08);
  --shadow-lg:    0 8px 40px rgba(13,27,42,0.14);

  --nav-h:        72px;
  --max-w:        1200px;
  --section-v:    96px;
}

/* ---- 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);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

/* ---- Layout Utilities ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-v) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--bg); }
.section--dark p { color: rgba(249,246,240,0.65); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.text-center { text-align: center; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Divider ---- */
.divider {
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin: 20px 0 32px;
}
.divider.centered { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--navy);
  color: var(--bg);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-accent {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(196,154,60,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--bg);
}

.btn-outline-light {
  background: transparent;
  color: var(--bg);
  border-color: rgba(249,246,240,0.5);
}
.btn-outline-light:hover {
  background: rgba(249,246,240,0.1);
  border-color: var(--bg);
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(249,246,240,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: var(--shadow); }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav__links a:hover,
.nav__links a.active { color: var(--navy); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta { margin-left: 16px; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none; border: none;
}
.nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* ---- Page Top Spacing ---- */
.page-top { padding-top: var(--nav-h); }

/* ---- Hero ---- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__bg-line {
  position: absolute;
  top: 0; right: 120px;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.hero__content { position: relative; z-index: 1; max-width: 720px; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero__tag::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--accent);
}

.hero h1 { margin-bottom: 24px; }
.hero p { font-size: 1.125rem; max-width: 520px; margin-bottom: 40px; }

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__img {
  position: absolute;
  right: 0; top: 0;
  width: 45%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card__icon {
  width: 48px; height: 48px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.card h3 { margin-bottom: 10px; }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.stat { background: var(--surface); padding: 36px 28px; text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__num span { color: var(--accent); }
.stat__label { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* ---- Team / People ---- */
.person { text-align: center; }
.person__avatar {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--bg-alt);
}
.person__avatar-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--bg-alt), var(--border));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.person__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.person__role { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

/* ---- Blog Cards ---- */
.blog-card { display: flex; flex-direction: column; }
.blog-card__img {
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: var(--bg-alt);
}
.blog-card__img-placeholder {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: rgba(249,246,240,0.3);
}
.blog-card__meta { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 10px; }
.blog-card__meta span { color: var(--accent); }
.blog-card h3 { margin-bottom: 10px; }
.blog-card__more {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.blog-card__more:hover { gap: 10px; }

/* ---- Form ---- */
.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--navy); }
textarea { resize: vertical; min-height: 120px; }

/* ---- Page Header (interior pages) ---- */
.page-header {
  background: var(--navy);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(196,154,60,0.08);
}
.page-header h1 { color: var(--bg); margin-bottom: 12px; }
.page-header p { color: rgba(249,246,240,0.6); font-size: 1.1rem; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--accent-light); }
.breadcrumb span { color: rgba(249,246,240,0.4); }
.breadcrumb .current { color: rgba(249,246,240,0.7); }

/* ---- Testimonial ---- */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
}
.testimonial__text { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--navy); margin-bottom: 20px; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.testimonial__name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.testimonial__role { font-size: 0.78rem; color: var(--text-muted); }

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,154,60,0.12) 0%, transparent 70%);
}
.cta-banner h2 { color: var(--bg); margin-bottom: 16px; }
.cta-banner p { color: rgba(249,246,240,0.6); margin-bottom: 36px; font-size: 1.1rem; }
.cta-banner .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer {
  background: var(--navy);
  color: rgba(249,246,240,0.6);
  padding: 64px 0 0;
  border-top: 1px solid rgba(249,246,240,0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(249,246,240,0.08);
}

.footer__brand h3 {
  font-family: var(--font-display);
  color: var(--bg);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.footer__brand h3 span { color: var(--accent); }
.footer__brand p { font-size: 0.88rem; line-height: 1.7; }

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: 18px;
}

.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.88rem;
  color: rgba(249,246,240,0.55);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent-light); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(249,246,240,0.35);
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-4 { animation-delay: 0.4s; opacity: 0; }

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

@media (max-width: 768px) {
  :root { --section-v: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .hero__img { display: none; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
