/* Faisal Poly Propylene - Industrial Website (Multi-page)
   Clean, formal, mobile-first. No frameworks.
*/

:root{
  --bg: #ffffff;
  --text: #0f172a;      /* slate-900 */
  --muted: #475569;     /* slate-600 */
  --line: #e2e8f0;      /* slate-200 */
  --soft: #f8fafc;      /* slate-50 */
  --soft2:#f1f5f9;      /* slate-100 */
  --brand:#003B72;      /* logo blue */
  --brand2:#255C97;
  --accent:#0F5EA8;     /* WhatsApp green-ish */
  --shadow: 0 10px 25px rgba(2, 6, 23, .08);
  --radius: 14px;
  --radius2: 18px;
  --max: 1200px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}
.section{padding:64px 0}
.section.soft{background:var(--soft)}
.section.soft2{background:var(--soft2)}
h1,h2,h3{line-height:1.2; margin:0 0 12px}
p{margin:0 0 12px; color:var(--muted)}
.small{font-size:.92rem; color:var(--muted)}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border:1px solid var(--line);
  border-radius:999px; background:#fff;
  font-size:.92rem; color:var(--muted);
}

/* Header */
.header{
  position:sticky; top:0; z-index:1000;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:12px;
  padding:12px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:750;
}
.brand .logo-img{
  width:168px;
  height:40px;
  object-fit:contain;
  display:block;
}
.brand span{font-size:1.02rem}
.nav{
  display:flex; align-items:center; justify-content:center;
  gap:18px;
}
.nav a{
  font-size:.95rem;
  color:var(--muted);
  padding:8px 10px;
  border-radius:10px;
}
.nav a:hover{background:var(--soft2); color:var(--text)}
.nav a.active{color:var(--text); background:var(--soft2); font-weight:650}

.header-actions{
  display:flex; align-items:center; justify-content:flex-end;
  gap:10px;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:650;
  cursor:pointer;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{box-shadow:var(--shadow)}
.btn:active{transform:translateY(1px)}
.btn.primary{
  background:var(--brand);
  color:#fff;
  border-color:transparent;
}
.btn.primary:hover{background:var(--brand2)}
.btn.whatsapp{
  background:#fff;
}
.btn.whatsapp .dot{
  width:10px; height:10px; border-radius:999px; background:var(--accent);
}
.icon-btn{
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  display:grid; place-items:center;
  cursor:pointer;
}
.icon-btn:hover{box-shadow:var(--shadow)}
.menu-btn{display:none}

/* Mobile nav */
.mobile-panel{
  display:none;
  border-top:1px solid var(--line);
  background:#fff;
}
.mobile-panel .mobile-links{
  display:grid;
  gap:6px;
  padding:12px 0 14px;
}
.mobile-panel a{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
}
.mobile-panel a:hover{background:var(--soft2); color:var(--text)}
.mobile-panel .actions{
  display:flex; gap:10px; flex-wrap:wrap;
  padding:6px 0 16px;
}

/* Hero */
.hero{
  padding:62px 0;
  background:
    radial-gradient(900px 300px at 30% 20%, rgba(15, 94, 168, .10), transparent 60%),
    radial-gradient(900px 300px at 70% 0%, rgba(11, 58, 106, .12), transparent 60%),
    linear-gradient(to bottom, #fff, var(--soft));
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:center;
}
.hero h1{font-size:2.2rem}
.hero p{font-size:1.02rem}
.hero .cta-row{display:flex; gap:12px; flex-wrap:wrap; margin-top:16px}
.hero-card{
  border:1px solid var(--line);
  border-radius:var(--radius2);
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow);
}
.hero-card .hero-img{
  height:320px;
  background:
    linear-gradient(135deg, rgba(11,58,106,.95), rgba(15,94,168,.65)),
    url("../assets/hero.jpg");
  background-size:cover;
  background-position:center;
}
.hero-card .hero-img .label{
  padding:14px 14px 0;
  color:#fff;
  font-weight:700;
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.hero-card .hero-meta{
  padding:14px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.kpi{
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--soft);
}
.kpi b{display:block}
.kpi span{color:var(--muted); font-size:.9rem}

/* Cards / grids */
.grid-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}
.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  overflow:hidden;
  transition: transform .08s ease, box-shadow .2s ease;
}
.card:hover{box-shadow:var(--shadow); transform:translateY(-2px)}
.card .thumb{
  height:160px;
  background:var(--soft2);
  background-size:cover;
  background-position:center;
}
.card .content{padding:14px}
.card .content h3{font-size:1.05rem}
.card .content .line{height:1px; background:var(--line); margin:12px 0}
.card .content .link{
  display:inline-flex; align-items:center; gap:8px;
  color:var(--brand2); font-weight:650; font-size:.95rem;
}
.card .content .link:hover{text-decoration:underline}

