/* =============================================================
   AC Supply Co. — Shared Stylesheet
   Extracted from all 9 HTML pages.
   Page-specific styles remain in each file's <style> block.
   ============================================================= */

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── VARIABLES ── */
:root {
  --navy: #0f1f3d;
  --navy-light: #1a3260;
  --green: #2e7d52;
  --green-light: #3a9966;
  --green-pale: #e8f5ee;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --border: #e2e6ec;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ──
   thank-you and 404 override with: header { position: static; }
*/
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── LOGO ── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img { height: 72px; width: auto; display: block; }

.logo-tagline {
  font-size: 0.675rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 140px;
}

/* ── DESKTOP NAV ──
   homepage adds: nav a { letter-spacing: 0.01em; }
*/
nav { display: flex; align-items: center; gap: 32px; }

nav a {
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: var(--navy); }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--navy-light) !important; color: var(--white) !important; }

.nav-active { color: var(--navy) !important; font-weight: 600 !important; }

/* ── MOBILE NAV ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 4px;
  transition: background 0.15s;
}

.nav-hamburger:hover { background: var(--off-white); }

.nav-mobile {
  display: none;
  position: absolute;
  top: 84px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-mobile.open { max-height: 400px; }

.nav-mobile a {
  display: block;
  padding: 14px 24px;
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.nav-mobile a:hover { background: var(--off-white); color: var(--navy); }

.nav-mobile .nav-cta {
  display: block;
  margin: 12px 16px 16px;
  text-align: center;
  padding: 12px 16px;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 4px;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase;
  border-bottom: none;
}

.nav-mobile .nav-cta:hover { background: var(--navy-light) !important; }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 28px 24px; }

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.9); }
.footer-text { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ── BUTTONS ──
   homepage overrides .btn with: padding: 14px 28px; cursor: pointer; border: none;
*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-light); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.06); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }

/* ── BREADCRUMB (all inner pages) ── */
.breadcrumb { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 12px 24px; }
.breadcrumb-inner { max-width: 1100px; margin: 0 auto; font-size: 0.8rem; color: var(--text-muted); }
.breadcrumb-inner a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-inner a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb-inner span { margin: 0 6px; }

/* ── PAGE HERO (all inner pages) ──
   Each page defines its own .page-hero::before gradient position.
   Default (used by coffee-cups, takeaway-packaging, paper-bags): at 30% 50%
   contact and faq override to: at 50% 50%
   custom-branded-packaging overrides to: at 70% 50%

   contact and faq also override: .page-hero p { margin-bottom: 0; }
*/
.page-hero {
  background: var(--navy);
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 400px at 30% 50%, rgba(46,125,82,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner { max-width: 720px; margin: 0 auto; position: relative; }

.page-label {
  display: inline-block;
  background: rgba(46,125,82,0.2);
  border: 1px solid rgba(46,125,82,0.4);
  color: #7dd4a8;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── SECTION SCAFFOLDING (inner pages) ──
   homepage overrides: section { padding: 88px 24px }
   homepage overrides: .section-title (larger clamp + letter-spacing)
   homepage overrides: .section-body (max-width: 560px, no margin-bottom)
*/
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-body {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* ── PRODUCT DETAIL (coffee-cups, takeaway, paper-bags, custom-branded) ── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.detail-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}

.detail-copy p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.detail-copy a.inline-link { color: var(--green); text-decoration: underline; font-weight: 500; }

.detail-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.925rem;
  color: var(--text-body);
}

.detail-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── VARIANT CARDS (product pages) ── */
.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.variant-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.variant-card:hover { border-color: var(--green); box-shadow: 0 4px 20px rgba(46,125,82,0.08); transform: translateY(-3px); }
.variant-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.variant-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ── CUSTOM BRANDING BAND (product pages) ── */
.custom-band { background: var(--navy); padding: 72px 24px; }

.custom-band-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.custom-band .section-label { color: #7dd4a8; }

.custom-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}

.custom-band p { font-size: 0.95rem; color: rgba(255,255,255,0.65); line-height: 1.8; max-width: 520px; }

/* ── CTA BOX (product pages) ── */
.cta-section { background: var(--off-white); }

.cta-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 48px 40px;
  background: var(--white);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-box h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--navy); margin-bottom: 14px; }
.cta-box p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.75; }

.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── RELATED SECTION (product pages) ──
   faq overrides: .related-section { background: var(--off-white) }
   faq overrides: .related-grid { grid-template-columns: repeat(4, 1fr) }
   faq overrides: .related-card h4 { font-size: 0.9rem }
   faq overrides: .related-card p { font-size: 0.8rem }
   faq overrides: .related-card .arrow { margin-top: 10px }
*/
.related-section { background: var(--white); padding: 64px 24px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.related-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.2s;
  display: block;
}

.related-card:hover { border-color: var(--green); }
.related-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.related-card p { font-size: 0.825rem; color: var(--text-muted); }
.related-card .arrow { font-size: 0.8rem; color: var(--green); font-weight: 600; margin-top: 12px; display: block; }

/* ── CONTACT DETAILS (homepage + contact page) ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.contact-info h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
.contact-info .role { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 32px; }

.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.contact-detail svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }
.contact-detail a, .contact-detail span { font-size: 0.95rem; color: var(--text-body); text-decoration: none; font-weight: 400; }
.contact-detail a:hover { color: var(--navy); text-decoration: underline; }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  background: #25D366;
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 4px;
  transition: background 0.2s;
}

.whatsapp-btn:hover { background: #20b858; }
.whatsapp-btn svg { width: 18px; height: 18px; }

/* contact page adds: .qr-block { margin-top: 32px; } */
.qr-block {
  text-align: center;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--off-white);
}

.qr-block a { display: inline-block; }
.qr-block img { width: 200px; max-width: 100%; height: auto; display: block; border-radius: 4px; }
.qr-label { margin-top: 16px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

/* ── QUOTE FORM (homepage + contact page) ── */
.quote-form-wrap { background: var(--off-white); border: 1px solid var(--border); border-radius: 6px; padding: 40px 36px; }

.quote-form .form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.quote-form .form-row--two .form-group { flex: 1; }
.quote-form .form-row:not(.form-row--two) .form-group { flex: 1; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--navy); letter-spacing: 0.03em; }
.req { color: var(--green); }

.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-body);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-light); }

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,82,0.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { margin-top: 20px; }

.btn-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--navy-light); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--green-pale);
  border: 1px solid rgba(46,125,82,0.3);
  border-radius: 4px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-success svg { width: 18px; height: 18px; flex-shrink: 0; }

.form-error {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  color: #b91c1c;
  font-size: 0.875rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 900px) {
  nav a:not(.nav-cta) { display: none; }
  .nav-hamburger { display: block; }
  .nav-mobile { display: block; }
  .detail-grid { grid-template-columns: 1fr; }
  .variant-grid { grid-template-columns: 1fr 1fr; }
  .custom-band-inner { grid-template-columns: 1fr; gap: 28px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 600px) {
  section { padding: 56px 20px; }
  nav { display: none; }
  .logo-tagline { display: none; }
  .variant-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 32px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .quote-form-wrap { padding: 28px 20px; }
  .quote-form .form-row--two { flex-direction: column; gap: 0; }
}
