/* ============================================================
   Carpet Corner Kitchen & Bath — Global Styles
   Matches flooring site palette & typography
   ============================================================ */

:root {
  --teal:    #008c99;
  --teal-dk: #006b75;
  --stone:   #1e1e1e;
  --ash:     #717074;
  --warm:    #f2f8f9;
  --sand:    #d6eaec;
  --orange:  #f3901d;
  --red:     #bf311a;
  --white:   #ffffff;
  --nav-h:   68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--stone);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 300; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.1rem; font-weight: 400; }

p { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 0.95rem; color: var(--ash); line-height: 1.75; }

.eyebrow {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); display: block; margin-bottom: 0.6rem;
}

.divider { width: 32px; height: 1px; background: var(--teal); margin: 0.75rem 0 1.25rem; }

/* ── Buttons ── */
.btn {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.8rem 1.75rem; display: inline-block;
  cursor: pointer; transition: all 0.2s;
  border: none;
}
.btn-dark  { background: var(--stone); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-teal  { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dk); }
.btn-outline { border: 1px solid var(--stone); color: var(--stone); background: transparent; }
.btn-outline:hover { background: var(--stone); color: #fff; }
.btn-outline-white { border: 1px solid rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

/* ── Nav ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--sand);
  display: flex; align-items: center;
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  width: 100%; display: flex; align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ash); transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.ext { color: var(--teal); }
.nav-links a.sms-link { color: var(--red); }
.nav-cta {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--stone); color: var(--stone);
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--stone); color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--stone); display: block; transition: all 0.3s; }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--sand);
  padding: 1.5rem; z-index: 998; flex-direction: column; gap: 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--stone); padding: 0.5rem 0;
  border-bottom: 1px solid var(--warm);
}
.mobile-menu a.ext { color: var(--teal); }

/* ── Page Hero ── */
.page-hero {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 3rem;
  background: var(--warm);
  border-bottom: 1px solid var(--sand);
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { max-width: 52ch; margin-top: 0.5rem; }

/* ── Sections ── */
section { padding: 5rem 0; }
section.dark  { background: var(--teal-dk); }
section.stone { background: var(--stone); }
section.warm  { background: var(--warm); border-top: 1px solid var(--sand); }
section.red-cta { background: var(--red); padding: 3rem 0; text-align: center; }

.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { max-width: 56ch; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-2.reverse > *:first-child { order: 2; }
.grid-2.reverse > *:last-child  { order: 1; }

/* ── Cards ── */
.service-card {
  padding: 2rem; border: 1px solid var(--sand);
  background: var(--white); transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover { border-color: var(--teal); box-shadow: 0 4px 24px rgba(0,140,153,0.08); }
.service-card .icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h4 { margin-bottom: 0.5rem; color: var(--stone); }
.service-card p { font-size: 0.88rem; }
.card-link {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); display: inline-block; margin-top: 1rem;
}

/* ── Process Steps ── */
.process-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; margin-top: 2.5rem; }
.process-step { padding: 2rem 1.5rem; border: 1px solid rgba(255,255,255,0.1); }
.step-num {
  font-family: Georgia, serif; font-size: 2.5rem;
  font-weight: 300; color: var(--orange);
  opacity: 0.5; line-height: 1; margin-bottom: 0.75rem;
}
.process-step h4 { color: #f2f8f9; font-weight: 400; margin-bottom: 0.35rem; font-size: 0.95rem; }
.process-step p  { color: rgba(242,248,249,0.55); font-size: 0.8rem; }

/* ── Gallery Grid ── */
.gallery-grid { columns: 3; column-gap: 1rem; margin-top: 2rem; }
.gallery-item { break-inside: avoid; margin-bottom: 1rem; position: relative; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,63,70,0); display: flex;
  align-items: flex-end; padding: 1rem;
  transition: background 0.3s;
}
.gallery-item:hover .gallery-overlay { background: rgba(0,63,70,0.5); }
.gallery-label {
  color: #f2f8f9; font-family: Georgia, serif;
  font-size: 0.9rem; font-style: italic;
  opacity: 0; transform: translateY(6px);
  transition: all 0.3s;
}
.gallery-item:hover .gallery-label { opacity: 1; transform: translateY(0); }

/* ── Photo placeholder ── */
.photo-ph {
  background: linear-gradient(135deg, var(--sand) 0%, var(--warm) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--ash); font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ── Testimonials ── */
.testimonial-card { padding: 1.75rem; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); }
.stars { color: var(--orange); font-size: 0.85rem; margin-bottom: 0.75rem; }
.testimonial-card blockquote {
  font-family: Georgia, serif; font-size: 0.92rem;
  font-style: italic; color: rgba(242,248,249,0.85);
  line-height: 1.65; margin-bottom: 0.75rem;
}
.testimonial-card cite {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal);
}

/* ── Stats ── */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.stat { padding: 2rem; text-align: center; border-right: 1px solid var(--sand); }
.stat:last-child { border-right: none; }
.stat-num { font-family: Georgia, serif; font-size: 2.5rem; font-weight: 300; color: var(--stone); line-height: 1; }
.stat-label { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); margin-top: 0.35rem; }

/* ── Contact Form ── */
.form-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.form-info h3 { font-weight: 400; margin-bottom: 1rem; }
.contact-detail { margin-bottom: 1.25rem; }
.contact-detail h5 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.3rem;
}
.contact-detail p, .contact-detail a { font-size: 1rem; color: var(--ash); }
.contact-detail a:hover { color: var(--teal); }

.contact-form { background: var(--warm); border: 1px solid var(--sand); padding: 2.5rem; }
.contact-form h3 { font-size: 1.4rem; font-weight: 400; margin-bottom: 0.25rem; }
.contact-form > p { font-size: 0.85rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block; font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ash); margin-bottom: 0.35rem;
}
.form-input {
  width: 100%; background: var(--white); border: 1px solid var(--sand);
  padding: 0.7rem 0.9rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem; color: var(--stone);
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--teal); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ── Footer ── */
.site-footer { background: var(--teal-dk); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 1.5rem; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; color: rgba(242,248,249,0.6); line-height: 1.7; }
.footer-brand .hours { font-size: 0.78rem; color: rgba(242,248,249,0.45); margin-top: 0.75rem; }
.footer-col h5 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1rem;
}
.footer-col a {
  display: block; font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem; color: rgba(242,248,249,0.65);
  margin-bottom: 0.5rem; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem; color: rgba(242,248,249,0.4);
}
.footer-bottom a { color: rgba(242,248,249,0.45); margin-left: 1.25rem; }
.footer-bottom a:hover { color: #fff; }

/* ── Fade animations ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-2.reverse > * { order: unset; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .form-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .stats-row { grid-template-columns: 1fr; }
}