/* Strip list */
.strip{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
}

/* CTA Banner */
.cta-banner{
  border:1px solid var(--line);
  border-radius:var(--radius2);
  padding:22px;
  background:linear-gradient(135deg, rgba(11,58,106,.06), rgba(15,94,168,.08));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.cta-banner h2{margin:0; font-size:1.4rem}
.cta-banner p{margin:6px 0 0}

/* Forms */
.form{
  border:1px solid var(--line);
  border-radius:var(--radius2);
  background:#fff;
  padding:18px;
  box-shadow:var(--shadow);
}
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.field{display:flex; flex-direction:column; gap:6px}
label{font-size:.92rem; color:var(--muted)}
input, select, textarea{
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  outline:none;
  font-size:1rem;
  background:#fff;
}
textarea{min-height:120px; resize:vertical}
input:focus, select:focus, textarea:focus{
  border-color: rgba(15,94,168,.55);
  box-shadow: 0 0 0 4px rgba(15,94,168,.12);
}
.form-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.note{
  margin-top:10px;
  font-size:.9rem;
  color:var(--muted);
}

/* Page header */
.pagehead{
  padding:28px 0 0;
}
.breadcrumbs{
  color:var(--muted);
  font-size:.92rem;
}
.pagehead h1{margin-top:10px}

/* Product detail layout */
.product-layout{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:start;
}
.gallery{
  border:1px solid var(--line);
  border-radius:var(--radius2);
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow);
}
.gallery .main{
  height:360px;
  background:var(--soft2);
  background-size:cover;
  background-position:center;
}
.gallery .thumbs{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:8px;
  padding:12px;
  background:var(--soft);
  border-top:1px solid var(--line);
}
.gallery .thumbs button{
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  padding:0;
  cursor:pointer;
}
.gallery .thumbs img{height:72px; width:100%; object-fit:cover}

/* Footer */
.footer{
  padding:46px 0 0;
  background:#0b1220;
  color:#e5e7eb;
}
.footer a{color:#e5e7eb}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap:18px;
  padding-bottom:26px;
}
.footer h3{margin:0 0 10px; font-size:1.02rem}
.footer p{color:#cbd5e1}
.footer ul{list-style:none; padding:0; margin:0; display:grid; gap:8px}
.footer .wa{
  display:inline-flex; gap:10px; align-items:center;
  padding:10px 12px; border-radius:12px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
}
.footer .wa .dot{width:10px; height:10px; border-radius:999px; background:var(--accent)}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.10);
  padding:14px 0;
  color:#cbd5e1;
  font-size:.92rem;
}

/* Utilities */
.mt-8{margin-top:8px}
.mt-12{margin-top:12px}
.mt-16{margin-top:16px}
.mt-22{margin-top:22px}
.mb-0{margin-bottom:0}
.hidden{display:none !important;}

/* Responsive */
@media (max-width: 980px){
  .header-inner{grid-template-columns: 1fr auto}
  .nav{display:none}
  .header-actions{display:none}
  .menu-btn{display:grid}
  .mobile-panel{display:block}
  .hero-grid{grid-template-columns: 1fr}
  .grid-4{grid-template-columns: repeat(2, 1fr)}
  .product-layout{grid-template-columns: 1fr}
  .footer-grid{grid-template-columns: 1fr 1fr}
}
@media (max-width: 560px){
  .grid-4{grid-template-columns: 1fr}
  .form-grid{grid-template-columns: 1fr}
  .footer-grid{grid-template-columns: 1fr}
  .hero h1{font-size:1.8rem}
}

/* WhatsApp icon */
.wa-ico{
  width:18px;
  height:18px;
  display:inline-block;
}
.btn.whatsapp{
  color: var(--accent);
  border-color: rgba(22,163,74,.25);
}
.btn.whatsapp:hover{
  border-color: rgba(22,163,74,.45);
}
.footer .wa{
  color:#e5e7eb;
}
.footer .wa .wa-ico{
  width:18px;
  height:18px;
}

