/* ==========================================================================
   Euromill — shared styles
   Palette + type are placeholders — swap once the real brand colors / logo
   are provided.
   ========================================================================== */

:root {
  /* --- Placeholder brand palette (clean corporate: navy + gold) --- */
  --color-navy: #0F2439;
  --color-navy-soft: #5A6B7B;
  --color-gold: #C9973B;
  --color-gold-dark: #A87A26;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-white: #FFFFFF;
  --color-border: #E6E9EE;
  --color-green: #4B5D3A;

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 6px;
  --shadow-soft: 0 4px 20px rgba(15, 36, 57, 0.08);
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-navy);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--color-navy-soft); }

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

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

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

section { padding: 88px 0; }

.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  margin-bottom: 12px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.placeholder-note {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #8A5A00;
  background: #FCEFC7;
  border: 1px dashed #D9B65B;
  border-radius: 6px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
}
.btn-primary:hover { background: var(--color-gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.btn-outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover { background: var(--color-navy); color: var(--color-white); }

.btn-block { width: 100%; }

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-navy);
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-navy-soft);
}
.nav-links a:hover { color: var(--color-navy); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--color-navy-soft);
}
.lang-toggle button.active {
  background: var(--color-navy);
  color: var(--color-white);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px 0;
}

/* --- Hero --- */
.hero {
  padding: 72px 0 96px;
  background: var(--color-bg-alt);
}

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

.hero-copy p.lead {
  font-size: 1.15rem;
  max-width: 520px;
}

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

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 48px;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}
.hero-stat {
  padding: 0 28px;
  border-left: 1px solid var(--color-border);
}
.hero-stat:first-child { padding-left: 0; border-left: none; }
.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--color-navy);
}
.hero-stat span {
  font-size: 0.82rem;
  color: var(--color-navy-soft);
}

.hero-media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Cards grid (products / quality) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-soft); border-color: var(--color-gold); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--color-gold-dark);
}

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.92rem; }

/* --- Product cards (photo + pack size + copy) --- */
.product-card { padding: 0; overflow: hidden; }
.product-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-alt);
  box-sizing: border-box;
  padding: 20px;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(15, 36, 57, 0.18));
}
.product-body { padding: 20px 24px 24px; }
.product-pack { margin-bottom: 10px; }
.product-pack span {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-navy-soft);
}
.card-premium { border-color: var(--color-gold); }
.premium-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
}

/* --- Quality section (alt background) --- */
.section-alt {
  background: var(--color-navy);
  color: var(--color-white);
}
.section-alt p { color: rgba(255, 255, 255, 0.72); }
.section-alt .section-eyebrow { color: var(--color-gold); }

.quality-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 48px;
}
.quality-media {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.quality-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.section-alt .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}
.section-alt .card p { color: rgba(255, 255, 255, 0.68); }
.section-alt .card-icon { background: rgba(255, 255, 255, 0.08); color: var(--color-gold); }

.quality-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.quality-gallery img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.15s ease;
}
.quality-gallery img:hover { border-color: var(--color-gold); }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-list .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-dark);
}
.contact-list strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-navy-soft); }

.contact-map {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  text-align: center;
  padding: 24px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-map:hover { border-color: var(--color-gold); box-shadow: var(--shadow-soft); }
.contact-map-icon { font-size: 1.8rem; }
.contact-map strong { font-size: 1.05rem; }
.contact-map span { color: var(--color-gold-dark); font-weight: 600; font-size: 0.9rem; }

/* --- Forms (shared with order page) --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy-soft);
}
.field label .req { color: #B4472B; }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-navy);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-gold-dark);
  box-shadow: 0 0 0 3px rgba(201, 151, 59, 0.18);
}

.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: 0.78rem; color: var(--color-navy-soft); opacity: 0.8; }

/* --- Order line items --- */
.line-items {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
}
.line-item-row {
  display: grid;
  grid-template-columns: 1fr 140px 40px;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}
.line-item-row:last-child { border-bottom: none; }
.line-item-row.head {
  background: var(--color-bg-alt);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-navy-soft);
  padding: 10px 16px;
}
.line-item-row input { width: 100%; }

.remove-row {
  border: none;
  background: transparent;
  color: #B4472B;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px;
}

.add-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  background: transparent;
  border: 1px dashed var(--color-gold-dark);
  color: var(--color-gold-dark);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.add-row-btn:hover { background: var(--color-bg-alt); }

.form-status {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.form-status.visible { display: block; }
.form-status.info { background: #EAF1E5; color: var(--color-green); border: 1px solid #CFE0C5; }
.form-status.error { background: #FBE9E4; color: #9A3620; border: 1px solid #F1C8BC; }

/* --- Order intro card --- */
.order-intro {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 36px;
}
.order-intro ul { margin: 12px 0 0; padding-left: 20px; }
.order-intro li { margin-bottom: 6px; color: var(--color-navy-soft); font-size: 0.92rem; }

/* --- Footer --- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-grid h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.92rem; }
.footer-links a:hover { color: var(--color-gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.social-links { display: flex; gap: 14px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
}
.social-links a:hover { background: var(--color-gold); color: var(--color-navy); }

/* --- Utility --- */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
[data-i18n], [data-i18n-placeholder] { }

/* --- Responsive --- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-grid, .about-grid, .contact-grid, .quality-grid { grid-template-columns: 1fr; }
  .quality-gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .line-item-row { grid-template-columns: 1fr 90px 32px; }
  .hero-stat { border-left: none; padding-left: 0; }
}

/* Mobile nav drawer */
.nav-links.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  flex-direction: column;
  padding: 20px 24px 28px;
  border-bottom: 1px solid var(--color-border);
  gap: 18px;
}
