/* Arabia Powertec: shared rules on top of the page styles from the design */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #0E6D21; outline-offset: 2px;
}
input, select, textarea, button { font: inherit; color: inherit; }
[id] { scroll-margin-top: 96px; }
.hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }

/* Mobile menu button (hidden on desktop) */
.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 12px; border: 1px solid #CDD3DA; border-radius: 3px;
  background: #FFFFFF; cursor: pointer; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: #0B1F3A; border-radius: 2px; transition: transform .2s, opacity .2s; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-header > div { flex-wrap: wrap !important; padding-top: 10px !important; padding-bottom: 10px !important; }
  .site-header > div > a:first-child img { height: 46px !important; }
  .site-nav {
    display: none !important; flex-basis: 100%; flex-direction: column !important; align-items: stretch !important;
    gap: 0 !important; padding: 6px 0 14px; font-size: 17px !important;
  }
  .site-header.open .site-nav { display: flex !important; max-height: calc(100vh - 80px); overflow-y: auto; }
  .site-nav > a { min-height: 52px; display: flex !important; align-items: center; border-top: 1px solid #E3E6EA; box-shadow: none !important; padding-bottom: 0 !important; }
  .site-nav > a:last-child { justify-content: center; margin-top: 14px; border-top: 0; }
}

/* Phones */
@media (max-width: 640px) {
  section > div[style*="padding: 64px 24px"], section > div[style*="padding: 72px 24px"] { padding-top: 44px !important; padding-bottom: 44px !important; }
  section > div[style*="padding: 56px 24px"] { padding-top: 40px !important; padding-bottom: 40px !important; }
  section > div[style*="padding: 48px 24px"] { padding-top: 36px !important; padding-bottom: 36px !important; }
  section > div[style*="max-width: 1240px"] { padding-left: 18px !important; padding-right: 18px !important; }
  footer > div > div, footer > div { padding-left: 18px !important; padding-right: 18px !important; }
  .quote-form { grid-template-columns: 1fr !important; }
  .quote-form > * { grid-column: 1 / -1 !important; }
  [style*="flex: 1 1 560px"], [style*="flex: 1 1 520px"], [style*="flex: 1 1 480px"], [style*="flex: 1 1 440px"],
  [style*="flex: 3 1 600px"], [style*="flex: 1 1 380px"], [style*="flex: 2 1 340px"], [style*="flex: 999 1 560px"],
  [style*="flex: 1 1 340px"], [style*="flex: 1 1 400px"] { flex-basis: 100% !important; }
  [style*="minmax(340px, 1fr)"], [style*="minmax(320px, 1fr)"], [style*="minmax(300px, 1fr)"] { grid-template-columns: 1fr !important; }
  a[style*="min-height: 52px"] { justify-content: center; }
  table th, table td { padding-left: 12px !important; padding-right: 12px !important; }
}

/* Product cards: uniform photo frames */
.pcard { transition: box-shadow .2s ease, transform .2s ease; }
.pcard:hover { box-shadow: 0 10px 28px rgba(11, 31, 58, .12); transform: translateY(-2px); }
@media (max-width: 900px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
}
@media (max-width: 640px) {
  .pgrid { gap: 10px !important; }
  .pcard > span { padding: 12px 12px 14px !important; gap: 4px !important; }
  .pcard > span > span:first-child { font-size: 15px !important; line-height: 1.3; }
  .pcard > span > span:nth-child(2) { font-size: 13px !important; line-height: 1.45 !important; }
  .pcard > span > span:nth-child(3) { font-size: 13px !important; }
}
@media (max-width: 900px) {
  .pgrid > .pcard:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row !important; }
  .pgrid > .pcard:last-child:nth-child(odd) > img { width: 50% !important; flex: 0 0 50%; aspect-ratio: 4 / 3; }
  .pgrid > .pcard:last-child:nth-child(odd) > span { justify-content: center; }
}

/* ===== English mobile layout: Mobile View Proposal v2 (approved by owner 22 Nov 2026) ===== */
.m-quote, .m-bar, .m-actions { display: none; }

