/* ==========================================================
   DOZERWORX — Design Tokens
   ========================================================== */
:root {
  --gold: #FFB800;
  --gold-dark: #D99900;
  --gold-light: #FFE8AD;
  --black: #121212;
  --charcoal: #1E1E1E;
  --white: #FFFFFF;
  --gray-50: #F7F7F5;
  --gray-100: #EFEFEC;
  --gray-300: #C9C9C4;
  --gray-500: #8A8A85;
  --gray-700: #4A4A47;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.12);
  --container: 1180px;
}

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

/* Grid children default to their content's min-content width, which can force
   tracks wider than the container on narrow screens. Force them to shrink. */
.hero-grid > *,
.why-grid > *,
.quote-grid > *,
.quote-form > *,
.contact-grid > *,
.product-card > * {
  min-width: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.muted { color: var(--gray-500); font-weight: 500; font-size: 0.85em; text-transform: none; }

.icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-dark); box-shadow: var(--shadow-md); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); box-shadow: var(--shadow-md); }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--black);
  flex-shrink: 0;
}
.brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 26px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--black); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--black);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  font-family: var(--font-display);
}
.phone-link .icon { color: var(--gold-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 3px; background: var(--black); border-radius: 2px; }

/* ==========================================================
   Hero
   ========================================================== */
.hero { padding: 64px 0 72px; background: var(--gray-50); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-trust {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--gray-700);
}
.hero-trust strong { color: var(--black); }
.hero-trust li::before { content: "✓ "; color: var(--gold-dark); font-weight: 800; }

/* ==========================================================
   Media placeholders (stand-in for real photos/video)
   ========================================================== */
.media-placeholder {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gold-light), var(--gray-100));
  border: 2px dashed var(--gold-dark);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  text-align: center;
  padding: 20px;
}
.media-placeholder--tall { aspect-ratio: 3 / 4; }

/* Real equipment photos — replaces the dashed placeholder once a shot exists */
.media-photo {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-100);
}
.media-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-photo .photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(18,18,18,0.82), transparent);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 22px 14px 10px;
}
.media-placeholder .ph-icon {
  width: 25%;
  max-width: 72px;
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 1.4;
  opacity: 0.7;
}
.media-placeholder[data-label]::before {
  content: attr(data-label);
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  background: rgba(18,18,18,0.85);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: left;
}

/* ==========================================================
   Section shared
   ========================================================== */
section { padding: 72px 0; }

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 10px;
}
.section-title--light { color: var(--white); }
.section-sub {
  color: var(--gray-700);
  font-size: 1.05rem;
  max-width: 60ch;
  margin-bottom: 36px;
}

.badge {
  align-self: flex-start;
  background: var(--gold);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ==========================================================
   Why us
   ========================================================== */
.why-us { background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-grid--3 { grid-template-columns: repeat(3, 1fr); }

.why-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  border: 1px solid var(--gray-100);
}
.why-icon { font-size: 2rem; margin-bottom: 14px; }
.why-card h3 { font-size: 1.15rem; text-transform: none; margin-bottom: 8px; letter-spacing: 0; }
.why-card p { color: var(--gray-700); font-size: 0.95rem; }

/* ==========================================================
   Product showcase (single-machine listing, plantindex-inspired)
   ========================================================== */
.product { background: var(--gray-50); }

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--gold);
}
.product-media { border-radius: 0; aspect-ratio: auto; height: 100%; }
.product-media.has-photo {
  background: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-media.has-photo img { width: 100%; height: 100%; object-fit: contain; }
.product-info { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.product-info h3 { font-size: 2rem; letter-spacing: 0; }
.product-desc { color: var(--gray-700); font-size: 0.98rem; }

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--gray-100);
  margin: 6px 0 10px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem;
}
.spec-row dt { color: var(--gray-500); font-weight: 600; }
.spec-row dd { color: var(--black); font-weight: 700; text-align: right; }

/* ==========================================================
   Quote form
   ========================================================== */
.quote { background: var(--white); }

.quote-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.quote-intro p { color: var(--gray-700); font-size: 1.05rem; margin-bottom: 22px; max-width: 42ch; }
.quote-points { list-style: none; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.quote-points a { color: var(--gold-dark); }

.quote-form {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border: 1px solid var(--gray-100);
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row--full { grid-column: 1 / -1; }
.form-row label { font-size: 0.85rem; font-weight: 700; color: var(--gray-700); }
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  background: var(--white);
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(255,184,0,0.25);
}
.quote-form .btn { grid-column: 1 / -1; margin-top: 6px; }

/* ==========================================================
   Contact
   ========================================================== */
.contact { background: var(--black); color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.contact-lead { color: var(--gray-300); font-size: 1.1rem; margin-bottom: 26px; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--gray-300); }
.contact-details strong { color: var(--white); }
.contact .media-placeholder { border-color: var(--gold); background: linear-gradient(135deg, rgba(255,184,0,0.18), rgba(255,255,255,0.05)); }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--charcoal); color: var(--gray-300); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-inner .brand { color: var(--white); }
.footer-inner p { font-size: 0.85rem; }

/* ==========================================================
   Floating WhatsApp button
   ========================================================== */
.fab-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 200;
  transition: transform .15s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 30px; height: 30px; fill: var(--white); }

/* ==========================================================
   Proactive quote popup
   ========================================================== */
.quote-popup {
  position: fixed;
  bottom: 96px;
  right: 22px;
  width: 290px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px 18px 18px;
  z-index: 199;
  animation: quote-popup-in .25s ease;
}
.quote-popup[hidden] { display: none; }
@keyframes quote-popup-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.quote-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
}
.quote-popup-text { font-size: 0.95rem; font-weight: 600; color: var(--black); padding-right: 16px; margin-bottom: 14px; }
.quote-popup-actions { display: flex; flex-direction: column; gap: 8px; }
.quote-popup-yes,
.quote-popup-no {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
}
.quote-popup-yes { color: var(--whatsapp-dark); }
.quote-popup-no { color: var(--gray-500); }
.quote-popup-yes:hover,
.quote-popup-no:hover { text-decoration: underline; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .product-card { grid-template-columns: 1fr; }
  .product-media { aspect-ratio: 16/9; }
  .quote-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
  .nav-toggle { display: flex; }
  .header-actions .phone-link span { display: none; }
  .header-actions .btn-whatsapp { display: none; }
  .why-grid,
  .why-grid--3 { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; }
  section { padding: 52px 0; }
  .quote-popup { right: 12px; left: 12px; width: auto; bottom: 90px; }
}
