/* ═══════════════════════════════════════════════════════
   GOYAL ROLLING SHUTTERS — Shared Theme
   Light Industrial: warm linen + charcoal + amber
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg:       #f4f2ee;
  --bg2:      #eceae5;
  --bg3:      #e4e1db;
  --white:    #faf9f6;
  --border:   #ccc9c2;
  --border-lt:#dedbd4;
  --dark:     #18191a;
  --dark2:    #232527;
  --text:     #18191a;
  --mid:      #4a4d50;
  --dim:      #6e6b66;
  --amber:    #c8922a; --amber:    oklch(62% 0.18 55);
  --amber-dk: #9e6e1a; --amber-dk: oklch(50% 0.16 55);
  --amber-lt: rgba(200,146,42,0.12); --amber-lt: oklch(62% 0.18 55 / 0.12);
  --fd: 'Oswald', sans-serif;
  --fb: 'IBM Plex Sans', sans-serif;
  --fm: 'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--fb); font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::after { content: ''; position: fixed; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='3'%3E%3Crect width='1' height='1' fill='%2300000009'/%3E%3C/svg%3E"); pointer-events: none; z-index: 9998; }

/* ── NAV ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; background: rgba(244,242,238,0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; flex-shrink: 0; min-width: 0; }
.nav-logo-img { display: block; width: auto; height: 48px; object-fit: contain; }
.nav-logo-footer .nav-logo-img { height: 56px; }
.nav-logo::after {
  content: 'Goyal Rolling Shutters';
  font-family: var(--fd);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
}
footer .nav-logo::after { color: rgba(255,255,255,.72); }
footer .nav-logo:hover::after { color: var(--amber); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-family: var(--fd); font-size: 13px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--mid); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--amber); }
.nav-hamburger { display: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fd); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 10px 22px; cursor: pointer; border: none; transition: all .2s; }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--text); }
.btn-dark { background: var(--dark); color: #fff; clip-path: polygon(0 0,100% 0,100% 76%,92% 100%,0 100%); }
.btn-dark:hover { background: var(--dark2); transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: #fff; clip-path: polygon(0 0,100% 0,100% 76%,92% 100%,0 100%); }
.btn-amber:hover { background: var(--amber-dk); transform: translateY(-1px); }
.btn-lg { font-size: 15px; padding: 15px 32px; }

/* ── PAGE HEADER (inner pages) ── */
.page-header { padding: 120px 48px 72px; background: var(--dark); position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0, transparent 20px, rgba(255,255,255,.015) 20px, rgba(255,255,255,.015) 40px); }
.page-header::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--amber); }
.ph-inner { position: relative; z-index: 2; max-width: 900px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--fm); font-size: 11px; letter-spacing: .15em; color: rgba(255,255,255,.35); text-transform: uppercase; margin-bottom: 20px; }
.breadcrumb a { color: var(--amber); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,.2); }
.ph-title { font-family: var(--fd); font-size: clamp(42px,5vw,72px); font-weight: 700; text-transform: uppercase; line-height: .95; color: #fff; margin-bottom: 20px; }
.ph-title .accent { color: var(--amber); }
.ph-sub { font-size: 16px; color: rgba(255,255,255,.55); max-width: 560px; line-height: 1.7; font-weight: 300; }

/* ── SECTION COMMONS ── */
.section { padding: 88px 48px; }
.section-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fm); font-size: 11px; letter-spacing: .2em; color: var(--amber); text-transform: uppercase; margin-bottom: 12px; }
.section-tag::before { content: ''; width: 24px; height: 2px; background: var(--amber); }
.section-title { font-family: var(--fd); font-size: clamp(32px,3.5vw,50px); font-weight: 700; text-transform: uppercase; line-height: 1; letter-spacing: -.01em; color: var(--dark); }
.section-title .dim { color: var(--dim); }
.section p { max-width: 680px; }
.container { max-width: 1280px; margin: 0 auto; }

/* ── DIVIDER ── */
.divider-stripe { height: 5px; background: repeating-linear-gradient(-45deg, var(--amber) 0, var(--amber) 6px, transparent 6px, transparent 14px); opacity: .5; }