@media (max-width: 640px) {
  /* Slim 56px header: logo, small Get a Quote button, menu button */
  .m2 .site-header > div { min-height: 56px; padding: 8px 16px !important; gap: 10px !important; }
  .m2 .site-header > div > a:first-child img { height: 36px !important; }
  .m2 .m-quote {
    display: inline-flex; align-items: center; margin-inline-start: auto; height: 36px; padding: 0 12px;
    background: #0E6D21; color: #FFFFFF; font-weight: 600; font-size: 14px; text-decoration: none; border-radius: 3px; white-space: nowrap;
  }
  .m2 .nav-toggle { width: 40px; height: 40px; padding: 10px; }
  .m2 .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .m2 .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .m2 .site-nav { font-size: 16px !important; padding-bottom: 10px; }
  .m2 .site-nav > a { min-height: 46px; }
  .m2 .site-header.open .site-nav { max-height: calc(100vh - 56px); }
  .m2 [id] { scroll-margin-top: 64px; }

  /* Headings */
  .m2 h1 { font-size: 30px !important; line-height: 1.1 !important; }
  .m2 h2 { font-size: 21px !important; line-height: 1.25 !important; }
  .m2 main p, .m2 section p { font-size: 16px !important; }
  .m2 h3[style*="font-size: 2"], .m2 section div[style*="Barlow Semi Condensed"][style*="font-size: 2"] { font-size: 18px !important; }
  .m2 blockquote { font-size: 22px !important; }

  /* Tighter section padding */
  .m2 section > div[style*="padding: 64px 24px"], .m2 section > div[style*="padding: 72px 24px"] { padding-top: 32px !important; padding-bottom: 32px !important; }
  .m2 section > div[style*="padding: 56px 24px"], .m2 section > div[style*="padding: 52px 24px"] { padding-top: 28px !important; padding-bottom: 28px !important; }
  .m2 section > div[style*="padding: 48px 24px"], .m2 section > div[style*="padding: 44px 24px"] { padding-top: 26px !important; padding-bottom: 26px !important; }
  .m2 section > div[style*="max-width: 1240px"] { padding-left: 16px !important; padding-right: 16px !important; }
  .m2 section > div[style*="padding: 24px 24px 56px"] { padding-top: 14px !important; padding-bottom: 28px !important; gap: 20px !important; }
  .m2 section > div[style*="padding: 28px 24px 0"] { padding-top: 14px !important; }
  .m2 section > div[style*="gap: 48px"], .m2 section > div[style*="gap: 40px"] { gap: 24px !important; }

  /* Buttons side by side, 44px */
  .m2 a[style*="min-height: 52px"] { min-height: 44px !important; padding: 6px 12px !important; font-size: 15px !important; line-height: 1.2; text-align: center; justify-content: center; }
  .m2 div:has(> a[style*="min-height: 52px"] + a[style*="min-height: 52px"]) { flex-wrap: nowrap !important; gap: 10px !important; margin-top: 20px !important; width: 100%; }
  .m2 div:has(> a[style*="min-height: 52px"] + a[style*="min-height: 52px"]) > a { flex: 1 1 0; min-width: 0; }

  /* Cards: 2 columns, name only */
  .m2 .pcard > span { padding: 10px 12px 12px !important; }
  .m2 .pcard > span > span:not(:first-child) { display: none !important; }
  .m2 .pcard > span > span:first-child { font-size: 14.5px !important; line-height: 1.3; }
  /* 3-card groups: first card full width (16:9), the other two below it */
  .m2 .pgrid > .pcard:first-child:nth-last-child(3) { grid-column: 1 / -1; }
  .m2 .pgrid > .pcard:first-child:nth-last-child(3) > img { aspect-ratio: 16 / 9 !important; }
  .m2 .pgrid > .pcard:first-child:nth-last-child(3) ~ .pcard:last-child { grid-column: auto; flex-direction: column !important; }
  .m2 .pgrid > .pcard:first-child:nth-last-child(3) ~ .pcard:last-child > img { width: 100% !important; flex: none !important; }
  .m2 .pgrid > .pcard:first-child:nth-last-child(3) ~ .pcard:last-child > span { justify-content: flex-start; }

  /* Product pages: compact spec rows */
  .m2.m-prod table { margin-top: 18px !important; font-size: 14.5px !important; }
  .m2.m-prod table th { padding: 9px 10px 9px 0 !important; }
  .m2.m-prod table td { padding: 9px 0 !important; }
  .m2.m-prod li { padding: 9px 0 !important; font-size: 15px !important; }

  /* Related panels: side-scrolling row */
  .m2 .rel-row {
    display: flex !important; gap: 12px !important; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 16px -16px 0 !important; padding: 0 16px 6px; scroll-padding: 0 16px; scrollbar-width: none;
  }
  .m2 .rel-row::-webkit-scrollbar { display: none; }
  .m2 .rel-row > a { flex: 0 0 68%; scroll-snap-align: start; }
  .m2 .rel-row > a > span { padding: 10px 12px 12px !important; font-size: 15px !important; }

  /* Product pages: sticky bottom bar */
  .m2.m-prod { padding-bottom: 64px; }
  .m2 .m-bar {
    display: flex; gap: 10px; position: fixed; font-family: 'Barlow', sans-serif; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid #E3E6EA; box-shadow: 0 -4px 16px rgba(11, 31, 58, .08);
  }
  .m2 .m-bar a { flex: 1 1 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; font-weight: 600; font-size: 15px; text-decoration: none; }
  .m2 .m-bar-quote { background: #0E6D21; color: #FFFFFF; }
  .m2 .m-bar-wa { border: 1.5px solid #0B1F3A; color: #0B1F3A; background: #FFFFFF; flex-grow: .7 !important; }

  /* Contact: Call / WhatsApp / Email on top, then form, then details + brochure */
  .m2 .m-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
  .m2 .m-actions a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #0B1F3A; border-radius: 3px; background: #FFFFFF; color: #0B1F3A; font-weight: 600; font-size: 15px; text-decoration: none; }
  .m2 .m-actions a.m-actions-wa { background: #0E6D21; border-color: #0E6D21; color: #FFFFFF; }
  .m2.m-contact section > div[style*="padding: 24px 24px 40px"] { padding-top: 14px !important; padding-bottom: 22px !important; }
  .m2.m-contact h1 { margin-top: 16px !important; }
  .m2 .quote-form { gap: 14px !important; }
  .m2 .quote-form input, .m2 .quote-form select { min-height: 46px; }
  .m2 aside > div { padding-left: 18px !important; padding-right: 18px !important; }
  .m2 aside a[style*="padding: 18px 0"] { padding: 12px 0 !important; }

  /* Compact footer, 2 columns */
  .m2 footer > div:first-child { display: grid !important; grid-template-columns: 1fr 1fr; gap: 22px 16px !important; padding: 28px 16px 18px !important; font-size: 14px; }
  .m2 footer > div:first-child > div:first-child { grid-column: 1 / -1; gap: 10px !important; }
  .m2 footer > div:first-child > div, .m2 footer > div:first-child > nav { padding-left: 0 !important; padding-right: 0 !important; }
  .m2 footer > div:first-child > div:last-child { grid-column: 1 / -1; }
  .m2 footer > div:first-child > nav, .m2 footer > div:first-child > div:last-child { gap: 8px !important; }
  .m2 footer > div:first-child span[style*="text-transform: uppercase"] { margin-bottom: 0 !important; font-size: 12px !important; }
  .m2 footer > div:first-child > div:first-child img { height: 34px !important; }
  .m2 footer a[data-social] { width: 38px !important; height: 38px !important; }
  .m2 footer > div:not(:first-child) { padding: 14px 16px !important; font-size: 12.5px; }
  .m2 footer > div:not(:first-child) > div { padding-left: 0 !important; padding-right: 0 !important; }
}
@media (max-width: 640px) {
  .m2 table[style*="min-width: 560px"] { min-width: 0 !important; font-size: 14.5px !important; }
  .m2 table[style*="min-width: 560px"] th, .m2 table[style*="min-width: 560px"] td { padding: 10px 10px !important; }
}
@media (max-width: 640px) {
  [dir="rtl"] .m2 h1 { line-height: 1.35 !important; }
  [dir="rtl"] .m2 h2 { line-height: 1.45 !important; }
  [dir="rtl"] .m2 .m-actions a { font-size: 14px; }
}
