/*
Theme Name: Lastrella
Theme URI: https://lastrella.eu
Author: Luxeo LLC
Description: Custom theme for Lastrella — European architectural surfaces, large format porcelain slabs, and bespoke tile manufacturing for the GCC trade market.
Version: 1.0.0
Text Domain: lastrella
*/

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

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

:root {
  /* ── 60% PRIMARY DOMINANCE ── */
  --cream:       #F6F3EB;   /* Main background canvas */
  --cream-mid:   #EDE9DF;   /* Section backgrounds for visual separation */
  --cream-deep:  #E2DDD2;   /* Inset structural components */

  /* ── 30% SECONDARY STRUCTURE ── */
  --sage:        #C9CAAC;   /* Accent panels, borders, and dividers */
  --sage-dark:   #A8AA8C;   /* Muted text overlays & borders */
  --olive:       #869B7E;   /* Deep component fills */
  --olive-dark:  #6A7D63;   /* Contextual containers */
  --olive-deep:  #4E5E49;   /* Dark structural canvas / Footer background */

  /* ── 10% ACCENT SYSTEM ── */
  --red:         #7F2020;   /* Burnt crimson — High-intent conversion targets */
  --red-light:   #9B3333;   /* Interactive hover frames */
  --red-dim:     rgba(127, 32, 32, 0.08);
  --red-line:    rgba(127, 32, 32, 0.25);

  /* ── TYPOGRAPHY TEXT RUNS ── */
  --ink:         #2C2820;   /* High-contrast core copy */
  --ink-mid:     #5C5448;   /* Secondary technical documentation */
  --ink-light:   #8C847A;   /* Muted captions & metadata labels */
  --on-olive:    #F0EDE5;
  --on-sage:     #3A3C2A;

  /* ── FONTS ── */
  --font-header: 'Futura', 'Jost', sans-serif;
  --font-body:   'Cormorant Garamond', 'Garamond', serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  font-weight: 400;
  line-height: 1.7;
}

/* ORGANIC LINEN TEXTURE SURFACE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* ==========================================================================
   TYPOGRAPHY SPECIFICATIONS (HEADERS: FUTURA/JOST | BODY: GARAMOND)
   ========================================================================== */

h1, h2, h3, h4, h5, h6, .nav-logo, .btn-primary, .btn-cream, .nav-links a, .sec-tag, .stat-num {
  font-family: var(--font-header);
  letter-spacing: 0.05em;
  font-weight: 400;
}

h1 { font-size: clamp(38px, 5.5vw, 84px); line-height: 1.1; font-weight: 300; }
h2 { font-size: clamp(28px, 3.5vw, 48px); line-height: 1.2; font-weight: 300; }
h3 { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; }
h4 { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; }

p { font-size: clamp(16px, 1.1vw, 19px); line-height: 1.8; margin-bottom: 1.5rem; }
em { font-family: var(--font-body); font-style: italic; font-weight: 400; }

/* ==========================================================================
   SHARED NAV & STRUCTURAL COMPONENTS
   ========================================================================== */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 5%;
  transition: all 0.4s ease;
}

nav.scrolled {
  background: rgba(246, 243, 235, 0.96);
  backdrop-filter: blur(15px);
  padding: 14px 5%;
  border-bottom: 1px solid var(--sage);
  box-shadow: 0 4px 30px rgba(44, 40, 32, 0.04);
}

.nav-logo {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-logo span { color: var(--red); }

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

.nav-links a {
  color: var(--ink-mid);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links li.active a { color: var(--red); }

.nav-cta {
  border: 1px solid var(--red-line) !important;
  color: var(--red) !important;
  padding: 10px 20px;
  transition: all 0.3s !important;
}
.nav-cta:hover {
  background: var(--red) !important;
  color: var(--cream) !important;
  border-color: var(--red) !important;
}

/* Mobile Toggle Menu Button */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 210;
}
.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.4s;
}

/* ==========================================================================
   HERO FRAMEWORKS & FLEX-GRID ARCHITECTURE
   ========================================================================== */

.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--cream);
  position: relative;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 8% 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--olive-dark);
  font-family: var(--font-header);
}
.hero-badge::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--olive);
}

.hero h1 { margin-bottom: 24px; color: var(--ink); }
.hero h1 em { color: var(--red); }

.hero-desc {
  max-width: 520px;
  color: var(--ink-mid);
  margin-bottom: 40px;
}

.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.btn-primary {
  background: var(--red);
  color: var(--cream);
  text-decoration: none;
  padding: 16px 36px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s;
}
.btn-primary:hover { background: var(--red-light); }

.btn-ghost {
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-header);
}
.btn-ghost::after {
  content: ' →';
  transition: transform 0.3s;
}
.btn-ghost:hover::after { transform: translateX(5px); }

