/* =============================================
   MaxOne – Aluminium, Glass & Metal Works
   Light Industrial Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,400;0,500;0,600;1,400&family=Barlow+Condensed:wght@500;700&family=Noto+Kufi+Arabic:wght@400;700&display=swap');

/* ── TOKENS ── */
:root {
  --red:        #c0281e;
  --red-light:  #f2e8e7;
  --red-mid:    #e8c5c3;
  --cream:      #f9f6f1;
  --warm-white: #ffffff;
  --cloud:      #f0ece6;
  --smoke:      #e4dfd8;
  --slate:      #5c5850;
  --charcoal:   #2e2b27;
  --ink:        #1a1815;
  --gold:       #b07d2a;
  --gold-light: #f5ead5;
  --border:     rgba(92,88,80,0.18);
  --shadow-sm:  0 2px 10px rgba(30,25,20,0.07);
  --shadow-md:  0 6px 28px rgba(30,25,20,0.11);
  --shadow-lg:  0 16px 60px rgba(30,25,20,0.14);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--smoke); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--smoke);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 200;
}

/* Top bar – desktop */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 64px;
  border-bottom: 1px solid var(--smoke);
  gap: 16px;
}

.logo-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.logo-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  letter-spacing: 5px;
  line-height: 1;
  color: var(--red);
}

.logo-sub {
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 3px;
}

.header-email {
  font-size: 0.8rem;
  color: var(--red);
  letter-spacing: 0.5px;
}
.header-email a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px dashed var(--red-mid);
  transition: border-color 0.2s;
}
.header-email a:hover { border-color: var(--red); }

.logo-arabic {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  text-align: right;
  line-height: 1.4;
  flex-shrink: 0;
}
.logo-arabic span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--slate);
  letter-spacing: 1px;
  direction: rtl;
}

/* Burger – hidden on desktop */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.burger-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── NAV ── */
nav#main-nav {
  display: flex;
  justify-content: center;
  background: var(--warm-white);
  padding: 0 64px;
}
nav#main-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  padding: 14px 24px;
  position: relative;
  transition: color 0.2s;
}
nav#main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--red);
  transition: left 0.25s, right 0.25s;
}
nav#main-nav a:hover { color: var(--red); }
nav#main-nav a:hover::after { left: 16px; right: 16px; }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  min-height: 580px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(249,246,241,0.93) 0%, rgba(240,236,230,0.85) 100%),
    url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1600&q=80') center/cover no-repeat;
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -60deg, transparent, transparent 40px,
    rgba(192,40,30,0.025) 40px, rgba(192,40,30,0.025) 41px
  );
}
.hero-content { position: relative; z-index: 1; }

.hero-tag {
  display: inline-block;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  padding: 6px 20px;
  margin-bottom: 28px;
  background: var(--red-light);
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  letter-spacing: 5px;
  line-height: 1.05;
  color: var(--ink);
}
.hero h1 span { color: var(--red); }
.hero p {
  margin: 22px auto 0;
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 520px;
  line-height: 1.75;
}
.hero-btns {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Staggered hero animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeUp 0.65s ease both; }
.hero-tag   { animation-delay: 0.10s; }
.hero h1    { animation-delay: 0.25s; }
.hero p     { animation-delay: 0.40s; }
.hero-btns  { animation-delay: 0.52s; }

/* ── BUTTONS ── */
.btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 36px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-block;
}
.btn-red {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
  box-shadow: 0 4px 18px rgba(192,40,30,0.25);
}
.btn-red:hover { background: transparent; color: var(--red); box-shadow: none; }
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--smoke);
}
.btn-outline:hover { border-color: var(--charcoal); background: var(--charcoal); color: var(--cream); }

/* ════════════════════════════════════════
   STATS STRIP
════════════════════════════════════════ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  background: linear-gradient(135deg, var(--charcoal) 0%, #3a3530 100%);
  padding: 52px 64px;
}
.stat-item {
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  letter-spacing: 3px;
  color: var(--red);
  line-height: 1;
}
.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

/* ════════════════════════════════════════
   SHARED SECTION
════════════════════════════════════════ */
section { padding: 88px 64px; }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 5px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: 3px;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 12px;
}
.section-line {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-bottom: 50px;
}

/* ════════════════════════════════════════
   PRODUCTS
════════════════════════════════════════ */
#products { background: var(--warm-white); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1px;
  background: var(--smoke);
  border: 1px solid var(--smoke);
}
.product-card {
  background: var(--warm-white);
  padding: 38px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, transform 0.3s;
  cursor: default;
}
.product-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px; width: 0;
  background: var(--red);
  transition: width 0.4s ease;
}
.product-card:hover {
  background: var(--red-light);
  transform: translateY(-3px);
  z-index: 1;
  box-shadow: var(--shadow-md);
}
.product-card:hover::after { width: 100%; }

