/* =========================================================
   Ecomat Professional Systems — stylesheet
   Paleta: nisip cald + antracit + rosu-caramiziu (din logo)
   ========================================================= */

@font-face {
  font-family: "Barlow Condensed";
  font-display: swap;
  src: local("Barlow Condensed");
}

:root {
  --sand-50:  #F7F3EA;
  --sand-100: #F0EADC;
  --sand-200: #E4DAC3;
  --stone-400:#8A8577;
  --stone-600:#5B564A;
  --ink-900:  #1C1A16;
  --ink-800:  #262319;
  --brick-600:#C81E1E;
  --brick-700:#9E1717;
  --brick-800:#7A1010;
  --steel-600:#2C4A5E;
  --steel-700:#203949;

  --font-display: "Barlow Condensed", "Oswald", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --container: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--ink-900);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.01em; }

p { margin: 0 0 1em; color: var(--stone-600); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brick-700);
  display: inline-block;
}

/* --- Skip link / focus --- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink-900);
  color: var(--sand-50);
  padding: 10px 18px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 3px solid var(--steel-600);
  outline-offset: 2px;
}

/* =========================================================
   Grain ruler — signature element
   A horizontal strip of labeled granulometry bands, echoing
   the real product sort labels from the technical sheets.
   ========================================================= */
.grain-ruler {
  display: flex;
  width: 100%;
  height: 14px;
  overflow: hidden;
}
.grain-ruler span {
  flex: 1;
  height: 100%;
}
.grain-ruler .g1 { background: #E4DAC3; }
.grain-ruler .g2 { background: #D3C4A0; }
.grain-ruler .g3 { background: #C0AC7A; }
.grain-ruler .g4 { background: #A88A54; }
.grain-ruler .g5 { background: #8C6C3A; }

.grain-tags {
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--stone-400);
  letter-spacing: 0.04em;
  padding: 6px 0 0;
}
.grain-tags span { flex: 1; text-align: center; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid var(--sand-200);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(8px);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 40px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-900);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--brick-700);
  border-color: var(--brick-700);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.phone-pill {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--stone-600);
  display: none;
}
@media (min-width: 900px) { .phone-pill { display: inline; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--brick-600), var(--brick-800));
  color: var(--sand-50);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-outline {
  border-color: var(--ink-900);
  color: var(--ink-900);
  background: transparent;
}
.btn-outline:hover { background: var(--ink-900); color: var(--sand-50); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink-900);
}

@media (max-width: 900px) {
  .main-nav { position: fixed; inset: 68px 0 0 0; background: var(--sand-50); transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; padding: 32px 24px; gap: 10px; }
  .main-nav a { display: block; padding: 14px 4px; font-size: 1.2rem; }
  .nav-toggle { display: block; }
  .header-cta .btn-primary span.long { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--sand-50);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 90px 24px 70px;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 60px; text-align: left; }
}
.hero h1 { color: var(--sand-50); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #E4462B, var(--brick-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { color: var(--sand-200); font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: var(--sand-200); color: var(--sand-50); }
.hero-actions .btn-outline:hover { background: var(--sand-50); color: var(--ink-900); }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stats .stat {
  flex: 1;
  padding: 26px 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.hero-stats .stat:last-child { border-right: none; }
.hero-stats .stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.7rem;
  color: var(--sand-50);
}
.hero-stats .stat span {
  font-size: 0.82rem;
  color: var(--stone-400);
  letter-spacing: 0.03em;
}
@media (max-width: 700px) {
  .hero-stats { flex-wrap: wrap; }
  .hero-stats .stat { flex: 1 1 50%; border-bottom: 1px solid rgba(255,255,255,0.12); }
}

/* =========================================================
   Section rhythm
   ========================================================= */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--sand-100); }
.section-dark { background: var(--ink-900); color: var(--sand-50); }
.section-dark p { color: var(--stone-400); }
.section-dark h2 { color: var(--sand-50); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* =========================================================
   Cards / grids
   ========================================================= */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 30px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 16px 40px -20px rgba(28,26,22,0.25); transform: translateY(-3px); }
.card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sand-100);
  border-radius: var(--radius);
  margin-bottom: 18px;
  color: var(--brick-700);
}

/* Product card */
.product-card {
  background: #fff;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card .thumb {
  background: var(--sand-100);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.product-card .thumb img { max-height: 220px; width: auto; margin: 0 auto; }
.product-card .thumb-lg { min-height: 380px; }
.product-card .thumb-lg img { max-height: 380px; }
@media (max-width: 700px) {
  .product-card .thumb-lg { min-height: 260px; }
  .product-card .thumb-lg img { max-height: 260px; }
}
.product-card .body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.product-card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-600);
  margin-bottom: 8px;
}
.product-card .grades {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 18px;
}
.product-card .grades span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--sand-100);
  border: 1px solid var(--sand-200);
  padding: 4px 9px;
  border-radius: 3px;
  color: var(--stone-600);
}
.product-card .body .btn { margin-top: auto; align-self: flex-start; }

/* Spec table (technical data sheets) */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--sand-200);
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone-400);
  font-weight: 600;
}
.spec-table td.value { font-family: var(--font-mono); color: var(--ink-900); }
.spec-table tr:last-child td { border-bottom: none; }

/* Usage list */
.use-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.use-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--sand-100);
  border-radius: var(--radius);
  border-left: 3px solid var(--brick-700);
}
.use-list li .n {
  font-family: var(--font-mono);
  color: var(--brick-700);
  font-weight: 700;
  min-width: 26px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--steel-700), var(--ink-900));
  color: var(--sand-50);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--sand-50); margin-bottom: 6px; }
.cta-band p { color: var(--stone-400); margin: 0; }

/* Timeline / values (about page) */
.value-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--sand-200);
}
.value-row:first-of-type { border-top: none; }
.value-row .num { font-family: var(--font-mono); font-size: 1.6rem; color: var(--brick-700); }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--ink-900);
  color: var(--sand-50);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card h3 { color: var(--sand-50); }
.contact-line { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.contact-line:first-of-type { border-top: none; }
.contact-line .k { font-family: var(--font-mono); font-size: 0.75rem; color: var(--stone-400); text-transform: uppercase; letter-spacing: 0.06em; min-width: 90px; }

.phone-list { display: flex; flex-direction: column; gap: 12px; }
.phone-list a { font-size: 1rem; }
.phone-list small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--stone-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone-600);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-900);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--steel-600); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-note { font-size: 0.85rem; color: var(--stone-400); }

.alert { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: 0.95rem; }
.alert-success { background: #E4F1E4; color: #1F6B32; border: 1px solid #B9DCC0; }
.alert-error { background: #FBE7E4; color: var(--brick-800); border: 1px solid #F0C4BE; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink-900);
  color: var(--stone-400);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--sand-50); font-size: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--sand-50); }
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* Breadcrumb / page banner (inner pages) */
.page-banner {
  background: var(--ink-900);
  color: var(--sand-50);
  padding: 56px 0 40px;
}
.page-banner h1 { color: var(--sand-50); font-size: clamp(2.2rem, 5vw, 3.2rem); }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--stone-400);
  margin-bottom: 14px;
}
.breadcrumb a:hover { color: var(--sand-50); }

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--sand-50);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 400;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