.hero-right {
  background: var(--olive);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

.hero-tile-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 2px;
}
.tile-cell { transition: background 0.8s; }
.tc-a { background: rgba(134,155,126,0.6); }
.tc-b { background: rgba(201,202,172,0.4); }
.tc-c { background: rgba(78,94,73,0.5); }
.tc-d { background: rgba(246,243,235,0.2); }
.tc-e { background: rgba(127,32,32,0.7); }

.hero-right-label {
  position: relative;
  z-index: 5;
  background: var(--cream);
  padding: 20px 24px;
}
.hero-right-label strong {
  display: block;
  font-size: 28px;
  color: var(--ink);
  line-height: 1.1;
  font-family: var(--font-header);
}

/* ==========================================================================
   MARQUEE STRIP
   ========================================================================== */
.marquee-strip {
  background: var(--olive);
  padding: 14px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  flex-shrink: 0;
  padding: 0 30px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--on-olive);
  font-family: var(--font-header);
  display: flex;
  align-items: center;
  gap: 24px;
}
.marquee-item::after {
  content: '';
  width: 5px; height: 5px;
  background: var(--sage);
  border-radius: 50%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTIONS & SYSTEMIC REUSABLE CARDS
   ========================================================================== */

section { padding: 100px 5%; position: relative; }
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: 24px;
}
.sec-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--olive-dark);
}

/* Stats Metric Matrix */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--sage);
  gap: 1px;
}
.stat-card {
  background: var(--cream-mid);
  padding: 48px 32px;
  text-align: center;
}
.stat-num {
  font-size: 54px;
  color: var(--red);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

/* Standard Split Grid layout */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Products Dynamic Matrix System */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.prod-card {
  background: var(--cream);
  border: 1px solid var(--sage);
  padding: 40px 32px;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}
.prod-card:hover {
  border-color: var(--olive);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(44, 40, 32, 0.06);
}
.prod-number {
  font-family: var(--font-header);
  font-size: 14px;
  color: var(--olive);
  display: block;
  margin-bottom: 16px;
}

/* Forms System Integration */
.contact-form-wrapper {
  background: var(--cream-mid);
  padding: 48px;
  border: 1px solid var(--sage);
}
.contact-grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-full { grid-column: span 2; }
.contact-grid-form input, .contact-grid-form select, .contact-grid-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--cream);
  border: 1px solid var(--sage);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}
.contact-grid-form input:focus, .contact-grid-form textarea:focus {
  border-color: var(--red);
}
.btn-submit {
  grid-column: span 2;
  background: var(--red);
  color: var(--cream);
  border: none;
  padding: 16px;
  font-family: var(--font-header);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-submit:hover { background: var(--red-light); }
.form-message { grid-column: span 2; padding: 14px 18px; font-size: 15px; }
.form-message.success { background: var(--cream-deep); border: 1px solid var(--olive); color: var(--olive-deep); }
.form-message.error { background: var(--red-dim); border: 1px solid var(--red-line); color: var(--red); }
.honeypot-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   B2B DEEP RED CALL-TO-ACTION FRAMEWORK
   ========================================================================== */
.cta-banner {
  background: var(--red);
  color: var(--cream);
  text-align: center;
  padding: 100px 5%;
}
.cta-banner h2 { margin-bottom: 24px; }
.cta-banner p { color: rgba(246,243,235,0.8); max-width: 600px; margin: 0 auto 40px; }
.btn-cream {
  background: var(--cream);
  color: var(--red);
  padding: 16px 40px;
  text-decoration: none;
  font-family: var(--font-header);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  transition: opacity 0.3s;
}
.btn-cream:hover { background: var(--cream-deep); }

/* ==========================================================================
   FOOTER FRAMEWORK
   ========================================================================== */
footer {
  background: var(--olive-deep);
  color: rgba(201,202,172,0.7);
  padding: 80px 5% 40px;
}
.footer-matrix {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  border-bottom: 1px solid rgba(201,202,172,0.15);
  padding-bottom: 48px;
  margin-bottom: 32px;
}
.footer-brand {
  font-family: var(--font-header);
  font-size: 26px;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-brand span { color: var(--sage); }
.footer-col h5 {
  font-family: var(--font-header);
  color: var(--cream);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a {
  color: rgba(201,202,172,0.7);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul a:hover { color: var(--cream); }

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS (MOBILE RE-ENGINEERING SYSTEM)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; } /* Hide heavy canvas graphics to maximize mobile LCP */
  .split-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-matrix { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 16px 24px; background: var(--cream); border-bottom: 1px solid var(--cream-mid); }
  .mobile-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 60px; left: -100%; right: 0;
    height: calc(100vh - 60px);
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 24px;
    transition: left 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
    width: 100%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  .nav-links.active { left: 0; }
  .nav-cta { width: 100%; text-align: center; }

  .stats-section { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 24px; }
  .contact-grid-form { grid-template-columns: 1fr; }
  .form-full { grid-column: auto; }
  .btn-submit { grid-column: auto; }
}

@media (max-width: 480px) {
  .stats-section { grid-template-columns: 1fr; }
  .footer-matrix { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { text-align: center; justify-content: center; }
}
