/* ═══════════════════════════════════════
   Espresstechs LLC — Custom Styles
   ═══════════════════════════════════════ */

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

:root {
  --forest-800: #1a4d2e;
  --forest-700: #2d4d31;
  --forest-600: #38613d;
  --forest-500: #4a7c4e;
  --forest-400: #6a9a6e;
  --forest-200: #b8d1bc;
  --forest-100: #dce8df;
  --forest-50:  #f0f5f1;
  --cream-50:  #fdfbf7;
  --cream-100: #faf5ec;
  --cream-200: #f5edd8;
  --wheat-400: #d4a574;
  --wheat-500: #c4945e;
  --wheat-600: #a87a48;
  --bark-800:  #3e2719;
  --shadow-sm: 0 2px 8px rgba(26, 77, 46, 0.06);
  --shadow-md: 0 8px 30px rgba(26, 77, 46, 0.10);
  --shadow-lg: 0 16px 60px rgba(26, 77, 46, 0.14);
  --radius-card: 20px;
  --radius-card-lg: 28px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream-50);
  color: var(--bark-800);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

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

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--forest-100);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--forest-800);
}

.nav-logo-icon {
  color: var(--forest-700);
}

.nav-logo-text {
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bark-800);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--forest-50);
  color: var(--forest-700);
}

.nav-cta {
  background: var(--forest-800) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--forest-700) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--forest-800);
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: var(--forest-50);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  background: var(--forest-800);
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(106, 154, 110, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(212, 165, 116, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Main hero card */
.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card-lg);
  padding: 48px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 165, 116, 0.2);
  border: 1px solid rgba(212, 165, 116, 0.3);
  color: var(--wheat-400);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-card-badge svg {
  opacity: 0.7;
}

.hero-headline {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-accent {
  color: var(--wheat-400);
  font-style: italic;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--wheat-400);
  color: var(--bark-800);
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.35);
}

.btn-primary:hover {
  background: var(--wheat-500);
  box-shadow: 0 8px 30px rgba(212, 165, 116, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Floating stat cards */
.hero-floats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  position: relative;
}

.float-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s ease, background 0.3s;
}

.float-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}

.float-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 165, 116, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wheat-400);
  flex-shrink: 0;
}

.float-card-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.float-card-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.float-card-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
}

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

.float-card-3 {
  grid-column: 1 / -1;
}

/* ─── SECTION SHARED ─── */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-500);
  background: var(--forest-100);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--forest-800);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--bark-800);
  opacity: 0.7;
  line-height: 1.7;
}

/* ─── PRODUCTS ─── */
.products {
  background: var(--cream-50);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--forest-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--forest-800);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}

.product-body {
  padding: 28px;
}

.product-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest-800);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--bark-800);
  opacity: 0.7;
  line-height: 1.65;
}

/* ─── ABOUT ─── */
.about {
  background: var(--forest-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.about-img-float {
  position: absolute;
  bottom: -32px;
  right: -24px;
  width: 55%;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--forest-50);
}

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

.about-stat {
  position: absolute;
  top: -20px;
  right: 40px;
  background: var(--forest-800);
  color: #fff;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-stat-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wheat-400);
}

.about-stat-label {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.about-content {
  max-width: 520px;
}

.about-content .section-tag {
  margin-bottom: 20px;
}

.about-content .section-title {
  margin-bottom: 28px;
}

.about-text {
  font-size: 1rem;
  color: var(--bark-800);
  opacity: 0.78;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-values {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--forest-100);
  color: var(--forest-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-item strong {
  display: block;
  font-size: 1rem;
  color: var(--forest-800);
  margin-bottom: 4px;
}

.value-desc {
  font-size: 0.9rem;
  color: var(--bark-800);
  opacity: 0.65;
  line-height: 1.6;
}

/* ─── VISIT ─── */
.visit {
  background: var(--cream-50);
}

.visit-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--forest-100);
}

.visit-content {
  background: var(--forest-800);
  padding: 56px 48px;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.visit-content .section-tag {
  background: rgba(212, 165, 116, 0.2);
  color: var(--wheat-400);
}

.visit-content .section-title {
  color: #fff;
}

.visit-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 40px;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.visit-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.visit-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--wheat-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.visit-detail strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 4px;
}

.visit-detail span,
.visit-detail a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.visit-detail a:hover {
  color: var(--wheat-400);
}

.visit-map {
  min-height: 480px;
  background: var(--forest-100);
}

/* ─── CONTACT ─── */
.contact {
  background: var(--forest-50);
}

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-card-lg);
  padding: 56px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--forest-100);
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header .section-title {
  margin-bottom: 16px;
}

.contact-header .section-desc {
  margin-bottom: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-700);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 1.5px solid var(--forest-200);
  border-radius: 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--bark-800);
  background: var(--cream-50);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--forest-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--forest-500);
  box-shadow: 0 0 0 3px rgba(74, 124, 78, 0.12);
}

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

.form-success {
  text-align: center;
  padding: 48px 24px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--forest-100);
  color: var(--forest-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.form-success h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest-800);
  margin-bottom: 12px;
}

.form-success p {
  font-size: 0.95rem;
  color: var(--bark-800);
  opacity: 0.7;
  line-height: 1.6;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--forest-900);
  color: rgba(255, 255, 255, 0.6);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-logo svg {
  color: var(--wheat-400);
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col strong {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wheat-400);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  color: #fff;
}

.footer-address {
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: normal;
  opacity: 0.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 0.82rem;
  opacity: 0.45;
}

/* ─── ANIMATIONS ─── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up {
  transform: translateY(24px);
}

.reveal-left {
  transform: translateX(-24px);
}

.reveal-right {
  transform: translateX(24px);
}

.revealed.reveal-up,
.revealed.reveal-left,
.revealed.reveal-right {
  opacity: 1;
  transform: none;
}

/* ─── MOBILE NAV ─── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(253, 251, 247, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--forest-100);
  padding: 16px 24px 24px;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--bark-800);
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover {
  background: var(--forest-50);
  color: var(--forest-700);
}

.mobile-menu .nav-cta {
  text-align: center;
  margin-top: 8px;
  background: var(--forest-800);
  color: #fff !important;
  border-radius: 12px;
  font-weight: 600;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-floats {
    max-width: 480px;
  }

  .about-grid {
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

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

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero-card {
    padding: 32px 28px;
  }

  .hero-headline {
    font-size: 1.8rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-floats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .float-card-3 {
    grid-column: auto;
  }

  .section {
    padding: 72px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-img-float {
    right: 0;
    bottom: -24px;
  }

  .visit-card {
    grid-template-columns: 1fr;
  }

  .visit-content {
    padding: 40px 28px;
  }

  .visit-map {
    min-height: 300px;
  }

  .contact-card {
    padding: 36px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 480px) {
  .hero-floats {
    grid-template-columns: 1fr;
  }

  .float-card {
    padding: 16px 18px;
  }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 0;
  }

  .revealed.reveal-up,
  .revealed.reveal-left,
  .revealed.reveal-right {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}
