/* =============================================
   CIS – Commercial Interior Supplies
   Main Stylesheet
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --crimson:     #9B1B2A;
  --crimson-dk:  #721320;
  --crimson-lt:  #BE2236;
  --charcoal:    #1C1C1C;
  --off-white:   #FAF8F6;
  --warm-grey:   #E8E4E0;
  --mid-grey:    #888;
  --text:        #333;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --nav-h:       72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

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

/* ---- Typography Helpers ---- */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.75rem;
}
.section-eyebrow.light { color: rgba(255,255,255,0.6); }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}
.section-heading.light { color: #fff; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--crimson);
  color: #fff;
}
.btn-primary:hover { background: var(--crimson-dk); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-full { width: 100%; text-align: center; }


/* ===================================================
   NAVIGATION
=================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.scrolled {
  background: rgba(28,28,28,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo img {
  height: 95px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links .nav-cta {
  padding: 0.5rem 1.25rem;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 2px;
  color: #fff;
}
.nav-links .nav-cta:hover { border-color: var(--crimson-lt); color: var(--crimson-lt); background: transparent; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(28,28,28,0.98);
  padding: 1rem 2rem 1.5rem;
  gap: 1rem;
}
.nav-mobile a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.nav-mobile .nav-cta {
  display: inline-block;
  width: fit-content;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 2px;
  color: #fff;
}
.nav-mobile.open { display: flex; }


/* ===================================================
   HERO
=================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-parallax {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(to bottom right, rgba(100,10,20,0.72), rgba(10,10,10,0.85)),
    url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?w=1800&q=80&auto=format') center/cover no-repeat;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 2rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: var(--nav-h);
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
  border-left: 2px solid var(--crimson);
  padding-left: 0.75rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-headline em {
  font-style: italic;
  color: rgba(255,255,255,0.85);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-body);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}


/* ===================================================
   ABOUT
=================================================== */
.about {
  padding: 8rem 0;
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-text p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.about-text strong { color: var(--charcoal); font-weight: 600; }

.about-quote {
  margin-top: 2rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--crimson);
}
.about-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--crimson);
  line-height: 1.4;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-badge {
  background: var(--crimson);
  border-radius: 4px;
  padding: 2.5rem;
  text-align: center;
  color: #fff;
}
.badge-number {
  display: block;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.badge-number sup { font-size: 2.5rem; vertical-align: top; margin-top: 0.5rem; display: inline-block; }
.badge-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
}

.about-detail-card {
  background: #fff;
  border-radius: 4px;
  padding: 1.75rem;
  border: 1px solid var(--warm-grey);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.detail-row svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--crimson);
}
.detail-row strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}
.detail-row span {
  display: block;
  font-size: 0.82rem;
  color: var(--mid-grey);
  margin-top: 1px;
}


/* ===================================================
   VALUES
=================================================== */
.values {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

.values-parallax {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(135deg, rgba(80,5,15,0.9) 0%, rgba(20,20,20,0.92) 100%),
    url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?w=1800&q=80&auto=format') center/cover no-repeat;
  will-change: transform;
}

.values-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.values-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.values-content .section-heading {
  margin-bottom: 3.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.value-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  transition: background 0.2s, transform 0.2s;
}
.value-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.value-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
}
.value-icon svg {
  width: 100%;
  height: 100%;
  color: var(--crimson-lt);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
}
.value-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
}


/* ===================================================
   CONTACT
=================================================== */
.contact-section {
  padding: 8rem 0;
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 6rem;
  align-items: start;
}

.contact-info p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: var(--charcoal);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--warm-grey);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
a.contact-item:hover {
  border-color: var(--crimson);
  box-shadow: 0 2px 12px rgba(155,27,42,0.08);
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-icon svg {
  width: 100%;
  height: 100%;
  color: var(--crimson);
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 2px;
}
.contact-item strong {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

/* FORM */
.contact-form-wrap {
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--warm-grey);
  padding: 2.5rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.req { color: var(--crimson); }

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--off-white);
  border: 1.5px solid var(--warm-grey);
  border-radius: 2px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(155,27,42,0.1);
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--mid-grey);
  margin-top: 0.75rem;
}


/* ===================================================
   FOOTER
=================================================== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3.5rem 2rem;
  gap: 3rem;
}

.footer-brand img.footer-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: right;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.25rem 2rem;
}
.footer-bar .container {
  display: flex;
  justify-content: center;
}
.footer-bar span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.03em;
}


/* ===================================================
   ANIMATIONS / SCROLL REVEALS
=================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 3rem; }
  .contact-grid { gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; gap: 1rem; }

  .about { padding: 5rem 0; }
  .values { padding: 5rem 0; }
  .contact-section { padding: 5rem 0; }

  .hero-content { padding-left: 1.5rem; padding-right: 1.5rem; }
  .container { padding: 0 1.5rem; }

  .contact-form-wrap { padding: 1.75rem; }
  .contact-form .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; }
  .footer-links { text-align: left; }

  .about-visual { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, .reveal { transition: none !important; animation: none !important; }
}
