/* ============ Tokens ============ */
:root {
  --warm-black: #15120F;
  --deep-black: #0B0908;
  --gold: #C99A3D;
  --light-gold: #F0C866;
  --dark-gold: #8F6727;
  --off-white: #E8E0D2;

  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;

  --container: 1180px;
  --gap: 24px;
  --radius-lg: 22px;
  --radius-md: 14px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--warm-black);
  color: var(--off-white);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { margin: 0; color: var(--off-white); font-weight: 600; }

h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.25; font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.35; }
h3 { font-size: 19px; font-weight: 600; }

p { color: rgba(232, 224, 210, 0.72); margin: 0; }

.eyebrow {
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 14px;
  position: relative;
  padding-inline-start: 20px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 1px;
  background: var(--gold);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 15.5px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--deep-black);
}
.btn-gold:hover { background: var(--light-gold); }

.btn-outline {
  border-color: rgba(201, 154, 61, 0.45);
  color: var(--off-white);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201, 154, 61, 0.08); }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: transparent;
  transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 9, 8, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-color: rgba(201, 154, 61, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo { height: 40px; width: auto; }
.brand-name { font-size: 18px; font-weight: 600; color: var(--off-white); }

.main-nav {
  display: flex;
  gap: 34px;
  margin-inline-start: auto;
  margin-inline-end: 34px;
}
.main-nav a {
  font-size: 15px;
  color: rgba(232, 224, 210, 0.82);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-cta { padding: 11px 22px; font-size: 14.5px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--off-white);
  margin: 0 auto;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  padding: 150px 0 90px;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  text-align: center;
}

.hero-text { max-width: 620px; }

.hero-sub {
  margin-top: 20px;
  font-size: 17px;
  max-width: 480px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-phone {
  margin-top: 22px;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: rgba(232, 224, 210, 0.55);
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: 780px;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset-inline-start: -18px;
  top: -18px;
  width: 55%;
  height: 60%;
  border: 1px solid rgba(201, 154, 61, 0.35);
  border-radius: var(--radius-lg);
  z-index: 0;
}

/* PART 1: Put this on the container box (This creates the visible rounded window) */
.hero-media-frame {
    position: relative;
    overflow: hidden;         /* Hides the extra 60% of the image */
    border-radius: 16px;      /* This is where the rounded corners actually show up! */
    
    /* Forces iPhone/Safari to show the rounded corners */
    transform: translateZ(0); 
}

/* PART 2: Keep this on the image itself */
.hero-media-frame img {
    width: 100%;
    height: 187%;
    object-fit: cover;
    object-position: top;     /* Keeps the photo aligned to the top */
    transition: transform .6s var(--ease);
}





/* 3. Slides up smoothly on hover to show the hidden bottom part */
.hero-media-frame:hover img {
    transform: translateY(-45%); /* Adjust this percentage based on your image */
}


.hero-media-frame:hover img { transform: scale(1.03); }

/* ============ Section shared ============ */
section { padding: 100px 0; }

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p { margin-top: 16px; font-size: 16px; }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.about-icon {
  width: 52px; height: 52px;
  margin: 0 auto 20px;
  color: var(--gold);
}
.about-item h3 { margin-bottom: 10px; }
.about-item p { font-size: 15px; }

/* ============ Services ============ */
.services { background: var(--deep-black); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.service-card {
  position: relative;
  padding: 4px;
}
.service-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  transition: transform .5s var(--ease);
}
.service-card:hover .service-image { transform: scale(1.015); }

.service-num {
  display: block;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 1px;
  margin-top: 22px;
}
.service-card h3 { margin-top: 8px; }
.service-card p { margin-top: 10px; font-size: 15px; }

/* ============ Why ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(201, 154, 61, 0.16);
  border: 1px solid rgba(201, 154, 61, 0.16);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.why-item {
  background: var(--warm-black);
  padding: 36px 26px;
}
.why-item h3 { color: var(--light-gold); margin-bottom: 10px; font-size: 17px; }
.why-item p { font-size: 14.5px; }

/* ============ Manufacturing ============ */
.manufacturing { background: var(--deep-black); }

.manufacturing-inner {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 60px;
  align-items: center;
}

.manufacturing-media img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.manufacturing-text h2 { margin: 6px 0 18px; }
.manufacturing-text p { max-width: 440px; margin-bottom: 30px; }

/* ============ Portfolio ============ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portfolio-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.portfolio-item figcaption {
  position: absolute;
  inset-inline-start: 18px;
  bottom: 16px;
  font-size: 14.5px;
  color: var(--off-white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.portfolio-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,9,8,0.75), transparent 55%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item:hover::after,
.portfolio-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ============ Steps ============ */
.steps-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}
.steps-track::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 6%;
  left: 6%;
  height: 1px;
  background: rgba(201, 154, 61, 0.25);
}
.step {
  position: relative;
  text-align: center;
  z-index: 1;
}
.step-num {
  display: inline-block;
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  background: var(--warm-black);
  padding: 0 12px;
  margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; }

/* ============ Final CTA ============ */
.final-cta {
  background: var(--deep-black);
  text-align: center;
  padding: 120px 0;
}
.final-cta h2 { margin-bottom: 16px; }
.final-cta p {
  max-width: 480px;
  margin: 0 auto 34px;
  font-size: 16.5px;
}
.cta-phone {
  margin-top: 20px;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: rgba(232, 224, 210, 0.55);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--deep-black);
  border-top: 1px solid rgba(201, 154, 61, 0.14);
  padding-top: 70px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-logo { height: 44px; margin-bottom: 16px; }
.footer-brand h3 { margin-bottom: 12px; }
.footer-brand p { font-size: 14.5px; max-width: 380px; margin-bottom: 10px; }
.footer-city, .footer-phone { color: rgba(232, 224, 210, 0.55); font-size: 14px; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.footer-nav a { font-size: 14.5px; color: rgba(232, 224, 210, 0.75); }
.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(201, 154, 61, 0.1);
  padding: 22px 0;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: rgba(232, 224, 210, 0.45); }

/* ============ WhatsApp float ============ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--deep-black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  z-index: 90;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float:hover { background: var(--light-gold); transform: scale(1.05); }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .manufacturing-inner { grid-template-columns: 1fr; }
  .manufacturing-media { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-track { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps-track::before { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 18px 26px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0; left: 0;
    background: rgba(11, 9, 8, 0.98);
    padding: 22px 24px 28px;
    gap: 20px;
    border-bottom: 1px solid rgba(201, 154, 61, 0.16);
  }

  .hero { padding: 130px 0 70px; }
  section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }

  .why-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .steps-track { grid-template-columns: 1fr; }

  .whatsapp-float { width: 50px; height: 50px; bottom: 18px; inset-inline-end: 18px; }

  .hero-media-frame { aspect-ratio: 4 / 3; }
}
