/* ============================================
   131 ANALOGUE - Global Stylesheet
   style.css
   
   TABLE OF CONTENTS:
   1. CSS Variables (colors, fonts, spacing)
   2. Reset & Base Styles
   3. Typography
   4. Navigation
   5. Footer
   6. Buttons
   7. Section Utilities
   8. Responsive / Mobile
============================================ */


/* ============================================
   1. CSS VARIABLES
============================================ */
:root {
  /* Colors */
  --ink:          #141210;   /* Primary background */
  --ink-mid:      #2A2724;   /* Secondary background */
  --ink-light:    #3D3A35;   /* Borders, dividers */
  --cream:        #F5F0E8;   /* Primary text */
  --cream-mid:    #C8BFB0;   /* Secondary text */
  --cream-dim:    #8A8278;   /* Tertiary text */
  --amber:        #C8922A;   /* Primary accent */
  --amber-light:  #E8B84B;   /* Italic/highlight accent */
  --amber-dim:    #7A5A1A;   /* Subtle accent */

  /* Typography */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Jost', system-ui, sans-serif;

  /* Spacing */
  --space-xs:     0.5rem;
  --space-sm:     1rem;
  --space-md:     2rem;
  --space-lg:     4rem;
  --space-xl:     7rem;

  /* Layout */
  --max-width:    1200px;
  --gutter:       3rem;
}


/* ============================================
   2. RESET & BASE
============================================ */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.footer-bottom a {
  color: var(--cream-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: var(--amber);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--cream);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}


/* ============================================
   3. TYPOGRAPHY
============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 4vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p {
  font-weight: 300;
  color: var(--cream-mid);
}

em {
  font-style: italic;
  color: var(--amber-light);
}

/* Eyebrow label above headings */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--amber);
  flex-shrink: 0;
}


/* ============================================
   4. NAVIGATION
============================================ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--gutter);
  border-bottom: 1px solid var(--ink-light);
  position: sticky;
  top: 0;
  background: var(--ink);
  z-index: 100;
}

/* Logo */
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--cream);
  text-decoration: none;
}

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

/* Nav links */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-mid);
  font-weight: 400;
  transition: color 0.2s;
}

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

/* CTA link in nav */
.nav-links .nav-cta a {
  color: var(--amber);
  border-bottom: 1px solid var(--amber-dim);
  padding-bottom: 2px;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cream);
}


/* ============================================
   5. FOOTER
============================================ */
footer {
  border-top: 1px solid var(--ink-light);
  padding: var(--space-lg) var(--gutter);
  margin-top: var(--space-lg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-md);
  align-items: start;
}

.footer-brand .nav-logo {
  display: block;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--cream-dim);
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links ul a {
  font-size: 0.85rem;
  color: var(--cream-mid);
  transition: color 0.2s;
}

.footer-links ul a:hover {
  color: var(--amber);
}

.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.footer-contact p {
  font-size: 0.85rem;
  color: var(--cream-mid);
  margin-bottom: 0.4rem;
}

.footer-contact a {
  color: var(--cream-mid);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--amber);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-md) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--ink-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--cream-dim);
}

.footer-tpm {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}


/* ============================================
   6. BUTTONS
============================================ */

/* Primary button - amber outline */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn:hover {
  background: var(--amber);
  color: var(--ink);
}

/* Filled button variant */
.btn-filled {
  background: var(--amber);
  color: var(--ink);
}

.btn-filled:hover {
  background: var(--amber-light);
}


/* ============================================
   7. SECTION UTILITIES
============================================ */

/* Standard section padding */
.section {
  padding: var(--space-xl) var(--gutter);
}

/* Constrain content width */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Horizontal rule / divider */
.divider {
  border: none;
  border-top: 1px solid var(--ink-light);
  margin: var(--space-lg) 0;
}

/* Trust strip - 4 columns of credentials */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink-light);
  border-bottom: 1px solid var(--ink-light);
}

.trust-item {
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--ink-light);
}

.trust-item:last-child {
  border-right: none;
}

.trust-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.trust-desc {
  font-size: 0.82rem;
  color: var(--cream-mid);
  font-weight: 300;
}

/* Section header with label + title split */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ink-light);
  margin-bottom: var(--space-md);
  gap: var(--space-md);
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 400;
  white-space: nowrap;
}


/* ============================================
   8. RESPONSIVE / MOBILE
============================================ */
@media (max-width: 768px) {

  :root {
    --gutter: 1.5rem;
    --space-xl: 4rem;
    --space-lg: 2.5rem;
  }

  /* Mobile nav */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 2rem var(--gutter);
    border-bottom: 1px solid var(--ink-light);
  }

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

  .nav-toggle {
    display: flex;
  }

  /* Trust strip stacks on mobile */
  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-item:nth-child(2) {
    border-right: none;
  }

  .trust-item:nth-child(3) {
    border-top: 1px solid var(--ink-light);
  }

  .trust-item:nth-child(4) {
    border-top: 1px solid var(--ink-light);
    border-right: none;
  }

  /* Footer stacks on mobile */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* Section header stacks */
  .section-header {
    flex-direction: column;
    gap: 0.75rem;
  }
}