.product-icon { font-size: 2.2rem; display: block; margin-bottom: 16px; }
.product-num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  color: rgba(92,88,80,0.08);
  letter-spacing: 2px;
}
.product-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.product-card p { font-size: 0.9rem; color: var(--slate); line-height: 1.7; }

/* ════════════════════════════════════════
   SERVICES
════════════════════════════════════════ */
#services { background: var(--cloud); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.service-item {
  background: var(--warm-white);
  border: 1px solid var(--border);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.service-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--red);
  transition: height 0.35s ease;
}
.service-item:hover { box-shadow: var(--shadow-md); border-color: var(--red-mid); }
.service-item:hover::before { height: 100%; }

.service-icon { font-size: 1.9rem; margin-bottom: 14px; }
.service-item h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.service-item p { font-size: 0.9rem; color: var(--slate); line-height: 1.7; }

/* ════════════════════════════════════════
   WHY CHOOSE US
════════════════════════════════════════ */
#why-us { background: var(--warm-white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}

.why-card {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--red);
  transition: width 0.4s ease;
}
.why-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--red-mid); }
.why-card:hover::before { width: 100%; }

.why-card--featured {
  border-top: 3px solid var(--red);
  background: var(--red-light);
}
.why-card--featured::before { display: none; }

.why-icon { font-size: 2rem; margin-bottom: 14px; }
.why-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.why-card p { font-size: 0.9rem; color: var(--slate); line-height: 1.75; }

/* Testimonial strip */
.testimonial-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  background: linear-gradient(135deg, var(--charcoal) 0%, #3a3530 100%);
  padding: 44px 52px;
  border-radius: 2px;
}
.t-quote {
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 14px;
}
.t-quote::before { content: '\201C'; color: var(--red); font-size: 1.5rem; line-height: 0; vertical-align: -0.3em; margin-right: 4px; }
.t-author {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
}
.testimonial-divider { width: 1px; height: 80px; background: rgba(255,255,255,0.15); }

/* ════════════════════════════════════════
   CONTACT
════════════════════════════════════════ */
#contact { background: var(--cream); border-top: 1px solid var(--smoke); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-intro p {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 32px;
}
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.contact-card:hover { box-shadow: var(--shadow-md); border-color: var(--red-mid); }
.cc-icon { font-size: 1.7rem; flex-shrink: 0; }
.cc-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
}
.cc-val { font-size: 0.97rem; font-weight: 600; color: var(--ink); }
.cc-val a { color: var(--red); text-decoration: none; }
.cc-val a:hover { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  background: var(--warm-white);
  border: 1px solid var(--smoke);
  color: var(--ink);
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(92,88,80,0.5);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,40,30,0.08);
}
.contact-form textarea { min-height: 130px; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: var(--ink);
  padding: 28px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 4px;
  color: var(--red);
}
.footer-copy {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--red); }

/* ════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 900px
════════════════════════════════════════ */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }

  .testimonial-strip {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 28px;
  }
  .testimonial-divider { width: 60px; height: 1px; }
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 720px
════════════════════════════════════════ */
@media (max-width: 720px) {
  /* Sections */
  section        { padding: 56px 20px; }
  .stats-strip   { padding: 36px 20px; }

  /* ── Mobile header ── */
  .top-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    flex-wrap: nowrap;
    border-bottom: 1px solid var(--smoke);
  }

  /* Shrink logo */
  .logo-img  { width: 44px; height: 44px; }
  .logo-block { gap: 10px; }
  .logo-main { font-size: 1.8rem; letter-spacing: 3px; }
  .logo-sub  { font-size: 0.57rem; letter-spacing: 1.5px; }

  /* Hide desktop-only header items */
  .header-email { display: none; }
  .logo-arabic  { display: none; }

  /* Show burger */
  .burger { display: flex; }

  /* ── Mobile nav ── */
  nav#main-nav {
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1);
    background: var(--warm-white);
    border-top: none;
  }
  nav#main-nav.nav-open {
    max-height: 400px;
    border-top: 1px solid var(--smoke);
    box-shadow: 0 10px 30px rgba(30,25,20,0.10);
  }
  nav#main-nav a {
    padding: 16px 24px;
    font-size: 0.95rem;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--smoke);
    text-align: left;
    color: var(--charcoal);
    width: 100%;
  }
  nav#main-nav a:last-child { border-bottom: none; }
  nav#main-nav a::after    { display: none; }
  nav#main-nav a:hover     { background: var(--cloud); color: var(--red); padding-left: 30px; }

  /* Grids → single column */
  .why-grid             { grid-template-columns: 1fr; }
  .testimonial-strip    { grid-template-columns: 1fr; padding: 32px 20px; }
  .testimonial-divider  { display: none; }

  /* Footer */
  footer {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 12px;
  }
  .footer-links { justify-content: center; }
}