/* ============================================
   Esquadra Gubin — Stylesheet
   ============================================ */

:root {
  --bg: #F7F6F0;
  --bg-alt: #EEEBDE;
  --ink: #201D18;
  --ink-soft: #55503F;
  --forest: #1F3A2E;
  --forest-light: #2E5443;
  --gold: #B98A2E;
  --line: #DEDACA;
  --white: #FFFFFF;

  --font-head: "Zilla Slab", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(32, 29, 24, 0.06);
  --max-width: 1160px;

  --transition: 180ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul { list-style: none; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.18;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { color: var(--ink-soft); max-width: 62ch; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1.5px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--forest);
  color: var(--white);
}
.btn-primary:hover { background: var(--forest-light); }
.btn-outline {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--white); }
.btn-small { padding: 9px 18px; font-size: 0.88rem; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 240, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
}
.brand-mark { color: var(--forest); display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--forest);
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--forest);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 76px 24px 64px;
}
.hero-copy {
  animation: rise-in 700ms ease both;
}
.hero-lead {
  margin-top: 18px;
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  animation: rise-in 700ms 120ms ease both;
}
.crate-art { width: 100%; height: auto; }
.hero-stat-card {
  position: absolute;
  bottom: -18px;
  left: -10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(32, 29, 24, 0.10);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}
.stat-figure {
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-strip {
  background: var(--forest);
  color: var(--white);
}
.hero-strip-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 16px 24px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.9);
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 44px; text-align: left; }
.section-head p { margin-top: 12px; }
.section-head.left p { margin-left: 0; }

/* ---------- About ---------- */
.about { background: var(--bg-alt); }
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.about-copy p { margin-top: 16px; }
.about-facts {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.about-facts li { font-size: 0.94rem; color: var(--ink-soft); }
.about-facts strong { color: var(--ink); }

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(32, 29, 24, 0.08);
  border-color: #CFC9B2;
}
.card-icon {
  display: inline-flex;
  color: var(--forest);
  margin-bottom: 16px;
}
.card-icon svg { width: 34px; height: 34px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.94rem; }

/* ---------- Why Us ---------- */
.why-us { background: var(--forest); color: var(--white); }
.why-us h2 { color: var(--white); }
.why-us .section-head p { color: rgba(255,255,255,0.75); }
.why-inner { display: block; }
.benefits-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefit {
  border-top: 2px solid rgba(255,255,255,0.25);
  padding-top: 18px;
}
.benefit h3 { color: var(--white); margin-bottom: 8px; font-size: 1.05rem; }
.benefit p { color: rgba(255,255,255,0.72); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-info p { margin-top: 12px; }
.info-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-list dt {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: none;
  margin-bottom: 4px;
}
.info-list dd {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
}
.info-list dd a { color: var(--forest); border-bottom: 1px solid transparent; }
.info-list dd a:hover { border-color: var(--forest); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-row label {
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-row input,
.form-row textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color var(--transition);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--forest);
  outline: none;
}
.form-row.has-error input,
.form-row.has-error textarea {
  border-color: #B3402C;
}
.field-error {
  min-height: 18px;
  font-size: 0.78rem;
  color: #B3402C;
  margin-top: 4px;
}
.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--forest);
  min-height: 20px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 24px 40px;
}
.footer-brand .brand-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--forest);
}
.footer-brand p { margin-top: 12px; font-size: 0.9rem; }
.footer-nav h4, .footer-contact h4 {
  font-size: 0.86rem;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { font-size: 0.9rem; color: var(--ink-soft); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--forest); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-list { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-actions .btn-small { display: none; }

  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-visual { order: -1; max-width: 340px; margin: 0 auto 12px; }
  .hero-stat-card { position: static; margin-top: 16px; max-width: none; }

  .about-inner { grid-template-columns: 1fr; }
  .about-media { max-width: 320px; margin: 0 auto; }

  .contact-inner { grid-template-columns: 1fr; }

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

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-strip-inner { flex-direction: column; }
}
