/* ============================================================
   CHAFIC BOULOS & FILS — Design System
   Display: Loew Next  |  Body: Lato  |  Est. 1938
   ============================================================ */

@font-face {
  font-family: 'Loew Next';
  src: url('../fonts/LoewNext-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Loew Next';
  src: url('../fonts/LoewNext-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

:root{
  --navy: #1f1a5c;
  --navy-deep: #171348;
  --gold: #937347;
  --gold-light: #b8956a;
  --slate: #555173;
  --grey: #9a99ac;
  --white: #ffffff;
  --paper: #f6f5f8;
  --line: rgba(31,26,92,0.12);

  --font-display: 'Loew Next', 'Lato', sans-serif;
  --font-body: 'Lato', sans-serif;

  --container: 1180px;
  --gap: clamp(1.5rem, 4vw, 4rem);
}

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

html{ scroll-behavior:smooth; }

body{
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1{ font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2{ font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3{ font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

p{ color: var(--slate); }

.eyebrow{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.eyebrow::before{
  content:"";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display:inline-block;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:0.6rem;
  font-family: var(--font-body);
  font-weight:700;
  font-size:0.85rem;
  letter-spacing:0.04em;
  text-transform:uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor:pointer;
  transition: all .25s ease;
}
.btn-gold{ background: var(--gold); color: var(--white); }
.btn-gold:hover{ background: var(--gold-light); }
.btn-outline{ border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover{ border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-navy-outline{ border-color: var(--navy); color: var(--navy); }
.btn-navy-outline:hover{ background: var(--navy); color:var(--white); }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top:0;
  left:0;
  right:0;
  z-index: 500;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  z-index:-1;
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 84px;
}
.brand{ display:flex; align-items:center; gap:0.75rem; }
.brand img{ height: 46px; width:auto; }

.main-nav{ display:flex; align-items:center; gap: clamp(1.2rem, 3vw, 2.4rem); }
.main-nav > a{
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.main-nav > a::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:0; height:2px;
  background: var(--gold);
  transition: width .25s ease;
}
.main-nav > a:hover::after, .main-nav > a.active::after{ width:100%; }
.main-nav > a.active{ color: var(--gold); }
.nav-catalogue{
  border: 1px solid var(--navy) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 2px;
}
.nav-catalogue::after{ display:none !important; }
.nav-catalogue:hover{ background: var(--navy); color: var(--white) !important; }

.nav-social{ display:flex; gap:0.7rem; margin-left: 0.5rem; }
.nav-social a{
  width:34px; height:34px; border-radius:50%;
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  color: var(--navy);
  transition: all .2s ease;
}
.nav-social a svg{ width:16px; height:16px; fill:currentColor; }
.nav-social a:hover{ background: var(--navy); color:var(--white); border-color:var(--navy); }
.nav-social a.whatsapp:hover{ background:#25D366; border-color:#25D366; }

.nav-toggle{
  display:none;
  width:34px; height:24px;
  flex-direction:column; justify-content:space-between;
  cursor:pointer; background:none; border:none;
}
.nav-toggle span{ height:2px; width:100%; background:var(--navy); border-radius:2px; }

@media (max-width: 900px){
  .main-nav{
    position:fixed; top:84px; left:0; right:0;
    height: calc(100vh - 84px);
    z-index: 400;
    background: var(--white);
    flex-direction:column;
    align-items:flex-start;
    padding: 2.5rem clamp(1.25rem,4vw,2.5rem);
    gap: 1.6rem;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav > a{ font-size:1rem; }
  .nav-social{ margin-top:1rem; margin-left:0; }
  .nav-toggle{ display:flex; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 65%);
  color: var(--white);
  overflow:hidden;
  padding: clamp(4rem,10vw,7rem) 0 clamp(3.5rem,8vw,5.5rem);
}
.hero::before{
  content:"";
  position:absolute;
  right:-10%; top:-20%;
  width:640px; height:640px;
  border-radius:50%;
  border: 1px solid rgba(255,255,255,0.08);
}
.hero::after{
  content:"";
  position:absolute;
  right:6%; top:8%;
  width:420px; height:420px;
  border-radius:50%;
  border: 1px solid rgba(147,115,71,0.35);
}
.hero .wrap{ position:relative; z-index:2; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--gap);
  align-items:stretch;
}
.hero h1{ color:var(--white); }
.hero h1 em{ color: var(--gold); font-style:normal; }
.hero-lede{
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 1.4rem 0 2.2rem;
}
.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; }
.hero-contact{
  margin-top: 2.6rem;
  display:flex; gap: 2.2rem; flex-wrap:wrap;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-contact div span{ display:block; font-size:0.7rem; letter-spacing:0.15em; text-transform:uppercase; color: var(--grey); margin-bottom:0.3rem;}
.hero-contact div a, .hero-contact div p{ color:var(--white); font-weight:700; margin:0; }

.hero-figure{
  display:flex;
  flex-direction:column;
  gap: 0.85rem;
  height:100%;
}
.hero-photo{
  position:relative;
  flex:1;
  min-height: 90px;
  border-radius: 4px;
  overflow:hidden;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.5);
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; display:block; }

.hero-stat-bar{
  background: var(--gold);
  border-radius: 4px;
  padding: 0.9rem 1.4rem;
  display:flex;
  align-items:center;
  gap: 0.85rem;
  flex: none;
}
.hero-stat-bar strong{
  font-family:var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--navy);
}
.hero-stat-bar span{
  font-size:0.7rem;
  font-weight:700;
  letter-spacing:0.09em;
  text-transform:uppercase;
  color: var(--navy);
  line-height:1.25;
}

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; align-items: initial; }
  .hero-figure{ margin-top: 2.2rem; height:auto; flex-direction:row; flex-wrap:wrap; }
  .hero-photo{ flex: 1 1 45%; aspect-ratio: 1/1; min-height:0; }
  .hero-stat-bar{ flex: 1 1 100%; order:99; }
}

/* ---------- Breadcrumb / Page header (interior pages) ---------- */
.page-header{
  background: var(--navy);
  color: var(--white);
  padding: clamp(3.5rem,8vw,5rem) 0 clamp(2.5rem,6vw,3.5rem);
  position:relative;
  overflow:hidden;
}
.page-header::after{
  content:"";
  position:absolute; right:-8%; bottom:-40%;
  width:380px; height:380px; border-radius:50%;
  border:1px solid rgba(147,115,71,0.3);
}
.page-header .wrap{ position:relative; z-index:2; }
.page-header h1{ color:var(--white); }
.crumb{
  font-size:0.78rem; letter-spacing:0.1em; text-transform:uppercase;
  color: var(--grey); margin-top:1rem;
}
.crumb a{ color: var(--gold); }

/* ---------- Sections ---------- */
section{ padding: clamp(3.5rem,8vw,6rem) 0; }
.section-alt{ background: var(--paper); }
.section-navy{ background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3{ color: var(--white); }
.section-navy p{ color: rgba(255,255,255,0.72); }

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2rem,4vw,3rem);
  flex-wrap:wrap;
}
.section-head > div{ flex: 1 1 380px; }
.section-head p{ flex: 1 1 340px; max-width: 560px; margin:0; font-size:1.02rem; }
.section-head.stacked{ flex-direction: column; align-items: flex-start; }
.section-head.stacked > div{ flex: none; }
.section-head.stacked p{ flex: none; max-width: 700px; margin-top: 1.1rem; }

/* ---------- Stats strip ---------- */
.stats{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stats div{
  background: var(--white);
  padding: 2rem 1.5rem;
  text-align:center;
}
.stats strong{
  display:block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
}
.stats span{
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}
@media (max-width: 700px){ .stats{ grid-template-columns: repeat(2,1fr); } }

/* ---------- Pillars / cards ---------- */
.pillars{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border:1px solid var(--line);
}
.pillar{
  background: var(--white);
  padding: 2.4rem 2rem;
}
.pillar .num{
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  display:block;
  margin-bottom: 1.1rem;
}
.pillar h3{ margin-bottom: 0.7rem; }
.pillar p{ font-size: 0.95rem; margin:0; }
.pillars-2{ grid-template-columns: repeat(2, 1fr); }
.pillar-location{
  display:flex;
  align-items:center;
  gap:0.5rem;
  margin-top:1.1rem;
  padding-top:1.1rem;
  border-top:1px solid var(--line);
  font-weight:700;
  font-size:0.92rem;
  color:var(--navy);
}
.pillar-location svg{ width:16px; height:16px; fill:var(--gold); flex-shrink:0; }
@media (max-width: 900px){ .pillars{ grid-template-columns: 1fr; } }

/* ---------- Timeline (About) ---------- */
.timeline{ position:relative; padding-left: clamp(1.5rem,4vw,3rem); }
.timeline::before{
  content:""; position:absolute; left:0; top:6px; bottom:6px; width:1px;
  background: var(--line);
}
.tl-item{ position:relative; padding: 0 0 2.4rem clamp(1.75rem,4vw,3rem); }
.tl-item:last-child{ padding-bottom:0; }
.tl-item::before{
  content:""; position:absolute; left:-5px; top:6px;
  width:11px; height:11px; border-radius:50%;
  background: var(--white); border:2px solid var(--gold);
}
.tl-item .tl-year{
  display:block;
  font-size:0.72rem;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color: var(--gold);
  margin-bottom:0.4rem;
}
.tl-item h4{ font-family:var(--font-display); font-size:1.15rem; color:var(--navy); margin-bottom:0.5rem;}
.tl-item p{ margin:0; font-size:0.97rem; max-width:600px; }

/* ---------- Logistics grid ---------- */
.logi-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items:center;
}
.logi-figure{ border-radius:4px; overflow:hidden; aspect-ratio: 5/4;}
.logi-figure img{ width:100%; height:100%; object-fit:cover; }
@media (max-width:900px){ .logi-grid{ grid-template-columns:1fr; } }

/* ---------- Brands grid ---------- */
.brand-toolbar{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom: 2.2rem; flex-wrap:wrap; gap:1rem;
}
.brand-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border:1px solid var(--line);
}
.brand-tile{
  background: var(--white);
  aspect-ratio: 1/1;
  display:flex; align-items:center; justify-content:center;
  padding: 1.6rem;
  transition: background .25s ease;
}
.brand-tile:hover{ background: var(--paper); }
.brand-tile img{ max-width:100%; max-height:100%; object-fit:contain; filter: grayscale(15%); }
@media (max-width: 900px){ .brand-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px){ .brand-grid{ grid-template-columns: repeat(2,1fr); } }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--gold);
  color: var(--navy);
  padding: clamp(3rem,7vw,4.5rem) 0;
  position: relative;
  overflow:hidden;
}
.cta-band::before{
  content:"";
  position:absolute; left:-6%; top:-40%;
  width:320px; height:320px; border-radius:50%;
  border:1px solid rgba(31,26,92,0.18);
}
.cta-inner{
  position:relative; z-index:2;
  display:flex; justify-content:space-between; align-items:center; gap:2rem; flex-wrap:wrap;
}
.cta-inner h2{ color:var(--navy); margin:0; max-width:560px; }
.cta-band .btn-gold{ background: var(--navy); color: var(--white); }
.cta-band .btn-gold:hover{ background: var(--navy-deep); }

/* ---------- Contact ---------- */
.contact-methods{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border:1px solid var(--line);
}
.contact-method{
  background: var(--white);
  padding: 2.4rem 2rem;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.contact-method-icon{
  width:48px; height:48px;
  border-radius:50%;
  background: var(--paper);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:1.3rem;
}
.contact-method-icon svg{ width:22px; height:22px; fill:var(--gold); }
.contact-method h3{ font-size:1.15rem; margin-bottom:0.5rem; }
.contact-method p{ font-size:0.92rem; margin-bottom:1.4rem; }
.contact-method .btn{ margin-top:auto; font-size:0.78rem; padding:0.8rem 1.3rem; word-break:break-word; text-align:center; }
@media (max-width:900px){ .contact-methods{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .contact-methods{ grid-template-columns: 1fr; } }

.map-frame{ border:0; width:100%; height:340px; filter: grayscale(15%); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-deep); color: rgba(255,255,255,0.65); padding: 3.5rem 0 1.8rem; }
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--gap);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img{ height:58px; margin-bottom:1.4rem; }
.footer-brand p{ color: rgba(255,255,255,0.55); font-size:0.9rem; max-width:320px; }
.footer-col h5{
  font-size:0.72rem; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--gold); margin-bottom:1.1rem; font-family:var(--font-body); font-weight:700;
}
.footer-col a{ display:block; color: rgba(255,255,255,0.65); margin-bottom:0.7rem; font-size:0.92rem; }
.footer-col a:hover{ color:var(--white); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 1.6rem; font-size:0.8rem; flex-wrap:wrap; gap:1rem;
  color: rgba(255,255,255,0.4);
}
.footer-social{ display:flex; gap:0.8rem; }
.footer-social a{
  width:34px; height:34px; border-radius:50%; border:1px solid rgba(255,255,255,0.18);
  display:flex; align-items:center; justify-content:center; color: rgba(255,255,255,0.7);
  transition: all .2s ease;
}
.footer-social a svg{ width:16px; height:16px; fill:currentColor; }
.footer-social a:hover{ border-color:var(--gold); color:var(--gold); }
.footer-social a.whatsapp:hover{ border-color:#25D366; color:#25D366; }
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}
