/* ===========================================================
   NOVELLO STONE — Design tokens & base system
   Palette drawn from stone and tool materials, not generic
   "luxury marble" cliches.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* --- Color tokens --- */
  --basalt:        #1C1B19;   /* primary dark — nav, headers */
  --basalt-soft:    #2A2825;  /* lifted dark surface */
  --limestone:      #F2EFE9;  /* main background */
  --limestone-dim:  #E9E4DB;  /* recessed panel */
  --travertine:     #8A7A66;  /* secondary text / warm neutral */
  --oxide:          #B5472B;  /* single accent — diamond-blade wear */
  --oxide-dark:     #8F3620;
  --slate:          #3D4A47;  /* restoration pillar tone */
  --slate-soft:     #54635F;
  --hairline:       #C9C2B4; /* borders / dividers */
  --white:          #FFFFFF;

  /* --- Type tokens --- */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* --- Spacing scale --- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  /* --- Layout --- */
  --max-width: 1180px;
  --radius: 2px; /* near-zero radius — precision, not softness */
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--limestone);
  color: var(--basalt);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--basalt);
  line-height: 1.08;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; letter-spacing: 0; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; letter-spacing: 0.04em; }

p { color: var(--basalt); }

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

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxide);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--oxide);
  display: inline-block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

section { padding: var(--space-6) 0; }

@media (max-width: 720px) {
  section { padding: var(--space-5) 0; }
  .container { padding: 0 var(--space-2); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95em 1.8em;
  border: 1px solid var(--basalt);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  background: transparent;
  color: var(--basalt);
}

.btn-primary {
  background: var(--oxide);
  border-color: var(--oxide);
  color: var(--limestone);
}
.btn-primary:hover { background: var(--oxide-dark); border-color: var(--oxide-dark); }

.btn-ghost-dark {
  border-color: var(--limestone);
  color: var(--limestone);
}
.btn-ghost-dark:hover { background: var(--limestone); color: var(--basalt); }

.btn-ghost:hover { background: var(--basalt); color: var(--limestone); }

/* --- Nav --- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(28, 27, 25, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 194, 180, 0.18);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--limestone);
  text-transform: uppercase;
}
.brand span { color: var(--oxide); }
.brand { display: inline-flex; align-items: center; gap: 0.65em; }
.brand-mark { width: 52px; height: 52px; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45)); }

.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--limestone);
  opacity: 0.78;
  transition: opacity 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--oxide);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--basalt);
  background: var(--limestone);
  padding: 0.6em 1.3em;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--oxide); color: var(--limestone); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--limestone);
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .mobile-menu {
    position: fixed;
    top: 76px; left: 0; right: 0; bottom: 0;
    background: var(--basalt);
    z-index: 99;
    display: none;
    flex-direction: column;
    padding: var(--space-4) var(--space-3);
    gap: var(--space-3);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    font-family: var(--font-mono);
    color: var(--limestone);
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(201,194,180,0.15);
    padding-bottom: var(--space-2);
  }
}

/* --- Footer --- */
footer {
  background: var(--basalt);
  color: var(--limestone);
  padding: var(--space-5) 0 var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(201,194,180,0.18);
}
.footer-grid h4 {
  font-size: 0.82rem;
  color: var(--travertine);
  margin-bottom: var(--space-2);
}
.footer-grid p, .footer-grid a {
  font-size: 0.92rem;
  color: var(--limestone);
  opacity: 0.85;
  display: block;
  margin-bottom: 0.5em;
}
.footer-grid a:hover { opacity: 1; color: var(--oxide); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.55;
  flex-wrap: wrap;
  gap: var(--space-1);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .footer-bottom { flex-direction: column; }
}

/* --- Placeholder image blocks (no real photography yet) --- */
.placeholder-visual {
  position: relative;
  background: var(--basalt-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,194,180,0.2);
}
.placeholder-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(201,194,180,0.06) 0px,
    rgba(201,194,180,0.06) 1px,
    transparent 1px,
    transparent 14px
  );
}
.placeholder-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--travertine);
  text-align: center;
  z-index: 1;
  padding: var(--space-2);
}
.placeholder-label .tag {
  display: block;
  color: var(--oxide);
  font-size: 0.7rem;
  margin-top: 0.5em;
}

/* --- Brand illustrations (custom SVG, replacing photo placeholders) --- */
.brand-illustration {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(201,194,180,0.2);
  background: #1C1B19;
}

.caption-note {
  font-size: 0.82rem;
  color: var(--travertine);
}

/* --- Divider --- */
.hr {
  height: 1px;
  background: var(--hairline);
  border: none;
  width: 100%;
}
