/* ==========================================================================
   SS DYNAMIC ENTERPRISES — EXACT REPLICA of codexdynamic.com
   Palette (sampled from live site): sky blue header, navy, orange, red,
   amber/yellow footer, light grey sections — matches original 1:1.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root{
  --sky:     #63B3ED;  /* header bar */
  --navy:    #003049;  /* hero bg, headings, testimonials bg */
  --orange:  #F77F00;  /* CTA blocks / buttons */
  --red:     #D62828;  /* alternate content block */
  --amber:   #FCBF49;  /* footer bg, CTA pill */
  --grey:    #F0F3F4;  /* services section bg */
  --white:   #FFFFFF;
  --text:    #2B2B2B;

  --font: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --container: 1200px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--white);
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0 0 0.5em; font-weight:700; color:var(--navy); line-height:1.2; }
p{ margin:0 0 1em; }
button{ font-family:inherit; cursor:pointer; }

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

/* Buttons */
.btn{
  display:inline-block;
  padding:0.85rem 1.8rem;
  border-radius:999px;
  font-weight:600;
  font-size:0.98rem;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
  border:none;
}
.btn-amber{ background:var(--amber); color:var(--navy); }
.btn-amber:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(252,191,73,.4); }
.btn-navy{ background:var(--navy); color:#fff; }
.btn-navy:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,48,73,.3); }
.btn-green{ background:#28A745; color:#fff; width:100%; padding:0.9rem; border-radius:6px; font-size:1rem; }
.btn-green:hover{ background:#23913c; }

/* ---------- Header ---------- */
.site-header{ background:var(--sky); position:sticky; top:0; z-index:100; }
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-block:0.9rem;
}
.brand img{ height:64px; }
.nav-main{ display:flex; align-items:center; gap:2.5rem; }
.nav-links{ display:flex; gap:2.2rem; }
.nav-links a{ color:var(--navy); font-weight:600; font-size:1.05rem; transition:opacity .2s; }
.nav-links a:hover{ opacity:0.7; }
.nav-toggle{
  display:none; background:none; border:none; width:40px; height:40px;
  flex-direction:column; justify-content:center; gap:5px; cursor:pointer;
}
.nav-toggle span{ display:block; width:26px; height:3px; background:var(--navy); border-radius:2px; }

/* ---------- Hero (video bg, home) ---------- */
.hero{ position:relative; overflow:hidden; background:var(--navy); min-height:640px; display:flex; align-items:center; }
.hero video, .hero .hero-poster{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;
}
.hero::after{ content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(0,48,73,.88) 0%, rgba(0,48,73,.55) 45%, rgba(0,48,73,.25) 100%); z-index:1; }
.hero .wrap{ position:relative; z-index:2; padding-block:5rem; }
.hero-content{ max-width:620px; }
.hero h1{ color:#fff; font-size:clamp(2.1rem,4vw,3.1rem); font-weight:800; }
.hero p{ color:#E7EEF2; font-size:1.1rem; max-width:48ch; }

/* ---------- Page hero (Services / Contact, image bg) ---------- */
.page-hero{ position:relative; background:var(--navy); min-height:380px; display:flex; align-items:center; overflow:hidden; }
.page-hero img.bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.page-hero::after{ content:""; position:absolute; inset:0; background:rgba(0,48,73,0.72); z-index:1; }
.page-hero .wrap{ position:relative; z-index:2; text-align:center; padding-block:4rem; }
.page-hero h1{ color:#fff; font-size:clamp(1.9rem,4vw,2.6rem); }

.contact-hero{ position:relative; min-height:560px; display:flex; align-items:flex-end; overflow:hidden; }
.contact-hero img.bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.contact-hero::after{ content:""; position:absolute; inset:0; background:rgba(0,48,73,0.45); z-index:1; }
.contact-hero .wrap{ position:relative; z-index:2; display:grid; grid-template-columns:1fr 1fr; gap:2rem; align-items:end; padding-block:4rem 0; }
.contact-hero h1{ color:#fff; font-size:clamp(2rem,4vw,2.7rem); }
.contact-hero .lede{ color:#E7EEF2; max-width:42ch; }

/* ---------- Skewed image / color-block sections ---------- */
.feature-row{ padding-block:4.5rem 0; }
.feature-row .wrap{ display:grid; grid-template-columns:1fr 1.15fr; gap:3rem; align-items:center; }
.feature-row.reverse .wrap{ grid-template-columns:1.15fr 1fr; }
.feature-row.reverse .skew-photo{ order:2; }
.skew-photo{
  position:relative; border-radius:18px; overflow:hidden;
  transform:skewY(-3deg); box-shadow:0 20px 45px rgba(0,0,0,0.18);
}
.skew-photo img{ transform:skewY(3deg) scale(1.08); }
.color-card{ border-radius:18px; padding:clamp(1.75rem,3vw,3rem); color:#fff; }
.color-card.orange{ background:var(--orange); }
.color-card.red{ background:var(--red); }
.color-card h2{ color:#fff; font-size:clamp(1.5rem,2.4vw,2rem); }
.color-card p{ color:rgba(255,255,255,0.92); }
.check-list{ display:grid; gap:0.9rem; margin:1.25rem 0 1.75rem; }
.check-list li{ display:flex; gap:0.7rem; align-items:center; font-weight:600; }
.check-list .tick{
  width:22px; height:22px; border-radius:50%; background:rgba(255,255,255,0.25);
  display:grid; place-items:center; flex:none; font-size:0.8rem;
}

/* ---------- Core Services (icon + card grid) ---------- */
.services-section{ background:var(--grey); padding-block:5rem; margin-top:4.5rem; }
.services-head{ text-align:center; margin-bottom:3rem; }
.services-head img{ width:60px; height:60px; margin:0 auto 1rem; }
.services-head h2{ font-size:clamp(1.8rem,3vw,2.3rem); }
.services-head .sub{ color:#50606B; font-weight:500; }
.service-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.75rem; }
.service-card{
  background:#fff; border-radius:16px; padding:2rem;
  box-shadow:0 10px 30px rgba(0,30,50,0.06);
  transition:transform .25s ease, box-shadow .25s ease;
}
.service-card:hover{ transform:translateY(-6px); box-shadow:0 18px 40px rgba(0,30,50,0.12); }
.service-card img{ width:56px; height:56px; border-radius:12px; margin-bottom:1.1rem; }
.service-card h3{ font-size:1.15rem; }
.service-card p{ color:#4C5A63; font-size:0.95rem; margin:0; }
.service-card ul{ display:grid; gap:0.4rem; color:#4C5A63; font-size:0.93rem; }
.service-card ul li{ padding-left:1.1rem; position:relative; }
.service-card ul li::before{ content:"•"; position:absolute; left:0; color:var(--orange); }

/* ---------- Testimonials ---------- */
.testimonials{ background:var(--navy); padding-block:5rem; }
.testimonials h2{ color:#fff; text-align:center; font-size:clamp(1.8rem,3vw,2.3rem); margin-bottom:3rem; }
.t-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.75rem; }
.t-card{ background:#fff; border-radius:16px; padding:2rem; text-align:left; }
.t-card .avatar{ width:72px; height:72px; border-radius:50%; object-fit:cover; margin-bottom:1rem; }
.t-card h3{ font-size:1.1rem; margin-bottom:0.3rem; }
.t-card .stars{ color:var(--amber); letter-spacing:0.1em; margin-bottom:0.9rem; }
.t-card p{ color:#4C5A63; font-size:0.95rem; margin:0; }

/* ---------- CTA before footer (services/home shared) ---------- */
.cta-strip{ background:var(--orange); text-align:center; padding:3rem 1rem; }
.cta-strip h2{ color:#fff; margin-bottom:1.25rem; font-size:clamp(1.5rem,3vw,2rem); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--amber); padding-top:3rem; }
.footer-top{
  display:flex; justify-content:space-between; align-items:flex-start; gap:2rem; flex-wrap:wrap;
  padding-bottom:1.75rem;
}
.footer-top h2{ font-size:clamp(1.4rem,2.4vw,1.8rem); margin-bottom:0.4rem; }
.footer-top .copy{ text-align:right; font-size:0.9rem; color:#4A3B12; }
.footer-nav{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1.5rem;
  border-top:1px solid rgba(0,48,73,0.25); padding-block:1.25rem;
}
.footer-nav .flinks{ display:flex; gap:2rem; }
.footer-nav .flinks a{ font-weight:600; }
.footer-nav .social{ display:flex; gap:1rem; }
.footer-nav .social a{
  width:38px; height:38px; border-radius:50%; background:var(--navy); color:#fff;
  display:grid; place-items:center; transition:transform .2s ease;
}
.footer-nav .social a:hover{ transform:translateY(-3px); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1.5rem;
  padding-block:1.75rem;
}
.footer-bottom img{ height:72px; }
.footer-contact{ display:flex; gap:2.25rem; flex-wrap:wrap; }
.footer-contact .item{ display:flex; gap:0.6rem; align-items:flex-start; font-size:0.95rem; font-weight:500; color:#2B2B2B; }
.footer-contact svg{ flex:none; margin-top:0.2rem; }

/* ---------- Contact form ---------- */
.contact-form-section{ padding-block:4rem 5rem; }
.contact-form-wrap{ display:flex; justify-content:center; margin-top:-7rem; position:relative; z-index:5; }
.contact-form-card{
  background:#fff; border-radius:18px; box-shadow:0 25px 60px rgba(0,30,50,0.18);
  padding:clamp(1.75rem,3vw,3rem); width:100%; max-width:480px;
}
.contact-form-card h2{ font-size:1.5rem; }
.field{ margin-bottom:1.1rem; }
.field label{ display:block; font-weight:600; margin-bottom:0.4rem; font-size:0.95rem; }
.field input, .field textarea{
  width:100%; border:1px solid #D7DEE2; border-radius:8px; padding:0.75rem 0.9rem;
  font-family:inherit; font-size:0.98rem; outline:none; transition:border-color .2s;
}
.field input:focus, .field textarea:focus{ border-color:var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; }
  .feature-row .wrap, .feature-row.reverse .wrap{ grid-template-columns:1fr; }
  .feature-row.reverse .skew-photo{ order:0; }
  .service-grid{ grid-template-columns:1fr 1fr; }
  .t-grid{ grid-template-columns:1fr; }
  .contact-hero .wrap{ grid-template-columns:1fr; }
  .footer-top{ flex-direction:column; }
  .footer-top .copy{ text-align:left; }
}
@media (max-width:640px){
  .service-grid{ grid-template-columns:1fr; }
  .skew-photo{ transform:skewY(0); }
  .skew-photo img{ transform:scale(1); }
  .hero{ min-height:520px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .contact-form-wrap{ margin-top:-3rem; }
}

.nav-main[data-open="true"] .nav-links{
  display:flex; position:fixed; inset:76px 0 auto 0; flex-direction:column; gap:1rem;
  background:var(--sky); padding:1.5rem; box-shadow:0 10px 20px rgba(0,0,0,0.1);
}
