/* ============================================================
   SUBTEXT CREATIVE WORKS — shared.css
   Loaded by every page via <link rel="stylesheet" href="/shared.css">
   (or "../shared.css" from pages one level deep, e.g. services/, blog/)

   Contains: design tokens, reset, layout utilities, corner marks,
   navigation (desktop + mobile drawer), footer, social icons,
   and all responsive overrides that apply site-wide.

   Page-specific styles (hero, service cards, pricing, forms, etc.)
   stay in each page's own <style> block.
============================================================ */


/* ============================================================
   DESIGN TOKENS
   Change here to affect every page at once.
============================================================ */
:root {
  --bg-primary:    #FAFAF8;   /* warm off-white: main page background */
  --bg-secondary:  #F5F4F0;   /* slightly warmer: alternate section bg */
  --bg-dark:       #2C2C2A;   /* near-black: footer only */

  --text-primary:   #2C2C2A;  /* near-black: headings and main body */
  --text-secondary: #5F5E5A;  /* mid-gray: supporting body copy */
  --text-muted:     #888780;  /* lightest: labels, captions, hints */
  --text-on-dark:   #FAFAF8;  /* warm off-white: text on dark footer */

  --hairline:   #B4B2A9;      /* all dividers, borders, corner marks */
  --accent-top: #2C2C2A;      /* 2px top border across the page */

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', sans-serif;
  --font-body:  'Times New Roman', Times, serif;

  --max-width: 1100px;
  --section-pad: 100px 5%;
}


/* ============================================================
   RESET + BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.8;
  border-top: 2px solid var(--accent-top);
}


/* ============================================================
   SHARED LAYOUT UTILITIES
============================================================ */

/* Centers and constrains content width */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

/* Thin horizontal hairline divider */
.divider {
  width: 100%;
  height: 0.5px;
  background: var(--hairline);
  border: none;
}

/* Small all-caps section label, like a category tag */
.label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ============================================================
   CORNER MARKS
   L-shaped thin lines used as quiet geometric decorators.
   Applied with position: absolute inside a relative parent.
============================================================ */
.corner-mark {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--hairline);
  border-style: solid;
}

.corner-mark.top-left {
  top: 28px;
  left: 28px;
  border-width: 0.5px 0 0 0.5px;
}

.corner-mark.bottom-right {
  bottom: 28px;
  right: 28px;
  border-width: 0 0.5px 0.5px 0;
}

.corner-mark.top-left-dark {
  top: 28px;
  left: 28px;
  border-width: 0.5px 0 0 0.5px;
  border-color: #4a4948;
}


/* ============================================================
   NAVIGATION — desktop
============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 0.5px solid var(--hairline);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand wordmark */
.nav-brand {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-decoration: none;
}

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

.nav-links a {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}


/* ============================================================
   NAVIGATION — mobile hamburger + full-screen drawer
============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 0.5px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg-primary);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 36px;
  gap: 0;
  border-top: 2px solid var(--text-primary);
}

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

.nav-drawer a {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 42px;
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--hairline);
  width: 100%;
}


/* ============================================================
   UNDERSTATED TEXT-LINK CTA  (used on multiple pages)
============================================================ */
.cta-link {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 0.5px solid var(--hairline);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cta-link:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.cta-link .arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.cta-link:hover .arrow {
  transform: translateX(3px);
}


/* ============================================================
   FOOTER
============================================================ */
.footer {
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}

.footer-top-rule {
  width: 100%;
  height: 0.5px;
  background: #3a3938;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 0 64px;
  border-bottom: 0.5px solid #3a3938;
}

.footer-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.2;
  color: var(--text-on-dark);
}

.footer-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
}

.footer-contact-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a4948;
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-links a {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--hairline);
  text-decoration: none;
  border-bottom: 0.5px solid #3a3938;
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-contact-links a:hover {
  color: var(--text-on-dark);
  border-color: #888780;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3a3938;
  padding: 24px 0;
}

/* Social icons row */
.footer-social-row { margin-top: 24px; }

.social-group-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a4948;
  display: block;
  margin-bottom: 14px;
}

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

.social-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.social-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.social-icon-item:hover .social-circle {
  background: rgba(255,255,255,0.06);
}

.social-icon-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a4948;
  text-align: center;
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.footer-nav-links {
  display: flex;
  gap: 24px;
}

.footer-nav-links a {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3a3938;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav-links a:hover {
  color: #4a4948;
}


/* ============================================================
   RESPONSIVE: MOBILE
   Breakpoint: 768px
============================================================ */
@media (max-width: 768px) {
  :root {
    --section-pad: 64px 5%;
  }

  /* Show hamburger, hide desktop links */
  .hamburger { display: flex; }
  .nav-links  { display: none; }

  /* Corner marks clutter small screens */
  .corner-mark { display: none; }

  /* Footer stacks vertically */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0 48px;
  }
}
