/* ========================================================================
   UNLIMITED VISION — SHARED DESIGN SYSTEM
   Used by: index.html, about.html, gallery.html, contact.html, card.html
   ======================================================================== */

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ----- Tokens ----- */
:root {
  --bone: #F4EFE6;
  --bone-2: #EBE4D6;
  --paper: #FBF8F2;
  --ink: #1A1814;
  --ink-soft: #3A332B;
  --muted: #8C8073;
  --rule: #D9D2C5;
  --clay: #B85C38;
  --clay-dark: #93472A;
  --sage: #4A5240;
  --gold: #E8C7A1;

  --display: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1440px;
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'ss02';
}

/* Paper grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ----- Typography ----- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.eyebrow.dark { color: var(--ink); }
.eyebrow .dot { display: inline-block; width: 6px; height: 6px; background: var(--clay); border-radius: 50%; margin-right: 0.6em; vertical-align: middle; transform: translateY(-1px); }
.eyebrow .section-num { font-family: var(--display); font-style: italic; color: var(--clay); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
h2 .accent, h1 .accent { font-style: italic; font-weight: 300; color: var(--clay-dark); }

.display-xl { font-size: clamp(3rem, 9.5vw, 8.5rem); }
.display-lg { font-size: clamp(2.4rem, 6.5vw, 5.5rem); }
.display-md { font-size: clamp(1.8rem, 4vw, 3.25rem); }
.display-sm { font-size: clamp(1.4rem, 2.5vw, 2rem); }

p { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s, color 0.3s, border-color 0.3s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--clay); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); }
.btn-ghost.on-dark { color: var(--bone); border-color: rgba(244,239,230,0.45); }
.btn-ghost.on-dark:hover { background: var(--bone); color: var(--ink); }
.btn-clay { background: var(--clay); color: var(--bone); }
.btn-clay:hover { background: var(--clay-dark); }
.btn .arrow { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.btn:hover .arrow { transform: translateX(4px); }

/* ----- Layout primitives ----- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 2; }
section { position: relative; z-index: 2; }
.section-pad { padding-block: clamp(4rem, 9vw, 9rem); }
.section-pad-sm { padding-block: clamp(3rem, 6vw, 5rem); }
.rule { border: 0; height: 1px; background: var(--rule); margin: 0; }

/* ----- Topbar ----- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--rule);
}
.topbar a { color: var(--ink); }
.topbar .pill { display: inline-flex; gap: 0.5em; align-items: center; }
.topbar .pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.topbar .right { display: flex; gap: 1.5rem; }
.topbar .right span { color: var(--muted); }

/* ----- Nav ----- */
nav.main {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity 0.3s;
}
.logo:hover img { opacity: 0.85; }
@media (max-width: 600px) {
  .logo img { height: 40px; }
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.nav-links a {
  position: relative;
  padding-block: 0.4em;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--clay);
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--clay); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-cta .phone { font-family: var(--display); font-size: 1rem; letter-spacing: 0; }

.hamburger { display: none; width: 36px; height: 36px; position: relative; }
.hamburger span {
  position: absolute; left: 6px; right: 6px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s, opacity 0.2s;
}
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 18px; }
.hamburger span:nth-child(3) { top: 24px; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bone);
  z-index: 100;
  padding: 5rem var(--gutter) var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav ul { list-style: none; display: grid; gap: 1.5rem; margin-bottom: 3rem; }
.mobile-nav a {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
  display: block;
}
.mobile-nav .mobile-cta { display: grid; gap: 1rem; max-width: 280px; }
.mobile-nav .close {
  position: absolute;
  top: 1.4rem; right: var(--gutter);
  width: 36px; height: 36px;
  z-index: 110;
}
.mobile-nav .close::before, .mobile-nav .close::after {
  content: ''; position: absolute; left: 6px; right: 6px; top: 17px; height: 1.5px;
  background: var(--ink);
}
.mobile-nav .close::before { transform: rotate(45deg); }
.mobile-nav .close::after { transform: rotate(-45deg); }

/* ----- Page hero (for sub-pages) ----- */
.page-hero {
  padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 5vw, 5rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.page-hero .eyebrow { display: block; margin-bottom: 1.4rem; }
.page-hero h1 { margin-bottom: 1.5rem; max-width: 14ch; }
.page-hero h1 .it { font-style: italic; font-weight: 300; color: var(--clay-dark); }
.page-hero .lead { max-width: 56ch; }
.page-hero .breadcrumb {
  position: absolute;
  top: 2rem; right: var(--gutter);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-hero .breadcrumb a { color: var(--ink); }
.page-hero .breadcrumb .sep { color: var(--clay); margin: 0 0.5em; }

/* ----- Footer ----- */
footer {
  background: var(--ink);
  color: var(--bone);
  padding-block: 4rem 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(244,239,230,0.12);
}
.footer-brand .footer-logo { display: block; height: 64px; width: auto; margin-bottom: 1.2rem; }
.footer-brand .footer-tag {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 1rem; font-weight: 500;
}
.footer-brand p { color: rgba(244,239,230,0.6); max-width: 32ch; font-size: 0.95rem; }
.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.45);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: grid; gap: 0.7rem; }
.footer-col a { color: var(--bone); font-size: 0.95rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--clay); }
.footer-col p { color: rgba(244,239,230,0.65); font-size: 0.95rem; line-height: 1.5; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 2rem;
  font-size: 0.78rem;
  color: rgba(244,239,230,0.45);
  letter-spacing: 0.05em;
}
.footer-bottom a { color: rgba(244,239,230,0.45); }
.footer-bottom a:hover { color: var(--bone); }
.footer-wordmark {
  font-family: var(--display);
  font-size: clamp(4rem, 18vw, 16rem);
  line-height: 0.85;
  color: rgba(244,239,230,0.06);
  letter-spacing: -0.04em;
  text-align: center;
  padding-top: 2rem;
  user-select: none;
  pointer-events: none;
  font-weight: 300;
  overflow: hidden;
  white-space: nowrap;
}
.footer-wordmark .green { color: rgba(82, 217, 49, 0.10); font-style: italic; }

/* ----- Forms ----- */
form.inquiry {
  background: var(--paper);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid var(--rule);
  position: relative;
}
form.inquiry .form-label {
  font-family: var(--display);
  font-style: italic;
  color: var(--clay);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
form.inquiry h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-bottom: 1.8rem;
  font-weight: 400;
}
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0.65em 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.3s;
  border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-bottom-color: var(--clay);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
form.inquiry .btn-primary { width: 100%; justify-content: center; margin-top: 0.5rem; }
.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.5;
}

/* ----- Animations ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.visible { animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
.reveal.d4 { animation-delay: 0.32s; }
.reveal.d5 { animation-delay: 0.40s; }

/* CTA strip used at bottom of sub-pages */
.cta-strip {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.cta-strip h2 { color: var(--bone); margin-bottom: 1.2rem; max-width: 18ch; }
.cta-strip h2 .it { font-style: italic; color: var(--gold); font-weight: 300; }
.cta-strip p { color: rgba(244,239,230,0.7); max-width: 52ch; margin-bottom: 2rem; }
.cta-strip .ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .nav-links, .nav-cta .phone { display: none; }
  .hamburger { display: block; }
  .topbar .right { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .page-hero .breadcrumb { display: none; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}
