/* ============================================================
   EVERGRAVEL DESIGN SYSTEM
   Premium landscaping aesthetic inspired by Techo-Bloc
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Colors */
  --color-black: #1a1a1a;
  --color-white: #ffffff;
  --color-off-white: #faf9f7;
  --color-warm-gray: #e8e5e0;
  --color-mid-gray: #999999;
  --color-text: #666666;
  --color-text-light: #888888;
  --color-accent: #b8962e;
  --color-accent-dark: #9a7d26;
  --color-overlay: rgba(0, 0, 0, 0.35);
  --color-overlay-dark: rgba(0, 0, 0, 0.55);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-wide: 1440px;
  --nav-height: 80px;
  --nav-height-sub: 50px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 350ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 100px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-white);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.heading-lg {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
}

.heading-md {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

.heading-sm {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
}

.body-md {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-light);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--compact {
  padding: var(--space-xl) 0;
}

.section--dark {
  background-color: var(--color-black);
  color: var(--color-white);
}

.section--gray {
  background-color: var(--color-warm-gray);
}

.section--white {
  background-color: var(--color-white);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Split layout (50/50) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
}

.split__image {
  position: relative;
  overflow: hidden;
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 0.08;
}

/* Primary: white fill, black border */
.btn--primary {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-black);
}

.btn--primary:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--primary:hover::after {
  opacity: 0;
}

/* Secondary: transparent, white border (for dark backgrounds) */
.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-black);
}

.btn--secondary:hover::after {
  opacity: 0;
}

/* Dark: black fill */
.btn--dark {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.btn--dark:hover {
  background: transparent;
  color: var(--color-black);
}

.btn--dark:hover::after {
  opacity: 0;
}

/* Accent: gold fill */
.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn--accent:hover::after {
  opacity: 0;
}

/* Button row */
.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.site-nav.is-scrolled {
  box-shadow: var(--shadow-md);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.site-nav__logo {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-black);
  flex-shrink: 0;
}

.site-nav__logo img {
  height: 36px;
  width: auto;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav__link {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-black);
  position: relative;
  padding: 4px 0;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  width: 100%;
}

.site-nav__cta {
  margin-left: var(--space-sm);
}

/* Mobile hamburger */
.site-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.site-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  transition: all var(--transition-fast);
}

/* Mobile menu */
.site-nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  padding: var(--space-xl) var(--space-lg);
  z-index: 999;
  overflow-y: auto;
}

.site-nav__mobile.is-open {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  animation: slideDown 0.3s var(--ease-out);
}

.site-nav__mobile .site-nav__link {
  font-size: 1.25rem;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-warm-gray);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-lg);
}

.hero__headline {
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero__buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
}

.section-header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header__sub {
  color: var(--color-text);
  margin-top: var(--space-xs);
  max-width: 550px;
}

/* ============================================================
   PRODUCT COLOR CARDS
   ============================================================ */
.color-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--color-warm-gray);
}

.color-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.color-card:hover .color-card__image {
  transform: scale(1.08);
}

.color-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  transition: background var(--transition-base);
}

.color-card:hover .color-card__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
}

.color-card__name {
  color: var(--color-white);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

/* ============================================================
   USE CASE CARDS (4-col image grid like Techo-Bloc trends)
   ============================================================ */
.use-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 3/4;
  cursor: pointer;
}

.use-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.use-card:hover .use-card__image {
  transform: scale(1.05);
}

.use-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.use-card__title {
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
}

/* ============================================================
   HOW IT WORKS (3-step)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
  position: relative;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.step__title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.step__desc {
  color: var(--color-text);
  font-size: 0.9375rem;
}

/* Connector lines between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(50% + 48px);
  width: calc(100% - 96px);
  height: 2px;
  background: var(--color-warm-gray);
}

/* ============================================================
   BENEFITS LIST (checkmark style)
   ============================================================ */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.0625rem;
  font-weight: 500;
}

.benefit-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ============================================================
   FULL-WIDTH BANNER (Calculator CTA / Catalog section)
   ============================================================ */
.banner {
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay-dark);
  z-index: 1;
}

.banner__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.banner__content .display-lg {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.banner__content .body-lg {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
}

/* ============================================================
   SHOP / PRODUCT GRID
   ============================================================ */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-warm-gray);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
  transform: scale(1.06);
}

.product-card__body {
  padding: var(--space-md);
}

.product-card__title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.product-card__desc {
  color: var(--color-text);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.product-card__price {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-black);
}

.product-card__actions {
  margin-top: var(--space-sm);
}

/* Shopify Buy Button container */
.shopify-embed {
  margin-top: var(--space-sm);
}

/* ============================================================
   FORMS (Sample Request / Contact)
   ============================================================ */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
  color: var(--color-black);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-warm-gray);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-black);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 150, 46, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand__logo {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.footer-brand__desc {
  color: var(--color-mid-gray);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-col__title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.footer-col__link {
  display: block;
  color: var(--color-mid-gray);
  font-size: 0.9375rem;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.footer-col__link:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom__copy {
  color: var(--color-mid-gray);
  font-size: 0.8125rem;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-mid-gray);
  transition: all var(--transition-fast);
}

.footer-social__link:hover {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calculator {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}

.calculator__result {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  text-align: center;
}

.calculator__result-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.calculator__result-label {
  color: var(--color-text);
  font-size: 0.9375rem;
  margin-top: var(--space-xs);
}

/* ============================================================
   PAGE HEADER (for interior pages)
   ============================================================ */
.page-header {
  margin-top: var(--nav-height);
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-warm-gray);
}

.page-header__title {
  margin-bottom: var(--space-sm);
}

.page-header__desc {
  max-width: 650px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split__image { min-height: 350px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--space-lg); }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --space-3xl: 5rem;
    --space-2xl: 4rem;
  }

  .site-nav__links {
    display: none;
  }

  .site-nav__toggle {
    display: flex;
  }

  .hero {
    height: 75vh;
    min-height: 500px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }
}

/* ============================================================
   WORDPRESS ADMIN BAR FIX
   ============================================================ */
body.admin-bar .site-nav {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-nav {
    top: 46px;
  }
}