/* ── CTA BANNER ── */
.cta-banner { display: grid; grid-template-columns: 1fr auto; align-items: stretch; min-height: 180px; background: var(--dark); }
.cta-banner-left { padding: 56px 64px; position: relative; }
.cta-banner-left::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0, transparent 20px, rgba(255,255,255,.015) 20px, rgba(255,255,255,.015) 40px); }
.cta-banner-title { font-family: var(--fd); font-size: clamp(28px,3.5vw,46px); font-weight: 700; text-transform: uppercase; color: #fff; line-height: 1.05; margin-bottom: 10px; position: relative; z-index: 1; }
.cta-banner-title span { color: var(--amber); }
.cta-banner-sub { font-size: 15px; color: rgba(255,255,255,.5); position: relative; z-index: 1; }
.cta-banner-right { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 56px; border-left: 1px solid rgba(255,255,255,.08); }

/* ── FOOTER ── */
footer { background: var(--dark); padding: 72px 48px 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; margin-bottom: 56px; }
.footer-brand-desc { font-size: 13px; color: rgba(255,255,255,.38); line-height: 1.7; max-width: 280px; margin: 14px 0 22px; }
.footer-col-title { font-family: var(--fd); font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; display: flex; align-items: center; gap: 8px; }
.footer-links a::before { content: '—'; font-size: 10px; color: rgba(255,255,255,.15); flex-shrink: 0; }
.footer-links a:hover { color: var(--amber); }
.f-cl { font-family: var(--fm); font-size: 10px; letter-spacing: .15em; color: rgba(255,255,255,.25); text-transform: uppercase; margin-bottom: 3px; }
.f-cv { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.f-cv a { color: inherit; text-decoration: none; transition: color .2s; }
.f-cv a:hover { color: var(--amber); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-copy { font-family: var(--fm); font-size: 11px; color: rgba(255,255,255,.22); letter-spacing: .08em; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-family: var(--fm); font-size: 11px; color: rgba(255,255,255,.22); text-decoration: none; }
.footer-legal a:hover { color: var(--amber); }
.footer-socials { display: flex; gap: 8px; }
.social-btn { width: 34px; height: 34px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; text-decoration: none; font-family: var(--fd); font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); transition: all .2s; }
.social-btn:hover { background: var(--amber); border-color: var(--amber); color: #fff; }

/* ── FLOAT CTA ── */
.float-cta { position: fixed; bottom: 24px; right: 24px; z-index: 800; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.float-btn { display: flex; align-items: center; gap: 8px; padding: 13px 16px; font-family: var(--fd); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: none; white-space: nowrap; clip-path: polygon(0 0,100% 0,100% 80%,90% 100%,0 100%); min-height: 44px; }
.float-btn-dark { background: var(--dark); color: #fff; }
.float-btn-wa   { background: #25D366; color: #fff; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1{transition-delay:.1s}.d2{transition-delay:.2s}.d3{transition-delay:.3s}.d4{transition-delay:.4s}

/* ── TICKER ── */
.ticker { background: var(--dark); padding: 11px 0; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-block; animation: ticker 32s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 20px; font-family: var(--fd); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-right: 40px; }
.ticker-dot { width: 4px; height: 4px; background: var(--amber); transform: rotate(45deg); flex-shrink: 0; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── SPEC TABLE ── */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 10px 12px; font-size: 13px; }
.spec-table td:first-child { font-family: var(--fm); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); width: 40%; }
.spec-table td:last-child { color: var(--dark); font-weight: 500; }

/* ── SKIP LINK ── */
.skip-link { position: absolute; top: -100%; left: 0; padding: 12px 20px; background: var(--amber); color: #fff; font-family: var(--fd); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; z-index: 9999; }
.skip-link:focus { top: 0; }

/* ── FOCUS VISIBLE ── */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ── TICKER PAUSE ── */
.ticker-track:hover { animation-play-state: paused; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation-play-state: paused; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .btn { transition: background .001s; }
}

/* ── MOBILE 768px ── */
@media(max-width:768px){
  .nav-logo-img { height: 42px; }
  .nav-logo-footer .nav-logo-img { height: 50px; }
  footer .nav-logo::after { font-size: 12px; }
  .page-header { padding: 100px 20px 56px; }
  .section { padding: 60px 20px; }
  .cta-banner { grid-template-columns: 1fr; }
  .cta-banner-right { padding: 28px 20px; border-left: none; border-top: 1px solid rgba(255,255,255,.08); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── MOBILE 480px ── */
@media(max-width:480px){
  .section { padding: 48px 16px; }
  .page-header { padding: 90px 16px 48px; }
  .cta-banner-left { padding: 36px 20px; }
  .footer-grid { gap: 32px; }
  .float-cta { bottom: 16px; right: 16px; }
  .float-btn { font-size: 11px; padding: 11px 12px; }
}

/* ═══════════════════════════════════════════════════════
   MOBILE OPTIMISATION (auto-added)
   ═══════════════════════════════════════════════════════ */

/* Fix 6 – Global horizontal overflow */
img, video, iframe { max-width: 100%; height: auto; }

/* Fix 2 – Sticky mobile CTA bar (hidden on desktop) */
.mobile-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 799;
  background: var(--dark); border-top: 2px solid var(--amber);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-cta-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; min-height: 56px; padding: 8px 4px;
  text-decoration: none; color: rgba(255,255,255,.85);
  font-family: var(--fd); font-size: 10px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,.07);
  -webkit-tap-highlight-color: transparent; transition: background .15s;
}
.mobile-cta-btn:last-child { border-right: none; }
.mobile-cta-btn:active { background: rgba(255,255,255,.1); }
.mobile-cta-wa    { background: rgba(37,211,102,.1); }
.mobile-cta-quote { background: rgba(200,146,42,.18); color: #fff; }


/* ── @media (max-width: 768px) ── */
@media (max-width: 768px) {

  /* Fix 2 */
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
  .float-cta { display: none; }
  /* Fix 7 – Touch targets */
  .footer-links a { min-height: 44px; display: flex; align-items: center; }
  .social-btn { width: 48px !important; height: 48px !important; }
  .footer-legal a { min-height: 44px; display: flex; align-items: center; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }

  /* Fix 11 – Typography */
  body { font-size: 16px; }
  .section-title { font-size: clamp(1.3rem, 6vw, 1.75rem) !important; }
  .ph-title { font-size: clamp(1.75rem, 8vw, 3rem) !important; }

  /* Fix 14 – iOS safe area on fixed nav */
  nav {
    padding-top: env(safe-area-inset-top);
    height: calc(64px + env(safe-area-inset-top));
  }

  /* Fix 12 – Review modal */
  .review-modal-overlay { align-items: flex-end; }
  .review-modal {
    border-radius: 0 !important; width: 100% !important; max-width: 100% !important;
    max-height: 92vh; overflow-y: auto;
  }
  .review-modal-close { width: 48px !important; height: 48px !important; font-size: 26px !important; }

  /* Fix 5 – Partners / client logos grid */
  .partners-grid { grid-template-columns: repeat(4, 1fr) !important; }

  /* Fix 4 – Product grids on inner pages */
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Fix 12 – Review form inputs prevent iOS zoom */
.review-modal input,
.review-modal textarea,
.review-field input,
.review-field textarea { font-size: 16px !important; }

/* Fix 3 – CTA banner mobile stack */
@media (max-width: 600px) {
  .cta-banner-right { flex-direction: column; width: 100%; }
  .cta-banner-right .btn { width: 100%; justify-content: center; }
}

/* Partners grid: 6 cols tablet, 12 cols desktop */
@media (min-width: 600px) and (max-width: 899px) {
  .partners-grid { grid-template-columns: repeat(6, 1fr) !important; }
}
@media (min-width: 900px) {
  .partners-grid { grid-template-columns: repeat(12, 1fr) !important; }
}

/* ── NAV COLLAPSE 770px ── */
@media (max-width: 770px) {
  .nav-hamburger { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 32px; height: 32px; cursor: pointer; position: relative; z-index: 910; }
  .nav-hamburger span { display: block; width: 26px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: center; margin: 0 auto; }
  .nav-hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-hamburger.active span:nth-child(2) { opacity: 0; }
  .nav-hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav-links {
    position: fixed; top: 0; right: -100%; width: 100%; max-width: 320px; height: 100dvh;
    background: var(--white); box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 100px 40px 60px; gap: 24px;
    transition: right .4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 905;
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 18px; font-weight: 500; letter-spacing: .15em; color: var(--dark); display: block; width: 100%; padding-bottom: 12px; border-bottom: 1px solid var(--border-lt); }
  .nav-links a:hover, .nav-links a.active { color: var(--amber); border-bottom-color: var(--amber); }
  .nav-cta { display: none !important; }
  nav { padding: 0 20px; }
}

