/* ===========================
   SALOMIL — Global Stylesheet
   One CSS for all 4 pages
   =========================== */

/* ---------- CSS Reset & Base ---------- */
*{box-sizing:border-box} 
html,body{margin:0;padding:0}
body{font-family:"Cairo",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:#111;background:#fff;line-height:1.6;overflow-x:hidden}

/* ---------- Layout Helpers ---------- */
.container{
	max-width:1170px;
	margin:0 auto;
	padding:0 16px
	}

/* ---------- Header (fixed) ---------- */
.header{
	position:fixed;
	top:0;
	left:0;
	right:0;
	z-index:1000;
	background:#fff;
	border-bottom:1px solid #eee
	}
.header .bar{
	min-height:80px;
	display:flex;
	align-items:center;
	justify-content:space-between
	}

/* ---------- Logo ---------- */
.logo img{
	height:100px;
	width:auto;
	display:block
	}

/* ---------- Desktop Nav ---------- */
nav{
	display:block
	}
nav ul{
	list-style:none;
	margin:0;
	padding:0;
	display:flex;
	align-items:center;
	gap:28px
	}
nav li{
	display:flex;
	align-items:center
	}
nav a{
	display:inline-block;
	position:relative;
	font-weight:700;
	font-size:16px;
	line-height:1.4;
	color:#000;
	text-decoration:none;
	padding:8px 0;
	transition:color .3s ease
	}
nav a::after{
	content:"";
	position:absolute;
	left:0;
	bottom:-2px;
	width:100%;
	height:3px;
	background:#000;
	transform:scaleX(0);
	transform-origin:left;
	transition:transform .3s ease
	}
nav a:hover::after,nav a[aria-current="page"]::after{transform:scaleX(1)}

/* ---------- Mobile Menu Button ---------- */
.menu-btn{
	display:none;
	background:none;
	border:0
	}
.menu-btn svg{
	width:28px;
	height:28px
	}

/* ---------- Sidebar (mobile nav) ---------- */
.sidebar{
	position:fixed;
	inset:0 0 0 auto;
	width:260px;
	transform:translateX(100%);
	transition:transform .25s;
	background:#fff;
	box-shadow:-8px 0 24px rgba(0,0,0,.08);
	display:flex;
	flex-direction:column;
	gap:6px;
	padding:16px;
	z-index:1100
	}
.sidebar.open{
	transform:none
	}
.sidebar .close{
	align-self:flex-end;
	background:none;
	border:0
	}
.sidebar .close svg{width:26px;height:26px}
.sidebar a{display:inline-block;position:relative;font-weight:700;font-size:16px;line-height:1.4;color:#000;text-decoration:none;padding:10px 8px;border-radius:8px}
.sidebar a::after{content:"";position:absolute;left:0;bottom:-2px;width:100%;height:3px;background:#000;transform:scaleX(0);transform-origin:left;transition:transform .3s ease}
.sidebar a:hover::after,.sidebar a[aria-current="page"]::after{transform:scaleX(1)}

/* ---------- Responsive Header Rules ---------- */
@media (max-width:768px){nav{display:none}.menu-btn{display:inline-flex}}

/* ---------- Main top offset (push below fixed header) ---------- */
main{margin-top:80px}

/* ---------- Home: Slider (with Prev/Next arrows) ---------- */
/* Structure */
.slider{position:relative;width:100%;min-height:90vh;background:#000;color:#fff;overflow:hidden;}

.slide{position:absolute;inset:0;opacity:0;transition: opacity 0.5s ease-in-out;}
.slide.active{opacity:1}
.slide img{width:100%;height:100%;object-fit:cover;display:block}
.slide .caption{position:absolute;left:50%;bottom:8%;transform:translateX(-50%);text-align:center;padding:12px 16px;border-radius:10px;backdrop-filter:saturate(120%)}
.slide .caption h1{margin:0;font-size:clamp(26px,4.8vw,28px);letter-spacing:.3px;color:#fff}

/* Arrows */
.slider .ctrl{position:absolute;top:50%;transform:translateY(-50%);border:0;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;cursor:pointer;z-index:5;
  background:rgba(0,0,0,.5);box-shadow:0 4px 14px rgba(0,0,0,.25);transition:background .2s ease, transform .2s ease}
.slider .ctrl svg{width:22px;height:22px;fill:#fff}
.slider .prev{left:16px}
.slider .next{right:16px}
.slider .ctrl:hover{background:rgba(0,0,0,.7)}
.slider .ctrl:active{transform:translateY(-50%) scale(.96)}

/* Dots */
.slider .dots{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);display:flex;gap:10px;z-index:4}
.slider .dot{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.45);border:1px solid rgba(255,255,255,.85);cursor:pointer}
.slider .dot.active{background:#fff}

/* ==== Intro (title + subtitle + hero image) ==== */
.intro{padding:56px 16px 40px;background:#f3f3f3}           /* light gray like the screenshot */
.intro h2{font-size:clamp(28px,4vw,48px);line-height:1.1;margin:0 0 14px;text-align:center}
.intro .lead{
  max-width:960px;margin:0 auto;text-align:center;
  color:#6b7280; /* subtle gray */
  font-size:18px;line-height:1.9;
}

/* Big centered image below the text */
.intro-figure{
  display:block;
  margin:32px auto 0;
  width:min(1200px,92vw);     /* big, but responsive */
}
.intro-figure img{
  display:block;width:100%;height:auto;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.15)); /* soft shadow under unit */
}

/* ---------- Sections (generic spacing) ---------- */
section{padding:56px 16px}

/* ---------- Cards / Grids (Home & Products) ---------- */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:22px}
.card{width:100%;height:90%;border:1px solid #eee;border-radius:50px;padding:18px;background:#fff}
.card h3{margin:0 0 8px}
.card p{color:#555}
.card img{width:100%;height:30%;border-radius:20px;margin-top:8px}

/* ==== Applications (image + text alternating) ==== */
.applications{padding:80px 16px;background:#f3f3f3}
.applications h2{text-align:center;font-size:clamp(28px,4vw,44px);margin-bottom:50px}

.app-row{
  display:flex;align-items:center;justify-content:space-between;
  gap:48px;margin-bottom:80px;flex-wrap:wrap
}
.app-row.reverse{flex-direction:row-reverse}

.app-img{
  flex:1 1 400px;max-width:400px;
  border-radius:12px;overflow:hidden
}
.app-img img{
  width:100%;height:auto;display:block;
  border-radius:12px;
  box-shadow:0 10px 25px rgba(0,0,0,0.15)
}

.app-text{
  flex:1 1 420px;max-width:680px;
}
.app-text h3{font-size:clamp(22px,2.6vw,32px);margin:0 0 14px}
.app-text p{
  margin:0;color:#6b7280;font-size:18px;line-height:1.8;
}

/* responsive */
@media (max-width: 900px){
  .app-row{flex-direction:column;text-align:center}
  .app-row.reverse{flex-direction:column}
  .app-img, .app-text{max-width:100%}
}
/* ==== Colors Collection (title + subtitle + grid) ==== */
.colors-collection{padding:72px 16px;background:#f3f3f3}
.colors-collection h2{margin:0 0 14px;text-align:center;font-size:clamp(28px,4vw,48px);line-height:1.15}
.colors-lead{
  max-width:1100px;margin:0 auto 34px;text-align:center;color:#6b7280;
  font-size:18px;line-height:1.9
}

/* grid */
.colors-grid{
  display:grid;gap:26px;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}

/* card */
.color-card{
  margin:0;background:#f3f3f3;border-radius:18px;overflow:hidden;
  box-shadow:0 12px 28px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
}
.color-card img{
  display:block;width:100%;height:auto;object-fit:cover;
  aspect-ratio: 1 / 1;          /* keeps tidy square like your mock */
  transform:translateZ(0);      /* crisper on Chrome */
}

/* subtle hover (keeps your theme) */
@media (hover:hover){
  .color-card{transition:transform .25s ease, box-shadow .25s ease}
  .color-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 36px rgba(0,0,0,.12), 0 6px 12px rgba(0,0,0,.08);
  }
}

/* responsive tweaks */
@media (min-width:1200px){
  .colors-grid{grid-template-columns:repeat(5,1fr);} /* like your 5-across screenshot */
}
@media (max-width:900px){
  .colors-grid{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:600px){
  .colors-grid{grid-template-columns:repeat(2,1fr);}
}

/* ==== Buttons under Colors Collection ==== */
.color-buttons {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:22px;
  margin-top:48px;
  flex-wrap:wrap;
}

/* Base button style */
.btn {
  position:relative;
  display:inline-block;
  padding:14px 36px;
  font-size:17px;
  font-weight:600;
  border-radius:50px;
  text-decoration:none;
  overflow:hidden;
  transition:all .3s ease;
  letter-spacing:0.5px;
  cursor:pointer;
}

/* Solid red button */
.btn-red {
  color:#fff;
  background:#e63946;
  box-shadow:0 4px 15px rgba(230,57,70,0.3);
}
.btn-red:hover {
  background:#ff4747;
  transform:translateY(-3px);
  box-shadow:0 6px 20px rgba(230,57,70,0.4);
}

/* Outline button */
.btn-outline {
  color:#e63946;
  border:2px solid #e63946;
  background:transparent;
}
.btn-outline:hover {
  color:#fff;
  background:#e63946;
  transform:translateY(-3px);
  box-shadow:0 6px 20px rgba(230,57,70,0.3);
}

/* Animated glowing pulse (optional) */
.btn-red::before, .btn-outline::before {
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(circle at center, rgba(230,57,70,0.25) 0%, transparent 70%);
  opacity:0;
  transition:opacity .4s ease;
}
.btn:hover::before { opacity:1; animation:pulse 1s ease infinite alternate; }

@keyframes pulse {
  from { transform:scale(1); opacity:.4; }
  to { transform:scale(1.2); opacity:0; }
}

/* Responsive adjustments */
@media (max-width:600px){
  .btn{width:80%;text-align:center;}
}
/* ---------- Product page blocks ---------- */

/* 1) page background only on products page */
body.products-page {
  background:#f3f3f3;
}

/* 2) hero banner */
.hero {
  min-height:40vh;
  background:#000 url("photos/wide1.png") center/cover no-repeat;
  display:grid;
  place-items:center;
  color:#fff;
  text-align:center;
}
.hero h1 {
  font-size:clamp(28px,5vw,44px);
  margin:0 12px;
}

/* 3) wrapper for content under hero */
.products-main {
  padding-bottom:60px;
}
.products-wrapper {
  max-width:1200px;
  margin:0 auto;
  padding:40px 16px 60px;
}

/* 4) section title */
.products-wrapper h2 {
  text-align:center;
  margin:0 0 10px;
  font-size:clamp(26px,4vw,36px);
}
.products-wrapper p.lead {
  max-width:840px;
  margin:0 auto 32px;
  text-align:center;
  color:#6b7280;
}

/* 5) product cards grid */
.product-grid {
  display:grid;
  gap:24px;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  align-items:start;
}

/* 6) individual product card */
.product-card {
  position:relative;
  border-radius:18px;
  background: linear-gradient(135deg, #ffffff, #e8e8e8);
  border:1px solid #d0d0d0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .3s ease, 
              box-shadow .3s ease, 
              opacity .5s ease;
  opacity:0;
  transform:translateY(24px);
}
.product-card.in {
  opacity:1;
  transform:none;
}
.product-card:hover {
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(0,0,0,.10);
}

/* === PERFECT RESPONSIVE PRODUCT IMAGES === */
.product-media {
  width:100%;
  aspect-ratio: 16 / 12;
  overflow:hidden;
  border-radius:14px;
  background:#e5e5e5;
}
.product-media img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* tablet */
@media (max-width:1024px) {
  .product-media { aspect-ratio: 16 / 14; }
}

/* mobile */
@media (max-width:768px) {
  .product-media { aspect-ratio: 16 / 16; }
}

/* small phones */
@media (max-width:480px) {
  .product-media { aspect-ratio: 1 / 1; }
}

/* product body */
.product-body {
  padding:18px 20px 16px;
}
.product-body h3 {
  margin:0 0 10px;
  font-size:20px;
}
.product-body p {
  margin:0;
  color:#6b7280;
  line-height:1.7;
}

/* 7) features footer */
.product-footer {
  padding:12px 20px 18px;
  border-top:1px solid #f1f1f1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.feature-tags {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.feature-tags span {
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  background:#f3f4f6;
  color:#4b5563;
}

/* 8) features button */
.feature-btn {
  border:0;
  border-radius:999px;
  padding:8px 16px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  background:#000;
  color:#fff;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.feature-btn span.icon {
  transition:transform .25s ease;
}
.product-card.open .feature-btn span.icon {
  transform:rotate(180deg);
}

/* 9) expand panel */
.feature-panel {
  max-height:0;
  opacity:0;
  overflow:hidden;
  padding:0 20px;
  transition:max-height .35s ease,
             opacity .35s ease,
             padding-top .35s ease;
}
.product-card.open .feature-panel {
  max-height:260px;
  opacity:1;
  padding-top:10px;
}
.feature-panel ul {
  margin:0 0 12px;
  padding-left:18px;
  color:#4b5563;
  font-size:14px;
  line-height:1.7;
}
/* ---------- About Page Application Blocks ---------- */
body.about-page {
 background: #f3f3f3;    /* change this to any color */
}
.about-applications {
  margin-top: 60px;
  margin-bottom: 60px;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.app-row.reverse {
  flex-direction: row-reverse;
}

.app-img {
  flex: 1;
}

.app-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.app-text {
  flex: 1;
}

.app-text h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.app-text p {
  font-size: 18px;
  color: #555;
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .app-row,
  .app-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .app-img img {
    height: 300px;
  }

  .app-row.reverse .app-text,
  .app-row.reverse .app-img {
    order: initial;
  }
}

@media (max-width: 500px) {
  .app-img img {
    height: 240px;
  }

  .app-text h3 {
    font-size: 24px;
  }

  .app-text p {
    font-size: 16px;
  }
}
/* ---------- Works With (logo marquee) ---------- */

.works-with{
  padding:40px 0 60px;
  background:#f3f3f3;
  text-align:center;
}

.works-with h2{
  margin:0 0 18px;
  font-size:clamp(24px,3vw,32px);
}

.logo-marquee{
  position:relative;
  overflow:hidden;
  padding:16px 0;
}

.logo-track{
  display:flex;
  align-items:center;
  gap:48px;
  width:max-content;
  animation:logos-scroll 25s linear infinite;
}

/* logos style */
.logo-track img{
  height:48px;
  width:auto;
  object-fit:contain;
  filter:none;       /* full color */
  opacity:1;         /* full brightness */
  transition:transform .3s ease;
}


.logo-track img:hover{
  filter:none;
  opacity:1;
  transform:scale(1.05);
}

/* pause animation on hover */
.logo-marquee:hover .logo-track{
  animation-play-state:paused;
}

/* infinite scroll keyframes */
@keyframes logos-scroll{
  0%   { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}

/* responsive tweaks */
@media (max-width:768px){
  .logo-track{
    gap:32px;
  }
  .logo-track img{
    height:40px;
  }
}


/* ---------- Contact page blocks ---------- */
.wrap{display:grid;grid-template-columns:2fr 1fr;gap:28px;align-items:start;margin:30px 0}
@media (max-width:900px){.wrap{grid-template-columns:1fr}}
h1{font-size:clamp(26px,4vw,38px);margin:18px 0;text-align:center}
form{border:1px solid #eee;border-radius:14px;padding:18px;background:#fff}
label{display:block;font-weight:700;margin-top:10px}
input,textarea{width:100%;padding:12px;border:1px solid #ddd;border-radius:10px;font:inherit}
textarea{min-height:140px;resize:vertical}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:600px){.row{grid-template-columns:1fr}}
.submit{margin-top:12px;display:flex;gap:10px;align-items:center}
.btn{background:#000;color:#fff;border:0;padding:12px 18px;border-radius:10px;font-weight:800;cursor:pointer}
.btn:disabled{opacity:.6;cursor:not-allowed}
.info{border:1px solid #eee;border-radius:14px;padding:18px;background:#fff}
.info h2{margin:0 0 8px}
.icon-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.icon-list a{color:#000;text-decoration:none}
.icon{display:inline-flex;vertical-align:middle;margin-right:6px}
.icon svg{width:18px;height:18px}

/* ---------- Footer ---------- */
footer{width:100%;background:#000;color:#fff;text-align:center;padding:40px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center}
footer p{margin:8px 0;font-size:16px}
.icons{display:flex;justify-content:center;align-items:center;gap:12px;list-style:none;margin:12px 0 0;padding:0}
.icons a{display:inline-flex;align-items:center;justify-content:center;padding:6px;border-radius:8px;background:#111;transition:background .3s ease}
.icons svg{width:18px;height:18px;fill:#fff;display:block}
.icons a:hover{background:#222}

/* ---------- Small Animations ---------- */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}

/* ---------- Accessibility helpers (focus) ---------- */
a:focus-visible,button:focus-visible{outline:2px solid #000;outline-offset:2px}
