/* ── CLEARFRAME STUDIO · GLOBAL STYLES ── */

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

:root {
  --bg:           #f7f5f0;
  --white:        #ffffff;
  --ink:          #0f0e0c;
  --ink2:         #3a3830;
  --muted:        #918e87;
  --border:       #e4e0d8;
  --accent:       #1a3a2a;
  --accent2:      #c8a96e;
  --accent-light: #eef3f0;
  --surface:      #f0ede6;
  --danger:       #c0392b;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-card: 0 4px 24px rgba(15,14,12,0.07);
  --shadow-lift: 0 16px 48px rgba(15,14,12,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── TYPOGRAPHY ── */
.f-serif { font-family: 'Fraunces', serif; }

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent2);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent2);
}

.section-sub {
  font-size: 0.95rem;
  color: var(--ink2);
  font-weight: 300;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 56px;
}

/* ── LAYOUT ── */
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 60px;
}

.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(247,245,240,0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: 0 2px 20px rgba(15,14,12,0.06); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo span { color: var(--accent2); }

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

.nav-links a {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--accent2);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover { background: #0f2318 !important; transform: translateY(-1px); }
.nav-cta.active::after { display: none !important; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: #0f2318;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26,58,42,0.22);
}

.btn-gold {
  background: var(--accent2);
  color: var(--ink);
}

.btn-gold:hover {
  background: #b8954e;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200,169,110,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--ink2);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--ink2);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-text {
  background: transparent;
  color: var(--ink2);
  padding: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding-bottom: 3px;
}

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

.btn-lg { padding: 17px 36px; font-size: 0.95rem; }
.btn-sm { padding: 9px 18px; font-size: 0.78rem; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 160px 0 80px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-inner {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 600;
  margin-bottom: 20px;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--ink2);
  font-weight: 300;
  line-height: 1.7;
  max-width: 520px;
}

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 16px;
}

.footer-logo span { color: var(--accent2); }

.footer-tagline {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  margin-bottom: 24px;
}

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

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

.anim { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.anim-1 { animation-delay: 0.1s; }
.anim-2 { animation-delay: 0.2s; }
.anim-3 { animation-delay: 0.3s; }
.anim-4 { animation-delay: 0.4s; }
.anim-5 { animation-delay: 0.5s; }
.anim-6 { animation-delay: 0.6s; }

/* ── FORMS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink2);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,58,42,0.08);
}

.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  background: var(--surface);
}

.marquee-track {
  display: flex;
  gap: 56px;
  animation: marqueeScroll 24s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-item {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.marquee-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav-inner { padding: 18px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 16px 20px; }
  .section { padding: 64px 0; }

  .nav-links {
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    display: none;
    box-shadow: var(--shadow-lift);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .nav-links a.active::after { display: none; }

  .nav-cta {
    margin: 8px 20px 0 !important;
    display: block;
    text-align: center;
    padding: 12px 20px !important;
  }

  .nav-toggle { display: flex; }

  .page-header { padding: 120px 0 60px; }
  .page-header h1 { font-size: 2.8rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
