/* Pak CustomBox - Vibrant Theme & Site-wide Styles */
:root {
  --primary-green: #065f46;
  --primary-green-dark: #022c22;
  --primary-green-light: #047857;
  --primary-green-vibrant: #059669;
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --accent-gold-light: #fef3c7;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-warm: #fdfbf7;
  --bg-card: #ffffff;
  --dark-bg: #0b1320;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text-dark); background-color: var(--bg-white); line-height: 1.6; overflow-x: hidden; }
[dir="rtl"] { text-align: right; }
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
img, svg { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
.topbar { background-color: #031b14; color: #e2e8f0; font-size: 0.85rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar-info { display: flex; gap: 20px; align-items: center; }
.topbar-info a { color: #cbd5e1; display: flex; align-items: center; gap: 6px; }
.topbar-info a:hover { color: var(--accent-gold); }
.topbar-badges { display: flex; gap: 15px; color: #94a3b8; font-weight: 500; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { color: #cbd5e1; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background-color: #ffffff; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand-logo { display: flex; align-items: center; gap: 12px; }
.logo-title { font-size: 1.4rem; font-weight: 800; color: var(--primary-green-dark); line-height: 1.1; }
.logo-title span { color: var(--accent-gold-dark); }
.logo-sub { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; display: block; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.nav-list { display: flex; align-items: center; gap: 18px; list-style: none; }
.nav-item { position: relative; }
.nav-link { font-size: 0.93rem; font-weight: 600; color: var(--text-dark); padding: 8px 4px; display: flex; align-items: center; gap: 4px; }
.nav-link:hover, .nav-link.active { color: var(--primary-green-light); }
.nav-dropdown { position: absolute; top: 100%; left: 0; background: #ffffff; min-width: 260px; border-radius: var(--radius-md); box-shadow: var(--shadow-xl); border: 1px solid var(--border-color); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.25s ease; z-index: 100; }
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: block; padding: 10px 18px; font-size: 0.88rem; color: var(--text-dark); font-weight: 500; }
.dropdown-item:hover { background-color: var(--bg-light); color: var(--primary-green-light); padding-left: 22px; }

.nav-right-actions { display: flex; align-items: center; gap: 14px; }
.lang-switcher { position: relative; }
.lang-btn { background: var(--bg-light); border: 1px solid var(--border-color); padding: 7px 12px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.lang-dropdown { position: absolute; right: 0; top: 100%; background: white; border: 1px solid var(--border-color); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); margin-top: 5px; display: none; min-width: 110px; z-index: 101; }
.lang-switcher.open .lang-dropdown { display: block; }
.lang-option { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 0.85rem; cursor: pointer; }
.lang-option:hover { background: var(--bg-light); color: var(--primary-green-light); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.92rem; cursor: pointer; border: none; text-align: center; white-space: nowrap; }
.btn-primary { background-color: var(--accent-gold); color: #0b1320; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
.btn-primary:hover { background-color: var(--accent-gold-dark); color: #ffffff; transform: translateY(-2px); }
.btn-green { background-color: var(--primary-green-light); color: #ffffff; }
.btn-green:hover { background-color: var(--primary-green-dark); }
.btn-outline { background: transparent; border: 2px solid rgba(255, 255, 255, 0.3); color: #ffffff; }
.btn-outline:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }

/* Hero */
.hero-section { background: linear-gradient(135deg, #022c22 0%, #065f46 60%, #047857 100%); color: #ffffff; padding: 70px 0 80px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-gold-light); margin-bottom: 20px; }
.hero-title { font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 18px; letter-spacing: -1px; }
.hero-title span { color: var(--accent-gold); }
.hero-subtitle { font-size: 1.12rem; color: #e2e8f0; margin-bottom: 30px; max-width: 540px; }
.hero-features { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-feature-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: #f1f5f9; }
.hero-ctas { display: flex; gap: 15px; flex-wrap: wrap; }

/* Inner Hero */
.inner-hero { background: linear-gradient(135deg, #fdfbf7 0%, #f1f5f9 100%); padding: 50px 0; border-bottom: 1px solid var(--border-color); }
.inner-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.category-tag { color: var(--accent-gold-dark); font-weight: 800; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.page-title { font-size: 2.6rem; font-weight: 800; color: var(--primary-green-dark); line-height: 1.2; margin-bottom: 14px; }
.page-intro { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 24px; }

/* Section & Grids */
.section { padding: 70px 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-subtitle { color: var(--accent-gold-dark); font-weight: 800; font-size: 0.85rem; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-size: 2.2rem; font-weight: 800; color: var(--primary-green-dark); margin-bottom: 12px; }
.section-desc { font-size: 1rem; color: var(--text-muted); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* Cards */
.service-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 26px 20px; transition: all 0.3s ease; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-5px); border-color: var(--primary-green-vibrant); box-shadow: var(--shadow-lg); }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: #ecfdf5; color: var(--primary-green-light); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.5rem; }
.card-title { font-size: 1.12rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.card-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

.product-item-card { background: white; border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: all 0.3s ease; }
.product-item-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-green-light); transform: translateY(-3px); }
.product-item-img { width: 100%; height: 180px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-item-img img { width: 100%; height: 100%; object-fit: cover; }
.product-item-body { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.product-item-title { font-size: 0.95rem; font-weight: 700; color: var(--primary-green-dark); }
.product-item-arrow { width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: var(--primary-green-light); font-size: 0.8rem; }

/* Testimonials */
.testimonial-section { background: #fdfbf7; padding: 60px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.testimonial-banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.testimonial-card { background: white; padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.stars { color: var(--accent-gold); margin-bottom: 14px; font-size: 1.2rem; }
.quote-text { font-size: 1.05rem; color: var(--text-dark); font-style: italic; margin-bottom: 20px; line-height: 1.6; }
.author-meta { display: flex; align-items: center; gap: 14px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-green-dark); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.author-name { font-weight: 700; color: var(--primary-green-dark); font-size: 0.95rem; }
.author-role { font-size: 0.8rem; color: var(--text-muted); }

/* Forms */
.quote-block-section { padding: 60px 0; background: var(--bg-light); }
.quote-block-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: stretch; }
.form-box { background: white; padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-md); }
.form-title { font-size: 1.8rem; font-weight: 800; color: var(--primary-green-dark); margin-bottom: 6px; }
.form-subtitle { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 24px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--text-dark); }
.form-control { width: 100%; padding: 11px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: #f8fafc; font-size: 0.92rem; }
.form-control:focus { outline: none; border-color: var(--primary-green-light); background: #ffffff; }

/* FAQ Accordion */
.editorial-content-section { padding: 60px 0; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.content-col h2 { font-size: 1.8rem; font-weight: 800; color: var(--primary-green-dark); margin-bottom: 16px; }
.content-col h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary-green-dark); margin: 20px 0 10px; }
.content-col p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.content-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--text-dark); margin-bottom: 10px; font-weight: 600; }

.faq-accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: white; overflow: hidden; }
.faq-header { width: 100%; padding: 16px 20px; background: #f8fafc; text-align: left; font-weight: 700; font-size: 0.95rem; color: var(--primary-green-dark); border: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.faq-header:hover { background: #f1f5f9; }
.faq-body { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.3s cubic-bezier(0,1,0,1); font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.faq-item.open .faq-body { padding: 16px 20px; max-height: 500px; }
.faq-item.open .faq-header { background: var(--primary-green-dark); color: white; }

/* Blog Single Page Layout (Image 4 reference) */
.blog-single-wrapper { padding: 50px 0 80px; }
.article-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.toc-sidebar { position: sticky; top: 90px; background: #f8fafc; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; }
.toc-title { font-size: 1rem; font-weight: 800; color: var(--primary-green-dark); margin-bottom: 12px; border-bottom: 2px solid var(--accent-gold); padding-bottom: 6px; }
.toc-list { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.toc-list a { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.toc-list a:hover { color: var(--primary-green-light); font-weight: 700; }

.article-body { font-size: 1.05rem; line-height: 1.8; color: #1e293b; }
.article-body h2 { font-size: 1.8rem; font-weight: 800; color: var(--primary-green-dark); margin: 36px 0 16px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.article-body h3 { font-size: 1.35rem; font-weight: 700; color: var(--primary-green-dark); margin: 26px 0 12px; }
.article-body p { margin-bottom: 20px; }

.spec-table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 0.92rem; }
.spec-table th, .spec-table td { padding: 12px 16px; border: 1px solid var(--border-color); text-align: left; }
.spec-table th { background: var(--primary-green-dark); color: white; font-weight: 700; }
.spec-table tr:nth-child(even) { background: #f8fafc; }

/* Pre-Footer Banner */
.pre-footer-banner { background: linear-gradient(135deg, #022c22 0%, #065f46 100%); color: white; padding: 40px 0; }
.pre-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pre-footer-text h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }

/* Footer */
.site-footer { background-color: var(--dark-bg); color: #94a3b8; padding: 60px 0 20px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-title { color: #ffffff; font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: var(--accent-gold); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }

/* Toast */
.alert-toast { position: fixed; bottom: 24px; right: 24px; background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-xl); padding: 16px 24px; border-left: 5px solid var(--primary-green-light); z-index: 9999; display: flex; align-items: center; gap: 12px; transform: translateY(100px); opacity: 0; transition: all 0.3s ease; }
.alert-toast.show { transform: translateY(0); opacity: 1; }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-dark); cursor: pointer; }

@media (max-width: 1200px) {
  .topbar-badges { display: none; }
  .hero-grid, .inner-hero-grid, .grid-4, .quote-block-grid, .testimonial-banner-grid, .editorial-grid, .article-layout, .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .mobile-toggle { display: block; }
  .main-nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: white; flex-direction: column; padding: 60px 20px 20px; box-shadow: var(--shadow-xl); transition: all 0.3s ease; overflow-y: auto; }
  .main-nav.active { right: 0; }
  .nav-list { flex-direction: column; width: 100%; align-items: flex-start; }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: none; width: 100%; min-width: 0; padding: 0 0 0 14px; }
  .nav-item.open .nav-dropdown { display: block; }
  .header-inner { flex-wrap: wrap; }
  /* Move the language control out of the crowded top bar into the slide-out menu */
  .nav-right-actions .lang-switcher { display: none; }
  .lang-switcher-mobile { display: block; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border-color); }
  .lang-switcher-mobile-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
  .lang-options-mobile { display: flex; flex-wrap: wrap; gap: 8px; }
  .lang-option-mobile { background: var(--bg-light); border: 1px solid var(--border-color); padding: 7px 14px; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--text-dark); }
  .lang-option-mobile.active { background: var(--primary-green-light); border-color: var(--primary-green-light); color: #fff; }
  .nav-right-actions { flex-wrap: nowrap; }
  .nav-right-actions .btn-sm { padding: 9px 14px; font-size: 0.85rem; }
}

@media (max-width: 400px) {
  .nav-right-actions .btn-sm span { display: none; }
  .nav-right-actions .btn-sm::after { content: "Quote"; }
}

.lang-switcher-mobile { display: none; }

/* Tablet: 2-column grids instead of jumping straight to 1 column */
@media (max-width: 1200px) and (min-width: 641px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  html { font-size: 15px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 20px; }
  .section, .hero-section { padding: 40px 0; }
  .hero-content h1, .inner-hero h1, .page-title { font-size: 1.7rem; }
  .hero-actions, .hero-ctas, .pre-footer-inner, .pre-footer-btns { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .hero-ctas .btn, .pre-footer-btns .btn { width: 100%; }
  .topbar .container { flex-direction: column; align-items: flex-start; gap: 6px; }
  .topbar-social { display: none; }
  .logo-sub { display: none; }
  .container { padding: 0 16px; }
  .article-layout { gap: 24px; }
  .toc-sidebar { position: static; }
  .spec-table { display: block; overflow-x: auto; white-space: nowrap; }
  .form-grid-2 { grid-template-columns: 1fr; }
}


/* Core page layout additions */
.eyebrow { display:inline-block; color:var(--primary-green-vibrant); font-size:.78rem; font-weight:800; letter-spacing:.12em; margin-bottom:12px; }
.hero-section { padding:72px 0; background:linear-gradient(135deg,#f0fdf4 0%,#fff 55%,#fffbeb 100%); }
.hero-section > .container { display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:36px; }
.hero-content h1 { font-size:clamp(2.2rem,4vw,4rem); line-height:1.08; letter-spacing:-.04em; max-width:720px; margin:0 0 20px; }
.hero-content p { color:var(--text-muted); font-size:1.1rem; max-width:620px; margin-bottom:24px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; }
.hero-visual img { width:100%; max-width:600px; margin:auto; }
.section { padding:72px 0; }
.section-alt { background:var(--bg-light); }
.section-heading { text-align:center; max-width:760px; margin:0 auto 34px; }
.section-heading h2,.split-layout h2 { font-size:clamp(1.7rem,3vw,2.5rem); line-height:1.2; margin-bottom:14px; }
.section-heading p,.split-layout p { color:var(--text-muted); }
.grid-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.feature-card { display:block; background:#fff; border:1px solid var(--border-color); border-radius:var(--radius-lg); padding:22px; box-shadow:var(--shadow-sm); transition:transform .2s ease,box-shadow .2s ease; }
.feature-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); }
.feature-card img { width:100%; max-height:210px; object-fit:contain; margin:0 auto 18px; }
.feature-card h3 { margin:0 0 8px; font-size:1.15rem; }
.feature-card p { color:var(--text-muted); margin:0; }
.split-layout { display:grid; grid-template-columns:1fr 1fr; gap:36px; align-items:center; }
.split-layout img { width:100%; max-height:420px; object-fit:contain; }
.cta-section { padding:64px 0; text-align:center; color:#fff; background:var(--primary-green-dark); }
.cta-section h2 { font-size:clamp(1.7rem,3vw,2.4rem); margin-bottom:12px; }
.cta-section p { color:#d1fae5; max-width:700px; margin:0 auto 24px; }
.form-container { max-width:760px; margin:0 auto; }
.ajax-form { display:grid; gap:18px; padding:28px; border:1px solid var(--border-color); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-md); }
.ajax-form label { display:grid; gap:7px; font-weight:700; }
.ajax-form input,.ajax-form textarea { width:100%; border:1px solid #cbd5e1; border-radius:8px; padding:12px 14px; font:inherit; background:#fff; color:var(--text-dark); }
.ajax-form input:focus,.ajax-form textarea:focus { outline:2px solid #a7f3d0; border-color:var(--primary-green-vibrant); }
.ajax-form button:disabled { opacity:.65; cursor:wait; }
.hp-field { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.form-status { min-height:1.4em; color:var(--text-muted); }
.breadcrumbs { color:var(--text-muted); font-size:.9rem; margin-bottom:16px; }
.breadcrumbs a,.text-link { color:var(--primary-green-vibrant); font-weight:700; }
.inner-hero { padding:54px 0; background:var(--bg-light); }
.inner-hero h1 { font-size:clamp(2rem,4vw,3.2rem); line-height:1.12; margin-bottom:14px; }
.inner-hero p { max-width:800px; color:var(--text-muted); }
.btn-secondary { display:inline-flex; align-items:center; justify-content:center; padding:12px 20px; border:1px solid var(--primary-green); border-radius:8px; font-weight:700; }
.alert-toast { position:fixed; right:20px; bottom:20px; z-index:9999; max-width:360px; padding:14px 18px; background:#065f46; color:#fff; border-radius:10px; box-shadow:var(--shadow-lg); opacity:0; transform:translateY(12px); pointer-events:none; transition:all .2s ease; }
.alert-toast.show { opacity:1; transform:translateY(0); }
.alert-toast.error { background:#991b1b; }
@media(max-width:800px) {
 .hero-section > .container,.split-layout { grid-template-columns:1fr; }
 .hero-section { padding:48px 0; }
 .hero-visual { order:-1; }
 .grid-3 { grid-template-columns:1fr; }
 .section { padding:48px 0; }
 .ajax-form { padding:20px; }
}

/* Final visual system: warm editorial surfaces, forest green and amber */
:root { --bg-light:#f5f5ef; --bg-warm:#f8f5ed; --border-color:#e7e6dc; --primary-green-dark:#063b2e; --primary-green:#086447; }
.topbar { background:#071a18; }
.site-header { box-shadow:0 8px 24px rgba(15,35,28,.06); }
.header-inner { min-height:76px; padding:10px 0; }
.nav-link { font-size:.84rem; }
.btn { border-radius:8px; transition:transform .2s ease,background .2s ease,border-color .2s ease; }
.btn-outline { border-color:rgba(255,255,255,.74); }
.eyebrow { color:#b56b07; letter-spacing:.13em; }
.text-link { color:#11694d; }

.home-hero { padding:68px 0; color:#fff; background:radial-gradient(circle at 85% 20%,rgba(245,158,11,.13),transparent 25%),linear-gradient(120deg,#052c23,#07543f 70%,#0a6449); }
.home-hero > .container { grid-template-columns:1fr .95fr; gap:48px; }
.home-hero .eyebrow { color:#ffc85c; }
.home-hero .hero-content h1 { max-width:650px; color:#fff; font-size:clamp(2.6rem,4.5vw,4.4rem); font-weight:800; }
.home-hero .hero-content h1 span { color:#f6ad24; }
.home-hero .hero-content p { color:#e1eee7; max-width:560px; }
.home-hero .hero-visual { min-width:0; }
.home-hero .hero-visual img { height:420px; object-fit:cover; border-radius:18px; box-shadow:0 30px 70px rgba(0,0,0,.28); }
.home-hero-badges { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px 18px; margin:26px 0 30px; }
.home-hero-badges span { display:flex; align-items:center; gap:9px; color:#f2f7f3; font-size:.88rem; font-weight:650; }
.home-hero-badges i { width:28px; height:28px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.28); border-radius:50%; color:#f6bd4b; font-style:normal; }
.home-hero .hero-actions { gap:12px; }
.home-hero .btn-outline:hover,.home-final-cta .btn-outline:hover { background:rgba(255,255,255,.1); }

.home-page .section { padding:74px 0; }
.section-heading h2,.quality-copy h2,.capabilities-layout h2 { color:#123b30; font-size:clamp(1.75rem,3vw,2.5rem); line-height:1.18; letter-spacing:-.035em; }
.section-heading p { color:#65716b; }
.service-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.service-tile { min-height:190px; padding:22px; border:1px solid #e9e8de; border-radius:14px; background:#fff; box-shadow:0 8px 24px rgba(19,51,37,.04); transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.service-tile:hover { transform:translateY(-4px); box-shadow:0 16px 34px rgba(19,51,37,.1); border-color:#d9b365; }
.service-symbol { display:grid; place-items:center; width:44px; height:44px; margin-bottom:16px; border-radius:12px; color:#12654a; background:#edf5ef; font-size:1.35rem; font-weight:800; }
.service-tile h3 { margin-bottom:7px; color:#173d31; font-size:1rem; line-height:1.35; }
.service-tile p { color:#68736d; font-size:.86rem; line-height:1.55; }
.quality-band,.process-band,.home-testimonials { background:#063b2e; color:#fff; }
.quality-band { padding:62px 0; }
.quality-grid { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:56px; }
.quality-grid > img { width:100%; height:390px; object-fit:cover; border-radius:18px; }
.quality-copy .eyebrow,.process-band .eyebrow,.home-testimonials .eyebrow,.home-final-cta .eyebrow { color:#f7bc48; }
.quality-copy h2,.process-band .section-heading h2,.home-testimonials .section-heading h2 { color:#fff; }
.quality-copy p { max-width:580px; color:#d8e6de; margin:14px 0 24px; }
.quality-points { display:grid; grid-template-columns:1fr 1fr; gap:15px; margin:22px 0 28px; }
.quality-points span { color:#edf5ef; font-size:.9rem; font-weight:650; }
.quality-points b { margin-right:8px; color:#f5bd4e; }
.section-heading-row { display:flex; justify-content:space-between; align-items:end; gap:24px; max-width:none; text-align:left; }
.section-heading-row > div { max-width:720px; }
.section-heading-row .text-link { flex:none; margin-bottom:8px; }
.portfolio-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.portfolio-tile { display:flex; flex-direction:column; gap:5px; }
.portfolio-tile img { width:100%; aspect-ratio:1.25; object-fit:cover; border-radius:12px; background:#eee; transition:transform .25s ease; }
.portfolio-tile:hover img { transform:translateY(-4px); }
.portfolio-tile span { margin-top:8px; color:#203e32; font-weight:750; }
.portfolio-tile small { color:#778078; }
.section-alt { background:#f5f5ef; }
.industries-layout { display:grid; grid-template-columns:.9fr 1.1fr; align-items:center; gap:40px; }
.industries-layout > img { width:100%; height:390px; object-fit:cover; border-radius:16px; }
.industry-links { display:grid; gap:8px; }
.industry-links a { display:flex; align-items:center; gap:14px; padding:13px 15px; background:#fff; border:1px solid #e8e9df; border-radius:10px; color:#17684e; font-weight:700; }
.industry-links a span { flex:1; color:#243a31; font-size:.94rem; }
.industry-links a b { color:#b87911; }
.industry-links a:hover { border-color:#d8b46a; transform:translateX(3px); }
.process-band { padding:70px 0; }
.process-band .section-heading { margin-bottom:42px; }
.process-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.process-step { position:relative; padding:0 8px; }
.process-step:not(:last-child)::after { content:""; position:absolute; height:1px; border-top:1px dashed rgba(255,255,255,.38); left:76px; right:-30px; top:27px; }
.process-step > b { position:relative; z-index:1; display:grid; place-items:center; width:54px; height:54px; margin-bottom:17px; border:1px solid rgba(246,189,72,.65); border-radius:50%; color:#f7bd4b; background:#0b4b39; }
.process-step h3 { margin-bottom:6px; color:#fff; font-size:1.03rem; }
.process-step p { max-width:230px; color:#c9dbd1; font-size:.87rem; }
.capabilities-layout { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:56px; }
.capabilities-layout > img { width:100%; height:390px; object-fit:cover; border-radius:16px; }
.capabilities-layout p { margin:14px 0 18px; color:#67746d; }
.check-list { display:grid; gap:10px; margin:0 0 24px; list-style:none; }
.check-list li { position:relative; padding-left:27px; color:#384c41; font-size:.94rem; }
.check-list li::before { content:"✓"; position:absolute; left:0; top:1px; width:18px; height:18px; display:grid; place-items:center; color:#12694b; background:#e4f3e9; border-radius:50%; font-size:.75rem; font-weight:800; }
.home-testimonials { padding:72px 0; }
.home-testimonials .section-heading { margin-bottom:32px; }
.testimonial-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.home-quote { padding:24px; border:1px solid rgba(255,255,255,.14); border-radius:14px; background:rgba(255,255,255,.96); color:#203a30; }
.home-quote p { min-height:110px; margin:12px 0 18px; color:#48584f; font-size:.91rem; line-height:1.65; }
.home-quote > div:last-child { display:grid; gap:2px; }
.home-quote small { color:#758078; }
.home-quote .stars { color:#d58b17; }
.blog-preview-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:17px; }
.blog-preview-grid > a { padding:10px; border:1px solid #ecebe3; border-radius:13px; background:#fff; }
.blog-preview-grid img { width:100%; height:150px; object-fit:cover; border-radius:9px; }
.blog-preview-grid span { display:inline-block; margin:12px 0 6px; color:#a56608; font-size:.75rem; font-weight:800; }
.blog-preview-grid h3 { color:#223d31; font-size:.96rem; line-height:1.4; }
.home-final-cta { padding:70px 0; background:linear-gradient(110deg,#052d23,#075740); }
.home-final-cta .container { display:flex; align-items:center; flex-direction:column; }
.home-final-cta h2 { color:#fff; }
.home-final-cta p { color:#d9e9df; }
.home-final-cta .hero-actions { justify-content:center; }
.home-products { background:#fbfaf6; }

/* Inner service, product and industry pages */
.inner-hero { padding:48px 0; background:linear-gradient(110deg,#fbf8f0,#f2f1e9); border:0; }
.inner-hero-grid { grid-template-columns:1.05fr .95fr; gap:44px; }
.inner-hero-grid > div:last-child { min-width:0; border-radius:16px; overflow:hidden; }
.inner-hero-grid > div:last-child > img { width:100%; height:340px; object-fit:cover; border-radius:16px; box-shadow:0 18px 38px rgba(18,45,34,.12); }
.breadcrumbs { color:#718077; }
.category-tag { color:#b77913; font-size:.78rem; }
.page-title { color:#193e31; font-size:clamp(2rem,3.6vw,3rem); letter-spacing:-.035em; }
.page-intro { max-width:670px; color:#66736b; }
.badge-row { display:flex; flex-wrap:wrap; gap:10px; }
.badge-card { display:inline-flex; align-items:center; gap:8px; padding:9px 13px; color:#345044; background:rgba(255,255,255,.77); border:1px solid #e8e4d8; border-radius:999px; font-size:.8rem; font-weight:700; }
.badge-card span { color:#a86b11; }
.section-header { margin-bottom:32px; }
.section-title { color:#193e31; }
.grid-4 { grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.product-item-card { border-color:#e8e7df; border-radius:12px; box-shadow:0 6px 18px rgba(20,48,35,.04); }
.product-item-img { height:auto; aspect-ratio:1.28; background-color:#f1f0e8; }
.product-item-img img { object-fit:cover; }
.product-item-body { min-height:58px; padding:12px 13px; }
.product-item-title { font-size:.89rem; }
.testimonial-section { background:#f8f5ed; border:0; }
.testimonial-card { border-color:#eee9dc; border-radius:14px; }
.author-avatar { overflow:hidden; }
.quote-block-section { background:#eef3e9; }
.quote-block-grid { grid-template-columns:1.28fr .72fr; }
.form-box { border-color:#e6e7dd; border-radius:15px; }
.form-title { font-size:1.55rem; }
.sample-kit-card { display:flex; flex-direction:column; justify-content:space-between; gap:20px; min-height:100%; padding:30px; border-radius:15px; color:#fff; background:linear-gradient(140deg,#073d2f,#0d6a4b); box-shadow:0 16px 32px rgba(9,60,43,.15); }
.sample-kit-title { color:#fff; font-size:1.35rem; }
.sample-kit-desc { color:#dbe9df; }
.sample-kit-img { text-align:center; }
.sample-kit-img img { max-width:240px; height:150px; object-fit:contain; margin:auto; }
.editorial-content-section { background:#fff; }
.faq-accordion { gap:8px; }
.faq-item { border-color:#e8e7df; border-radius:8px; }
.faq-header { background:#f7f7f3; }
.faq-item.open .faq-header { background:#073f30; }

/* Blog index */
.blog-hero { padding:34px 0; background:linear-gradient(110deg,#fbf7ed,#f3efdf); }
.blog-hero-grid { display:grid; grid-template-columns:1fr .9fr; gap:48px; align-items:center; }
.blog-hero-grid .breadcrumbs { margin-bottom:22px; }
.blog-hero-grid h1 { color:#172d25; font-size:clamp(2.2rem,4vw,3.7rem); line-height:1.1; letter-spacing:-.04em; margin:8px 0 16px; }
.blog-hero-grid h1 span { color:#d18b0b; }
.blog-hero-grid p { max-width:610px; color:#68746d; }
.blog-hero-grid > img { width:100%; height:300px; object-fit:cover; border-radius:16px; }
.blog-list-section { padding:56px 0 76px; }
.blog-explore { text-align:center; margin:0 auto 36px; }
.blog-explore h2 { color:#203a30; font-size:1.45rem; }
.blog-explore > p { margin:4px 0 20px; color:#6b7770; font-size:.9rem; }
.blog-search { display:flex; align-items:center; gap:10px; width:min(560px,100%); margin:0 auto 18px; padding:0 17px; border:1px solid #e7e8df; border-radius:999px; background:#fff; box-shadow:0 5px 16px rgba(20,48,35,.04); }
.blog-search span { color:#738178; font-size:1.2rem; }
.blog-search input { width:100%; height:46px; border:0; outline:0; background:transparent; font:inherit; }
.blog-filters { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.blog-filter { padding:8px 13px; border:1px solid #e7e8df; border-radius:999px; background:#fff; color:#52635a; font:inherit; font-size:.78rem; font-weight:700; cursor:pointer; }
.blog-filter span { margin-left:3px; color:#89928c; font-size:.72rem; }
.blog-filter:hover,.blog-filter.active { border-color:#0b6247; color:#fff; background:#0b6247; }
.blog-filter.active span,.blog-filter:hover span { color:#e5f1e9; }
.blog-results-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:28px; align-items:start; }
.blog-results-heading { display:flex; align-items:center; justify-content:space-between; margin:0 0 14px; }
.blog-results-heading h2 { color:#203a30; font-size:1.2rem; }
.blog-results-heading span { color:#7a857e; font-size:.8rem; }
.blog-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.blog-card { overflow:hidden; display:block; border:1px solid #e8e8e0; border-radius:12px; background:#fff; box-shadow:0 5px 18px rgba(20,48,35,.035); transition:transform .2s ease,box-shadow .2s ease; }
.blog-card:hover { transform:translateY(-3px); box-shadow:0 14px 30px rgba(20,48,35,.1); }
.blog-card[hidden] { display:none; }
.blog-card > img { width:100%; height:164px; object-fit:cover; }
.blog-card-body { padding:14px 16px 16px; }
.blog-category { display:inline-block; padding:4px 8px; border-radius:999px; color:#116449; background:#eaf4ec; font-size:.7rem; font-weight:800; }
.blog-card h3 { margin:10px 0 7px; color:#1b352a; font-size:1rem; line-height:1.4; }
.blog-card p { color:#707b74; font-size:.82rem; line-height:1.5; }
.blog-read { display:flex; justify-content:space-between; align-items:center; margin-top:13px; color:#243b30; font-size:.8rem; font-weight:800; }
.blog-read b { color:#bd7f12; font-size:1.1rem; }
.blog-sidebar { display:grid; gap:15px; }
.blog-side-box { padding:17px; border:1px solid #e8e8e0; border-radius:12px; background:#fff; }
.blog-side-box h3 { margin-bottom:13px; color:#203a30; font-size:1rem; }
.blog-side-box > a { display:flex; align-items:center; gap:10px; padding:9px 0; border-top:1px solid #f0f0eb; color:#53635a; font-size:.79rem; font-weight:650; }
.blog-side-box > a:first-of-type { border-top:0; }
.blog-side-box > a img { width:50px; height:42px; object-fit:cover; border-radius:6px; flex:none; }
.blog-side-box > a:hover { color:#0b6247; }
.blog-side-box > a[data-side-filter] { justify-content:space-between; }
.blog-side-box > a[data-side-filter] span { color:#859087; }
.blog-empty { margin-top:20px; padding:25px; border-radius:10px; background:#f7f7f2; color:#68746d; text-align:center; }

.pre-footer-banner { background:linear-gradient(110deg,#052c23,#07533f); }
.home-page + .pre-footer-banner { display:none; }
.site-footer { background:#101b20; }
.footer-grid { gap:32px; }

@media (max-width:1100px) {
 .service-grid,.portfolio-grid,.blog-preview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .blog-results-layout { grid-template-columns:minmax(0,1fr) 250px; }
 .grid-4 { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:800px) {
 .home-hero > .container,.quality-grid,.industries-layout,.capabilities-layout,.blog-hero-grid,.inner-hero-grid { grid-template-columns:1fr; }
 .home-hero .hero-visual { order:0; }
 .home-hero .hero-visual img { height:340px; }
 .quality-grid > img,.capabilities-layout > img,.industries-layout > img { height:300px; }
 .process-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .process-step:not(:last-child)::after { display:none; }
 .testimonial-cards { grid-template-columns:1fr; }
 .home-quote p { min-height:0; }
 .blog-hero-grid > img { height:260px; }
 .blog-results-layout { grid-template-columns:1fr; }
 .blog-sidebar { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .quote-block-grid { grid-template-columns:1fr; }
 .inner-hero-grid > div:last-child > img { height:300px; }
}
@media (max-width:640px) {
 .home-page .section,.quality-band,.process-band,.home-testimonials { padding:48px 0; }
 .home-hero { padding:42px 0; }
 .home-hero .hero-content h1 { font-size:2.45rem; }
 .home-hero .hero-visual img { height:250px; }
 .home-hero-badges { gap:9px; }
 .home-hero-badges span { font-size:.77rem; }
 .service-grid,.portfolio-grid,.blog-preview-grid,.grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .service-tile { min-height:0; padding:16px; }
 .service-symbol { width:38px; height:38px; margin-bottom:12px; }
 .service-tile h3 { font-size:.9rem; }
 .service-tile p { font-size:.78rem; }
 .quality-grid { gap:28px; }
 .quality-grid > img,.capabilities-layout > img,.industries-layout > img { height:230px; }
 .quality-points { grid-template-columns:1fr; }
 .section-heading-row { align-items:flex-start; flex-direction:column; }
 .section-heading-row .text-link { margin:0; }
 .process-grid { gap:24px 14px; }
 .process-step { padding:0; }
 .blog-card-grid { grid-template-columns:1fr; }
 .blog-sidebar { grid-template-columns:1fr; }
 .blog-hero { padding:30px 0; }
 .blog-hero-grid { gap:24px; }
 .blog-hero-grid h1 { font-size:2.2rem; }
 .blog-hero-grid > img { height:220px; }
 .blog-filter { padding:7px 10px; font-size:.72rem; }
 .inner-hero-grid { gap:24px; }
 .inner-hero-grid > div:last-child > img { height:230px; }
 .badge-row { gap:7px; }
 .badge-card { padding:7px 10px; font-size:.73rem; }
 .product-item-img { aspect-ratio:1.05; }
 .product-item-body { align-items:flex-start; }
 .product-item-title { font-size:.8rem; }
 .sample-kit-card { min-height:300px; padding:22px; }
}

/* Remaining pages: shared hero treatments, article photography and form polish */
.inner-hero:not(:has(.inner-hero-grid)) { position:relative; isolation:isolate; overflow:hidden; min-height:265px; }
.inner-hero:not(:has(.inner-hero-grid))::after { content:""; position:absolute; z-index:-1; top:50%; right:max(20px,calc((100vw - 1240px)/2 + 20px)); width:min(40vw,480px); height:205px; transform:translateY(-50%); border-radius:16px; background:url("/assets/images/pak-design-studio.jpg") center/cover no-repeat; box-shadow:0 18px 40px rgba(24,49,36,.12); }
.inner-hero:not(:has(.inner-hero-grid)) .container { position:relative; z-index:1; padding-right:min(43%,520px); }
.inner-hero:not(:has(.inner-hero-grid)) h1 { color:#193e31; }
.inner-hero:not(:has(.inner-hero-grid)) p { max-width:640px; color:#65746b; }
body:has(form[action="/process-quote.php"]) .inner-hero:not(:has(.inner-hero-grid))::after { background-image:url("/assets/images/pak-open-box.jpg"); }
body:has(form[action="/process-sample.php"]) .inner-hero:not(:has(.inner-hero-grid))::after { background-image:url("/assets/images/pak-home-hero.jpg"); }
body:has(form[action="/process-contact.php"]) .inner-hero:not(:has(.inner-hero-grid))::after { background-image:url("/assets/images/pak-design-studio.jpg"); }
.split-layout { gap:46px; }
.split-layout img { width:100%; max-height:410px; min-height:280px; object-fit:cover; border-radius:16px; box-shadow:0 14px 36px rgba(20,48,35,.1); }
.feature-card:not(:has(img)) { overflow:hidden; padding:0 20px 22px; }
.feature-card:not(:has(img))::before { content:""; display:block; height:150px; margin:0 -20px 18px; background:url("/assets/images/pak-design-studio.jpg") center/cover no-repeat; }
.feature-card:not(:has(img)):nth-child(2)::before { background-image:url("/assets/images/pak-open-box.jpg"); }
.feature-card:not(:has(img)):nth-child(3)::before { background-image:url("/assets/images/pak-eco.jpg"); }
.feature-card img { width:100%; height:200px; max-height:none; object-fit:cover; border-radius:10px; }
.form-container { max-width:800px; }
.ajax-form { gap:16px; padding:32px; border:1px solid #e7e6dc; border-radius:16px; background:#fff; box-shadow:0 14px 38px rgba(23,53,37,.07); }
.ajax-form label { color:#274236; font-size:.9rem; }
.ajax-form input,.ajax-form textarea { border-color:#e0e3db; border-radius:9px; background:#fbfbf8; }
.ajax-form input:focus,.ajax-form textarea:focus { outline:2px solid rgba(8,100,71,.14); border-color:#0a7452; }
.ajax-form button { justify-self:start; min-width:180px; }
.sample-kit-img { height:165px; overflow:hidden; border-radius:12px; background:url("/assets/images/pak-open-box.jpg") center/cover no-repeat; }
.sample-kit-img img { visibility:hidden; }
.sample-kit-card { border:1px solid rgba(255,255,255,.12); }
.sample-kit-card .btn-outline { border-color:rgba(255,255,255,.7); }
.sample-kit-card .btn-outline:hover { color:#063b2e; background:#fff; }
.content-col { color:#48584f; }
.content-col p { color:#637168; }
.content-col h2,.content-col h3 { color:#193e31; }
.editorial-content-section { padding-top:68px; padding-bottom:68px; }
.editorial-grid { gap:44px; }
.faq-item { box-shadow:0 3px 10px rgba(20,48,35,.025); }
.faq-header { font-size:.9rem; }
.section[style*="background-color"] { background:#f5f5ef !important; }

/* Photographic hero assets chosen by the existing image alt text */

/* Article pages keep all copy intact while presenting the image as a hero banner */
body:has(article.container > .category-tag) article.container { max-width:1080px !important; padding:42px 24px 72px !important; }
body:has(article.container > .category-tag) article.container { display:flex; flex-direction:column; }
body:has(article.container > .category-tag) article.container > .breadcrumbs { order:0; }
body:has(article.container > .category-tag) article.container > img { order:1; }
body:has(article.container > .category-tag) article.container > .category-tag { order:2; }
body:has(article.container > .category-tag) article.container > .page-title { order:3; }
body:has(article.container > .category-tag) article.container > div[style*="display:flex"] { order:4; }
body:has(article.container > .category-tag) article.container > .editorial-grid { order:5; }
body:has(article.container > .category-tag) article.container > div[style*="margin-top: 50px"] { order:6; }
body:has(article.container > .category-tag) article.container > .category-tag { display:inline-block; padding:6px 11px; border-radius:999px; background:#f8efd9; color:#a66d11; font-size:.75rem; }
body:has(article.container > .category-tag) article.container > .page-title { max-width:960px; margin:10px 0 15px !important; font-size:clamp(2rem,4vw,3.25rem); }
body:has(article.container > .category-tag) article.container > div[style*="display:flex"] { gap:12px !important; flex-wrap:wrap; margin-bottom:24px !important; color:#6a786f !important; font-size:.85rem !important; }
body:has(article.container > .category-tag) article.container > img { width:100% !important; height:360px !important; object-fit:cover; border-radius:16px !important; margin:0 0 38px !important; box-shadow:0 20px 44px rgba(18,45,34,.12) !important; }
body:has(article.container > .category-tag) article.container > .editorial-grid { max-width:820px; margin:0 auto; }
body:has(article.container > .category-tag) article.container .content-col { font-size:1rem !important; line-height:1.8 !important; }
body:has(article.container > .category-tag) article.container .content-col h2 { margin:34px 0 14px; padding-bottom:10px; border-bottom:1px solid #e9e8df; font-size:1.7rem; }
body:has(article.container > .category-tag) article.container > div[style*="margin-top: 50px"] { max-width:820px; margin:40px auto 0 !important; padding-top:32px !important; border-color:#e7e6dc !important; }

@media(max-width:800px) {
 .inner-hero:not(:has(.inner-hero-grid)) { min-height:0; }
 .inner-hero:not(:has(.inner-hero-grid))::after { display:none; }
 .inner-hero:not(:has(.inner-hero-grid)) .container { padding-right:20px; }
 .inner-hero:not(:has(.inner-hero-grid)) h1,.inner-hero:not(:has(.inner-hero-grid)) p { max-width:100%; }
 .feature-card:not(:has(img))::before { height:130px; }
 body:has(article.container > .category-tag) article.container > img { height:260px !important; }
}
@media(max-width:640px) {
 .ajax-form { padding:21px; }
 .ajax-form button { width:100%; }
 .sample-kit-img { height:145px; }
 body:has(article.container > .category-tag) article.container { padding:28px 18px 52px !important; }
 body:has(article.container > .category-tag) article.container > img { height:210px !important; }
}

/* Final responsive navigation and image-variety fixes */
.mobile-nav-close { display:none; }

@media (min-width:1281px) {
  .topbar .container,
  .site-header .container { max-width:1450px; }
  .header-inner { gap:14px; }
  .brand-logo { flex:0 0 auto; gap:9px; }
  .logo-title { white-space:nowrap; font-size:1.28rem; }
  .main-nav {
    flex:1 1 auto;
    min-width:0;
    justify-content:flex-end;
    gap:6px;
  }
  .nav-list { flex:1 1 auto; justify-content:center; gap:clamp(6px,.7vw,11px); }
  .nav-item { flex:0 0 auto; }
  .nav-link { white-space:nowrap; font-size:clamp(.72rem,.74vw,.8rem); padding:8px 2px; }
  .nav-right-actions { flex:0 0 auto; gap:7px; }
  .nav-right-actions .lang-btn { padding:6px 8px; font-size:.78rem; }
  .nav-right-actions .btn-sm { padding:8px 10px; font-size:.76rem; }
}

@media (max-width:1280px) {
  .header-inner { flex-wrap:wrap; }
  .nav-right-actions { flex-wrap:nowrap; }
  .nav-right-actions .lang-switcher { display:none; }
  .main-nav {
    position:fixed;
    top:0;
    right:-110%;
    left:auto;
    width:min(360px, 88vw);
    height:100vh;
    height:100dvh;
    display:flex;
    flex-direction:column;
    background:#fff;
    box-shadow:var(--shadow-xl);
    overflow-y:auto;
    z-index:1101;
    padding:72px 20px 28px;
    transition:right .28s ease, visibility .28s ease;
    visibility:hidden;
    pointer-events:none;
  }
  .main-nav.active {
    right:0;
    visibility:visible;
    pointer-events:auto;
  }
  .main-nav .nav-list {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    width:100%;
    gap:2px;
  }
  .main-nav .nav-dropdown {
    position:static;
    opacity:1;
    visibility:visible;
    transform:none;
    display:none;
    width:100%;
    min-width:0;
    padding:0 0 0 14px;
    box-shadow:none;
    border:0;
  }
  .main-nav .nav-item.open .nav-dropdown { display:block; }
  .main-nav .nav-link { width:100%; padding:11px 5px; }
  .main-nav .lang-switcher-mobile {
    display:block;
    width:100%;
    margin-top:20px;
    padding-top:18px;
    border-top:1px solid var(--border-color);
  }
  .nav-backdrop {
    position:fixed;
    inset:0;
    z-index:1100;
    display:block;
    border:0;
    background:rgba(7,26,24,.48);
    cursor:pointer;
  }
  .nav-backdrop[hidden] { display:none; }
  .mobile-nav-close {
    position:absolute;
    top:14px;
    right:16px;
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    border:1px solid var(--border-color);
    border-radius:10px;
    background:#f7f7f3;
    color:var(--primary-green-dark);
    font:inherit;
    font-size:1.8rem;
    line-height:1;
    cursor:pointer;
  }
  .mobile-toggle {
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    border-radius:10px;
    font-size:1.55rem;
    line-height:1;
  }
  .nav-right-actions .btn-sm { padding:9px 14px; font-size:.85rem; }
  .mobile-toggle:focus-visible,
  .mobile-nav-close:focus-visible,
  .lang-option-mobile:focus-visible {
    outline:3px solid rgba(8,100,71,.32);
    outline-offset:2px;
  }
  body.nav-open { overflow:hidden; }
}

@media (max-width:640px) {
  .topbar { padding:7px 0; }
  .topbar .container {
    flex-direction:row;
    align-items:center;
    gap:0;
    padding:0 12px;
  }
  .topbar-info {
    width:100%;
    justify-content:space-between;
    gap:6px;
    flex-wrap:nowrap;
  }
  .topbar-info a {
    gap:4px;
    font-size:clamp(.62rem,2.7vw,.76rem);
    white-space:nowrap;
  }
  .header-inner {
    gap:8px;
    padding:9px 0 10px;
  }
  .brand-logo {
    flex:1 1 100%;
    min-width:0;
    gap:10px;
  }
  .brand-logo svg { flex:0 0 40px; width:40px; height:40px; }
  .logo-title { font-size:clamp(1.08rem,4.7vw,1.34rem); white-space:nowrap; }
  .nav-right-actions {
    flex:1 1 100%;
    width:100%;
    justify-content:flex-start;
    gap:10px;
  }
  .nav-right-actions .mobile-toggle { margin-left:auto; flex:0 0 42px; }
  .nav-right-actions .btn-sm {
    min-height:40px;
    padding:9px 14px;
    font-size:0;
  }
  .nav-right-actions .btn-sm::after {
    content:"Request a Quote";
    font-size:.8rem;
  }
}

/* Keep each product and editorial illustration unique instead of covering it
   with the same few stock photos used in the category hero banners. */
.product-item-img:has(> img[src$=".svg"]) {
  background:#f5f5ef !important;
  background-image:none !important;
}
.product-item-img:has(> img[src$=".svg"]) > img {
  opacity:1 !important;
  visibility:visible !important;
  object-fit:contain !important;
}

/* Show the actual sample-kit illustration in sample and testimonial panels. */
.testimonial-banner-grid > div:last-child:has(img[src*="sample-kit.svg"]) {
  min-height:0 !important;
  height:auto;
  overflow:visible;
  background:none !important;
}
.testimonial-banner-grid > div:last-child:has(img[src*="sample-kit.svg"]) img {
  visibility:visible !important;
  width:100%;
  height:auto;
  max-width:480px;
  margin-inline:auto;
  object-fit:contain;
}

/* Language switching keeps the existing layout and mirrors directional details. */
html[lang="ar"] body { font-family: Tahoma, Arial, sans-serif; }
[dir="rtl"] .faq-header,
[dir="rtl"] .spec-table th,
[dir="rtl"] .spec-table td { text-align: start; }
[dir="rtl"] .nav-dropdown { left:auto; right:0; }
[dir="rtl"] .lang-dropdown { right:auto; left:0; }
[dir="rtl"] .check-list li { padding-left:0; padding-right:27px; }
[dir="rtl"] .check-list li::before { left:auto; right:0; }
[dir="rtl"] .quality-points b { margin-right:0; margin-left:8px; }
[dir="rtl"] .blog-filter span { margin-left:0; margin-right:3px; }
[dir="rtl"] .dropdown-item:hover { padding-left:18px; padding-right:22px; }
[dir="rtl"] .footer-links a:hover { padding-left:0; padding-right:4px; }
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="tel"],
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"] { direction:ltr; unicode-bidi:isolate; }
.language-status { position:fixed; inset-inline:20px; bottom:20px; width:fit-content; max-width:calc(100% - 40px); margin-inline:auto; padding:14px 20px; background:#fff; color:#991b1b; border:1px solid #fecaca; border-radius:10px; box-shadow:var(--shadow-lg); z-index:1200; }
@media (min-width:801px) {
  [dir="rtl"] .inner-hero:not(:has(.inner-hero-grid))::after { right:auto; left:max(20px,calc((100vw - 1240px)/2 + 20px)); }
  [dir="rtl"] .inner-hero:not(:has(.inner-hero-grid)) .container { padding-right:20px; padding-left:min(43%,520px); }
}
@media (max-width:1280px) {
  [dir="rtl"] .main-nav .nav-dropdown { padding:0 14px 0 0; }
}
@media (max-width:768px) {
  html[lang="ar"] .nav-right-actions .btn-sm::after { content:"اطلب عرض سعر"; }
  html[lang="es"] .nav-right-actions .btn-sm::after { content:"Solicitar presupuesto"; }
}

/* Room for copy and real, title-specific artwork. */
.mobile-menu-quote { display:none; }
.inner-hero-grid > div, .editorial-grid > div, .quote-block-grid > div { min-width:0; }
.inner-hero-grid > div:last-child > img { opacity:1; width:100%; object-fit:contain; background:#f3f1e9; }
.content-col ul, .content-col ol { padding-inline-start:1.4rem; margin-block:18px 28px; }
.content-col li + li { margin-top:10px; }
.content-col h2:not(:first-child) { margin-top:36px; }
.content-col h3 { margin-top:28px; }
.breadcrumbs { flex-wrap:wrap; row-gap:4px; }
.product-item-body { padding:22px; }
.testimonial-banner-grid > div:last-child img { width:100%; height:auto; border-radius:14px; }
@media (max-width:1280px) {
 .main-nav .mobile-menu-quote { display:flex; width:100%; min-height:48px; margin-bottom:12px; flex-shrink:0; }
 .nav-right-actions > .btn { display:none; }
 .main-nav .nav-item { width:100%; }
 .main-nav { align-items:stretch; gap:12px; }
}
@media (max-width:640px) {
 .header-inner { flex-wrap:nowrap; gap:12px; }
 .brand-logo { flex:1 1 auto; }
 .nav-right-actions { flex:0 0 auto; width:auto; }
 .logo-sub { font-size:.58rem; letter-spacing:.5px; }
 .logo-title { font-size:clamp(1rem,4.5vw,1.3rem); }
 .brand-logo svg { width:34px; height:34px; flex-basis:34px; }
 .inner-hero { padding:36px 0 40px; }
 .page-title { font-size:clamp(1.8rem,7.5vw,2.4rem); overflow-wrap:break-word; }
 .section, .editorial-content-section, .quote-block-section, .testimonial-section { padding-block:48px; }
 .editorial-grid { gap:34px; }
 .service-grid, .portfolio-grid, .blog-preview-grid, .grid-4 { grid-template-columns:1fr; gap:22px; }
 .service-tile { padding:24px; }
 .hero-actions, .hero-ctas { gap:12px; flex-wrap:wrap; }
 .hero-actions .btn, .hero-ctas .btn { white-space:normal; }
 .spec-table { font-size:.82rem; table-layout:fixed; width:100%; }
 .spec-table th, .spec-table td { overflow-wrap:anywhere; padding:12px 9px; }
}
@media (prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto; }
 .main-nav { transition:none; }
}

main.container > h2 { margin-block:32px 14px; }
main.container > p + p { margin-top:18px; }