/* Ensure WhatsApp icon + text are aligned */
.btn.whatsapp{gap:10px;}
.footer .wa{gap:10px;}



/* ===== UI Tweaks (Jan 2026) ===== */

/* Get a Quote button: keep compact and fit to text */
.btn{ white-space: nowrap; }
.header .btn.primary{
  padding: 9px 12px !important;
  border-radius: 12px;
  font-size: .95rem;
  line-height: 1.1;
}

/* WhatsApp button: green icon/text (not duplicated), with optional green hover background */
.btn.whatsapp{
  background: #ffffff !important;
  color: var(--accent) !important;
  border-color: rgba(22,163,74,.35) !important;
}
.btn.whatsapp .wa-ico{ color: var(--accent) !important; }
.btn.whatsapp:hover{
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
.btn.whatsapp:hover .wa-ico{ color: #ffffff !important; }

/* Footer WhatsApp link stays readable */
.footer .wa{ color: #e5e7eb; }
.footer .wa .wa-ico{ color: #22c55e; }


/* ===== WhatsApp Button Final (Always Green) ===== */
.btn.whatsapp{
  background: #22c55e !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
.btn.whatsapp .wa-ico{ color: #ffffff !important; }
.btn.whatsapp:hover{
  background: #16a34a !important;
  color: #ffffff !important;
}
.btn.whatsapp:hover .wa-ico{ color: #ffffff !important; }

/* ===== Mobile Menu Button (Hamburger) ===== */
.icon-btn.menu-btn{
  width:42px; height:42px;
  display:none;
  place-items:center;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  cursor:pointer;
}
.icon-btn.menu-btn span{
  display:block;
  width:20px; height:2px;
  background:var(--text);
  border-radius:2px;
  margin:2px 0;
}
@media (max-width: 980px){
  .icon-btn.menu-btn{display:grid;}
}

/* Make mobile panel feel like a dropdown */
@media (max-width: 980px){
  .mobile-panel{
    box-shadow: var(--shadow);
    border-radius: 0 0 16px 16px;
    padding: 0 0 6px;
  }
}

/* Hero media image */
.hero-media{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  overflow:hidden;
  min-height: 260px;
  background-size: cover;
  background-position: center;
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Google Maps embed */
.map-embed{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  overflow:hidden;
  background:#fff;
}
.map-embed iframe{
  width:100%;
  height:360px;
  border:0;
  display:block;
}
@media (max-width: 720px){
  .map-embed iframe{ height:320px; }
}
/* ===== Header & Navigation (Desktop-first, fixed) ===== */
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
}
.brand{display:flex; align-items:center; gap:10px;}
.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex:1;
}
.header-actions{display:flex; align-items:center; gap:10px;}

/* Mobile UI pieces hidden on desktop */
.icon-btn.menu-btn{display:none;}
.mobile-panel{display:none;}

/* Hamburger button styling */
.icon-btn.menu-btn{
  width:42px; height:42px;
  place-items:center;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  cursor:pointer;
}
.icon-btn.menu-btn span{
  display:block;
  width:20px; height:2px;
  background:var(--text);
  border-radius:2px;
  margin:2px 0;
}

/* ===== Responsive: hide desktop menu; show hamburger. Mobile panel stays hidden until toggled ===== */
@media (max-width: 980px){
  .nav{display:none !important;}
  .header-actions{display:none !important;}
  .icon-btn.menu-btn{display:grid !important;}
  .mobile-panel{display:block;}
}

/* Mobile dropdown panel (visible only when .hidden is removed by JS) */
.mobile-panel{
  border-top:1px solid var(--line);
  padding:10px 0 14px;
}
.mobile-links{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:10px 0;
}
.mobile-links a{
  padding:10px 6px;
  border-radius:10px;
}
.mobile-links a:hover{
  background: rgba(2, 132, 199, 0.08);
}

/* Align hero buttons perfectly on same baseline */
.hero-actions{
  display: flex;
  gap: 12px;
  align-items: center;   /* key */
  flex-wrap: wrap;
}

.hero-actions .btn{
  display: inline-flex;  /* key */
  align-items: center;   /* key */
  justify-content: center;
  line-height: 1;        /* key */
}

/* Make the whatsapp icon not affect baseline */
.hero-actions .btn .wa-ico{
  display: block;        /* key */
  width: 18px;
  height: 18px;
  margin-right: 8px;
  flex: 0 0 auto;
}
