/* ==========================================================================
   CRESCARGOT.COM — Mediterranean Luxury B2B & European Export Identity
   Deep Olive Forest (#14241B) | Cretan Limestone (#F7F4EE) | Harvest Gold (#B88A3B)
   ========================================================================== */

:root {
  --forest-950: #0d1812;
  --forest-900: #14241b;
  --forest-800: #1d3528;
  --forest-700: #284937;
  --gold: #c49642;
  --gold-dark: #9c7227;
  --stone-50: #f8f6f1;
  --stone-100: #efeae0;
  --surface: #ffffff;
  --ink: #171d19;
  --muted: #4f5953;
  --border: rgba(20, 36, 27, 0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1240px;
  --radius: 6px;
  --header-h: 80px;
  --transition: 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--stone-50);
  line-height: 1.68; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; font-variant-numeric: lining-nums; line-height: 1.15; margin: 0 0 1rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
p { margin: 0 0 1.1rem; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2rem, 880px); margin-inline: auto; }
.section { padding: clamp(3.75rem, 7vw, 6rem) 0; }
.section-alt { background: var(--stone-100); }
.section-dark { background: var(--forest-900); color: #f6f4ee; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-sans); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.9rem;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }

.lead { font-size: clamp(1.04rem, 1.35vw, 1.2rem); color: var(--muted); line-height: 1.74; }
.section-dark .lead, .hero .lead, .page-hero .lead { color: #cbd5cf; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.65rem; font-family: var(--font-sans); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.03em; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: all var(--transition);
}
.btn-gold { background: var(--gold); color: var(--forest-950) !important; }
.btn-gold:hover { background: #d5a752; transform: translateY(-1px); }
.btn-forest { background: var(--forest-900); color: #fff !important; }
.btn-forest:hover { background: var(--forest-800); }
.btn-outline-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.42); }
.btn-outline-light:hover { background: #fff; color: var(--forest-950) !important; }
.btn-outline-dark { background: transparent; color: var(--forest-900) !important; border-color: rgba(20,36,27,0.35); }
.btn-outline-dark:hover { background: var(--forest-900); color: #fff !important; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 1000;
  background: rgba(13, 24, 18, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: #fff !important; flex-shrink: 0; }
.brand img { height: 48px; width: auto; max-width: none; object-fit: contain; }
@media (min-width: 1024px) { .brand img { height: 56px; } }
.brand-fallback { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.2rem; }
.main-nav a { padding: 0.5rem 0.78rem; font-size: 0.88rem; font-weight: 500; color: #eef2ef; border-radius: 4px; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); background: rgba(255,255,255,0.06); }

.header-right { display: flex; align-items: center; gap: 0.65rem; }
.lang-pills { display: inline-flex; border: 1px solid rgba(255,255,255,0.22); border-radius: 4px; overflow: hidden; }
.lang-pills a { padding: 0.32rem 0.55rem; font-size: 0.74rem; font-weight: 700; color: #cbd5cf; letter-spacing: 0.06em; }
.lang-pills a.active, .lang-pills a:hover { background: var(--gold); color: var(--forest-950); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: transparent; border: 1px solid rgba(255,255,255,0.28);
  border-radius: 4px; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--forest-950);
  padding: 1.5rem; transform: translateX(100%); transition: transform var(--transition); z-index: 999; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 0.9rem 0; color: #f6f4ee; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08); }

@media (min-width: 1024px) { .main-nav { display: block; } .nav-toggle, .mobile-nav { display: none; } }

/* Hero */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 3.5rem) 0 4.5rem; background: var(--forest-950); color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.42) contrast(1.06); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,24,18,0.92) 0%, rgba(13,24,18,0.62) 55%, rgba(13,24,18,0.3) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* B2B Trust Strip */
.trust-strip { background: var(--forest-800); color: #fff; padding: 2rem 0; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item strong { display: block; font-family: var(--font-display); font-variant-numeric: lining-nums; font-size: clamp(1.55rem, 2.5vw, 2.1rem); color: var(--gold); line-height: 1.15; }
.trust-item span { font-size: 0.84rem; color: #d4ddd8; }

/* Page Hero */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 3.5rem) 0 3.25rem;
  background: var(--forest-900); color: #fff; border-bottom: 2px solid var(--gold); overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; opacity: 0.22; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .container { position: relative; z-index: 1; }

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(13,24,18,0.08); }
.card-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.5rem; }

.spec-box {
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--gold);
  border-radius: var(--radius); padding: 1.75rem;
}
.spec-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.94rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--border); }
.spec-table th { color: var(--muted); font-weight: 600; width: 42%; }

.split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; } }
.split-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--forest-800); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* Forms */
.input, .select, .textarea {
  width: 100%; padding: 0.82rem 1rem; font-family: var(--font-sans); font-size: 0.94rem;
  border: 1px solid #cbd3ce; border-radius: var(--radius); background: #fff;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold-dark); }
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 500; }
.alert-ok { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.alert-err { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.gallery-item { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); border: 0; padding: 0; cursor: pointer; background: var(--forest-800); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 380ms ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* Footer */
.site-footer { background: var(--forest-950); color: #b4c0b9; padding: 4.25rem 0 2rem; border-top: 2px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.footer-title { color: #fff; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.footer-links a { color: #d0dad4; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: 0.84rem; }
