/* =============================================
   THIMBLE & THREAD — Global Stylesheet
   ============================================= */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ─── CSS Custom Properties ─── */
:root {
  /* Primary — Navy/Slate */
  --primary:        #3A445D;
  --primary-light:  #4e5a78;
  --primary-dark:   #2a3247;
  --primary-muted:  #3a445d18;

  /* Secondary — Warm Tan */
  --secondary:      #A67C52;
  --secondary-light:#bc9570;
  --secondary-dark: #8a6340;
  --secondary-muted:#a67c5218;

  /* Tertiary — Dusty Sage */
  --tertiary:       #7D8C7B;
  --tertiary-light: #96a594;
  --tertiary-dark:  #637061;
  --tertiary-muted: #7d8c7b18;

  /* Neutral */
  --neutral:        #ECEBE7;
  --neutral-dark:   #dddbd5;
  --neutral-darker: #c9c7c0;
  --white:          #FAFAF8;

  /* Text */
  --text-dark:      #1e2230;
  --text-body:      #3f3f3f;
  --text-muted:     #6b6b6b;

  /* Fonts */
  --font-headline:  'Cormorant Garamond', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --font-label:     'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-pad:    80px;
  --container-max:  1160px;
  --radius:         4px;
  --radius-lg:      8px;

  /* Transitions */
  --ease:           cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-headline);
  color: var(--text-dark);
  line-height: 1.15;
  font-weight: 400;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 400; }
h4 { font-size: 1.2rem; font-weight: 500; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.label {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  display: block;
  margin-bottom: 0.8rem;
}

/* ─── Layout ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: var(--section-pad) 0; }

/* ─── Divider ─── */
.divider {
  width: 48px;
  height: 1px;
  background: var(--secondary);
  margin: 20px 0 32px;
}

.divider--center { margin-left: auto; margin-right: auto; }

/* ─── Buttons ─── */
/* Allow <button> elements to inherit the same btn styles as <a> elements */
button.btn {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  line-height: 1;
  text-align: center;
}

.btn {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(58,68,93,0.22);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-accent:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(166,124,82,0.25);
}

/* ─── Navigation ─── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-dark);
  transition: box-shadow 0.25s var(--ease);
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(58,68,93,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

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

.nav-links a {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--secondary);
  transition: width 0.25s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--secondary); }

.nav-cta {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius);
  transition: all 0.22s var(--ease);
}
.nav-cta:hover {
  background: var(--primary);
  color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-dark);
  transition: all 0.25s var(--ease);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}

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

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 280px;
  margin-top: 12px;
  color: rgba(255,255,255,0.6);
}

.footer-logo-img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-col h5 {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

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

.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.78rem; margin: 0; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ─── Cards ─── */
.card {
  background: var(--white);
  border: 1px solid var(--neutral-dark);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover {
  box-shadow: 0 12px 40px rgba(58,68,93,0.1);
  transform: translateY(-3px);
}

/* ─── Page Header Banner ─── */
.page-header {
  background: var(--neutral);
  padding: 120px 0 64px;
  text-align: center;
  position: relative;
}
.page-header::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--secondary);
  margin: 20px auto 0;
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.bg-neutral { background: var(--neutral); }
.bg-primary { background: var(--primary); color: var(--white); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  :root { --section-pad: 60px; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    padding: 32px;
    gap: 24px;
    border-bottom: 1px solid var(--neutral-dark);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    z-index: 99;
  }

  .nav-links.open a { font-size: 0.9rem; letter-spacing: 0.1em; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .btn { padding: 12px 24px; font-size: 0.68rem; }
}
