/* ============================================================
   STONE & GRAIN FLOORING — Global Stylesheet
   Aesthetic: Editorial Minimalism — warm neutrals, precise type,
   generous whitespace, restrained but confident.
   Brand Colors: PMS 321C teal, Cool Gray 11C, PMS 1805C red,
                 PMS 152C orange, PMS 583C lime, PMS 646C blue
   ============================================================ */

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

/* ── Variables ───────────────────────────────────────────── */
:root {
  /* Brand palette */
  --teal:     #008c99;   /* PMS 321C  — primary brand */
  --teal-dk:  #006b75;   /* darkened teal for hover states */
  --gray:     #717074;   /* Cool Gray 11C */
  --gray-dk:  #3a3940;   /* deep gray for headings/body text */
  --red:      #bf311a;   /* PMS 1805C — strong accent */
  --orange:   #f3901d;   /* PMS 152C  — CTA/highlight */
  --lime:     #afbd22;   /* PMS 583C  — secondary accent */
  --blue:     #4e8abe;   /* PMS 646C  — secondary */

  /* Semantic aliases (keeps all HTML working unchanged) */
  --stone:    #1e1e1e;          /* near-black for text */
  --warm:     #f2f8f9;          /* very light teal tint for backgrounds */
  --sand:     #d6eaec;          /* light teal border/divider tone */
  --clay:     var(--teal);      /* primary accent → teal */
  --ash:      var(--gray);      /* muted text → brand gray */
  --white:    #ffffff;
  --accent:   var(--red);       /* strong accent → brand red */


  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'DM Sans', sans-serif;

  --max-w: 1200px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--white);
  color: var(--stone);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }
p  { font-size: 1rem; color: var(--ash); max-width: 60ch; }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  display: block;
  margin-bottom: 1rem;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
section { padding: 6rem 0; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(253, 252, 251, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--sand);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--stone);
}
.nav-logo span { color: var(--clay); }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--clay);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--stone); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--stone); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--stone);
  color: var(--stone);
  transition: all 0.3s var(--ease);
}
.nav-cta:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--stone);
  transition: all 0.3s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--sand);
  padding: 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 1.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--stone); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  transition: all 0.3s var(--ease);
}
.btn-dark {
  background: var(--stone);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--teal);
}
.btn-outline {
  border: 1px solid var(--stone);
  color: var(--stone);
}
.btn-outline:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.btn-clay {
  background: var(--teal);
  color: var(--white);
}
.btn-clay:hover {
  background: var(--teal-dk);
}

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 4rem;
  background: var(--warm);
  border-bottom: 1px solid var(--sand);
}
.page-hero .eyebrow { margin-bottom: 0.75rem; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1rem; }
.page-hero p { font-size: 1.1rem; }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  width: 40px;
  height: 1px;
  background: var(--clay);
  margin: 1.5rem 0;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--sand);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover {
  box-shadow: 0 12px 40px rgba(28,26,24,0.08);
  transform: translateY(-3px);
}
.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--sand);
}
.card-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--sand) 0%, var(--warm) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ash);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card-body { padding: 1.75rem; }
.card-body h4 { margin-bottom: 0.5rem; font-weight: 400; }
.card-body p { font-size: 0.9rem; margin-top: 0.5rem; }

/* ── Grid helpers ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: #005f68;
  color: rgba(242,248,249,0.75);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 2rem;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.9rem; max-width: 28ch; line-height: 1.8; }
.footer-col h5 {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a {
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ── Animations ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Form elements ───────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--warm);
  border: 1px solid var(--sand);
  padding: 0.85rem 1rem;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--stone);
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--clay); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
