/* Petra Misr for Air Conditioning — site styles */
@font-face{font-family:"Plex";src:url(../fonts/plex-sans.woff) format("woff");font-weight:400 600;font-display:swap}
@font-face{font-family:"Plex Cond";src:url(../fonts/plex-cond-Medium.woff) format("woff");font-weight:500;font-display:swap}
@font-face{font-family:"Plex Cond";src:url(../fonts/plex-cond-SemiBold.woff) format("woff");font-weight:600;font-display:swap}
@font-face{font-family:"Plex Arabic";src:url(../fonts/plex-arabic-Regular.woff) format("woff");font-weight:400;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"Plex Arabic";src:url(../fonts/plex-arabic-Medium.woff) format("woff");font-weight:500;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"Plex Arabic";src:url(../fonts/plex-arabic-SemiBold.woff) format("woff");font-weight:600;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"Plex Arabic";src:url(../fonts/plex-arabic-Bold.woff) format("woff");font-weight:700;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
:root{
  --blue:#1666b0;      /* Petra logo blue */
  --red:#ed3236;       /* Petra logo red */
  --navy:#0a2440;      /* deep navy for dark bands */
  --steel:#e9eef2;     /* galvanized steel panel */
  --rule:#c9d3dc;      /* table rules */
  --ink:#14202e;       /* body text */
  --mute:#566577;      /* secondary text */
  --paper:#ffffff;
  --wrap:1200px;
  --font:"Plex","Plex Arabic",system-ui,sans-serif;
  --display:"Plex Cond","Plex Arabic",system-ui,sans-serif;
}
html[lang="ar"]{--font:"Plex Arabic","Plex",system-ui,sans-serif;--display:"Plex Arabic","Plex Cond",system-ui,sans-serif}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:17px;line-height:1.6;color:var(--ink);background:var(--paper)}
html[lang="ar"] body{font-size:17px;line-height:1.8}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue)}
a:hover{color:#0d4f8c}
:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.wrap{width:min(100% - 48px,var(--wrap));margin-inline:auto}
.skip{position:absolute;inset-inline-start:-999px;top:0;background:#fff;padding:10px 14px;z-index:99}
.skip:focus{inset-inline-start:8px}

/* Type scale (1.25) */
h1,h2,h3,h4{font-family:var(--display);color:var(--navy);line-height:1.15;margin:0 0 .5em;font-weight:600}
h1{font-size:clamp(2.3rem,4.6vw,3.6rem);letter-spacing:-.01em}
h2{font-size:clamp(1.7rem,2.8vw,2.3rem)}
h3{font-size:1.3rem}
h4{font-size:1.05rem}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3{letter-spacing:0;line-height:1.35;font-weight:700}
p{margin:0 0 1em;max-width:68ch}
.lede{font-size:1.2rem;color:var(--mute);max-width:60ch}
.small{font-size:.875rem;color:var(--mute)}

/* Brand rule: the blue and red double stripe from the Petra logo */
.brand-rule{height:10px;background:linear-gradient(var(--blue) 0 4px,transparent 4px 6px,var(--red) 6px 10px)}

/* Header */
.topbar{background:var(--navy);color:#cfdbe7;font-size:.82rem}
.topbar .wrap{display:flex;justify-content:space-between;gap:16px;padding:7px 0;flex-wrap:wrap}
.topbar a{color:#fff;text-decoration:none}
.topbar span+span{margin-inline-start:18px}
header.site{background:#fff;border-bottom:1px solid var(--rule);position:sticky;top:0;z-index:40}
header.site .wrap{display:flex;align-items:center;gap:28px;min-height:78px}
.logo img{width:150px}
nav.main{display:flex;gap:4px;margin-inline-start:auto;align-items:center}
nav.main>a,nav.main .dd>button{font:inherit;font-size:.95rem;font-weight:500;color:var(--ink);text-decoration:none;padding:10px 12px;background:none;border:0;cursor:pointer;border-bottom:3px solid transparent}
nav.main>a:hover,nav.main .dd>button:hover{color:var(--blue)}
nav.main a[aria-current="page"],nav.main .dd.current>button{border-bottom-color:var(--red)}
.dd{position:relative}
.dd-menu{display:none;position:absolute;inset-inline-start:0;top:100%;background:#fff;border:1px solid var(--rule);box-shadow:0 12px 30px rgba(10,36,64,.12);min-width:300px;padding:8px 0}
.dd.open .dd-menu{display:block}
.dd-menu a{display:flex;justify-content:space-between;gap:16px;padding:9px 18px;color:var(--ink);text-decoration:none;font-size:.93rem}
.dd-menu a span{color:var(--mute);font-size:.82rem;white-space:nowrap;unicode-bidi:plaintext}
.dd-menu a:hover{background:var(--steel)}
.lang{font-size:.9rem;font-weight:600;text-decoration:none;padding:8px 10px;border:1px solid var(--rule)}
.btn{display:inline-block;font:inherit;font-weight:600;font-size:.95rem;text-decoration:none;padding:12px 22px;border:2px solid var(--blue);background:var(--blue);color:#fff;cursor:pointer;border-radius:2px}
.btn:hover{background:#0d4f8c;border-color:#0d4f8c;color:#fff}
.btn.red{background:var(--red);border-color:var(--red)}
.btn.red:hover{background:#c9262a;border-color:#c9262a}
.btn.ghost{background:transparent;color:var(--blue)}
.btn.ghost:hover{background:var(--blue);color:#fff}
.btn.light{background:#fff;color:var(--navy);border-color:#fff}
.menu-toggle{display:none;margin-inline-start:auto;background:none;border:1px solid var(--rule);padding:9px 12px;font:inherit;font-weight:600;cursor:pointer}

/* Hero */
.hero{display:grid;grid-template-columns:1.05fr .95fr;min-height:560px;background:var(--steel)}
.hero-text{padding:72px 56px 56px max(24px,calc((100vw - var(--wrap))/2));display:flex;flex-direction:column;justify-content:center}
html[dir="rtl"] .hero-text{padding:72px max(24px,calc((100vw - var(--wrap))/2)) 56px 56px}
.hero-text h1{max-width:17ch;font-size:clamp(2.2rem,3.9vw,3.2rem)}
.hero-text .lede{color:#3d4c5d}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}
.hero-photo{position:relative;margin:0;overflow:hidden}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:70% 60%}
.hero-photo figcaption{position:absolute;inset-inline-start:0;bottom:0;background:rgba(10,36,64,.85);color:#fff;font-size:.82rem;padding:8px 14px}

/* Range index: the catalogue table on the home page */
.range-index{padding:56px 0 24px}
.range-head{display:flex;justify-content:space-between;align-items:end;gap:24px;flex-wrap:wrap;margin-bottom:18px}
.range-head h2{margin:0}
table{border-collapse:collapse;width:100%}
.datasheet{font-size:.95rem}
.datasheet th,.datasheet td{text-align:start;padding:12px 14px;border-bottom:1px solid var(--rule);vertical-align:top}
.datasheet thead th{font-size:.82rem;font-weight:600;color:var(--mute);border-bottom:2px solid var(--navy);background:#fff}
.datasheet tbody tr:hover{background:#f5f8fa}
.datasheet td.num{font-variant-numeric:tabular-nums;white-space:nowrap}
.datasheet td,.facts b,.tile figcaption span{unicode-bidi:plaintext}
html[dir="rtl"] .datasheet td{text-align:right}
.datasheet a{font-weight:600;text-decoration:none}
.datasheet a:hover{text-decoration:underline}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-note{font-size:.82rem;color:var(--mute);margin-top:10px}
.spec{font-size:.95rem}
.spec th,.spec td{text-align:start;padding:11px 0;border-bottom:1px solid var(--rule);vertical-align:top}
.spec th{width:32%;font-weight:600;color:var(--navy);padding-inline-end:20px}

/* Sections */
section.block{padding:64px 0}
section.block.alt{background:var(--steel)}
section.block.dark{background:var(--navy);color:#dfe8f1}
section.block.dark h2,section.block.dark h3{color:#fff}
section.block.dark a{color:#fff}
.dark .tile figcaption b{color:#fff}
.dark .tile figcaption span{color:#b8c8d8}
.sec-head{max-width:760px;margin-bottom:32px}
.sec-head p{color:var(--mute)}
.dark .sec-head p{color:#b8c8d8}
.cols-2{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.cols-3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.cols-4{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}

/* Steps (a real sequence: selection to after-sales) */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);border-top:2px solid var(--navy);counter-reset:s}
.steps li{padding:20px 18px 8px 0;counter-increment:s}
html[dir="rtl"] .steps li{padding:20px 0 8px 18px}
.steps li:before{content:counter(s);display:block;font-family:var(--display);font-size:2rem;font-weight:600;color:var(--blue);line-height:1;margin-bottom:12px}
.steps h3{font-size:1.1rem;margin-bottom:6px}
.steps p{font-size:.93rem;color:var(--mute)}

/* Photo tiles */
.tile{margin:0}
.tile img{width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--steel)}
.tile figcaption{padding:10px 0 0;font-size:.93rem}
.tile figcaption b{display:block;color:var(--navy);font-family:var(--display);font-size:1.08rem;font-weight:600}
.tile figcaption span{color:var(--mute);font-size:.88rem}
.tile.wide img{aspect-ratio:16/9}

/* Feature project row */
.feature{display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:center;padding:28px 0;border-bottom:1px solid var(--rule)}
.feature:last-child{border-bottom:0}
.feature img{width:100%;aspect-ratio:16/10;object-fit:cover}
.facts{display:flex;gap:28px;flex-wrap:wrap;margin:16px 0}
.facts div{min-width:110px}
.facts b{display:block;font-family:var(--display);font-size:1.6rem;color:var(--navy);font-weight:600;line-height:1.1}
.facts span{font-size:.85rem;color:var(--mute)}

/* Inline list of marks */
.marks{display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:0;list-style:none}
.marks li{border:1px solid var(--rule);padding:8px 14px;font-weight:600;font-size:.9rem;background:#fff;color:var(--navy)}

/* Page header for inner pages */
.page-head{background:var(--steel);padding:44px 0 40px}
.page-head .crumbs{font-size:.85rem;color:var(--mute);margin-bottom:12px}
.page-head .crumbs a{color:var(--mute)}
.page-head h1{margin-bottom:12px}
.page-head.photo{position:relative;background:var(--navy);color:#fff;padding:0}
.page-head.photo .inner{display:grid;grid-template-columns:1fr 1fr;min-height:380px}
.page-head.photo .txt{padding:48px 48px 48px 0;display:flex;flex-direction:column;justify-content:center}
html[dir="rtl"] .page-head.photo .txt{padding:48px 0 48px 48px}
.page-head.photo h1{color:#fff}
.page-head.photo .lede{color:#c8d6e4}
.page-head.photo .crumbs,.page-head.photo .crumbs a{color:#a9bccf}
.page-head.photo .pic{margin:0}
.page-head.photo .pic img{width:100%;height:100%;object-fit:cover}

/* Product family list */
.family{display:grid;grid-template-columns:300px 1fr;gap:36px;padding:36px 0;border-bottom:1px solid var(--rule)}
.family img{width:100%;aspect-ratio:1/1;object-fit:cover}
.family h2{font-size:1.7rem}
.family .series{font-size:.9rem;color:var(--mute);margin-bottom:12px;unicode-bidi:plaintext;text-align:start}

/* Sub nav inside product pages */
.subnav{border-bottom:1px solid var(--rule);background:#fff}
.subnav .wrap{display:flex;gap:4px;overflow-x:auto}
.subnav a{padding:14px 12px;white-space:nowrap;text-decoration:none;color:var(--ink);font-size:.9rem;border-bottom:3px solid transparent}
.subnav a[aria-current="page"]{border-bottom-color:var(--red);color:var(--navy);font-weight:600}

/* CTA band */
.cta{background:var(--blue);color:#fff;padding:48px 0}
.cta .wrap{display:flex;justify-content:space-between;align-items:center;gap:28px;flex-wrap:wrap}
.cta h2{color:#fff;margin:0 0 6px}
.cta p{margin:0;color:#dbe8f6}

/* Forms */
form.enquiry{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px}
form.enquiry label{display:block;font-weight:600;font-size:.92rem;color:var(--navy)}
form.enquiry .full{grid-column:1/-1}
form.enquiry input,form.enquiry select,form.enquiry textarea{display:block;width:100%;margin-top:6px;font:inherit;font-size:1rem;padding:11px 12px;border:1px solid #9fb0c0;border-radius:2px;background:#fff;color:var(--ink)}
form.enquiry textarea{min-height:150px;resize:vertical}
form.enquiry .hp{position:absolute;inset-inline-start:-5000px}
.notice{padding:14px 16px;margin-bottom:18px;border-inline-start:4px solid #2b8a3e;background:#ecf7ee}
.notice.err{border-color:var(--red);background:#fdeeee}
.contact-list{list-style:none;padding:0;margin:0}
.contact-list li{padding:14px 0;border-bottom:1px solid var(--rule)}
.contact-list b{display:block;color:var(--navy)}
.map{width:100%;height:340px;border:0;filter:grayscale(.2)}

/* Footer */
footer.site{background:var(--navy);color:#b9c8d8;font-size:.93rem}
footer.site .cols{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.2fr;gap:36px;padding:52px 0 36px}
footer.site h3{color:#fff;font-size:1rem;margin-bottom:12px}
footer.site a{color:#dfe8f1;text-decoration:none}
footer.site a:hover{text-decoration:underline}
footer.site ul{list-style:none;padding:0;margin:0}
footer.site li{margin-bottom:7px}
footer.site .logo-w{width:150px;margin-bottom:14px}
footer.site .legal{border-top:1px solid rgba(255,255,255,.12);padding:16px 0;font-size:.82rem;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

/* Responsive */
@media (max-width:1060px){
  nav.main{display:none;position:absolute;inset-inline:0;top:100%;background:#fff;flex-direction:column;align-items:stretch;padding:8px 24px 20px;border-bottom:1px solid var(--rule);box-shadow:0 14px 24px rgba(10,36,64,.1)}
  nav.main.open{display:flex}
  nav.main>a,nav.main .dd>button{text-align:start;border-bottom:1px solid var(--steel);padding:12px 0;width:100%}
  .dd-menu{position:static;box-shadow:none;border:0;min-width:0;padding:0 0 8px}
  .dd-menu a{padding:8px 12px}
  .menu-toggle{display:block}
  header.site .wrap{position:relative}
  .header-cta{display:none}
  .steps{grid-template-columns:1fr 1fr}
  .cols-4{grid-template-columns:1fr 1fr}
  footer.site .cols{grid-template-columns:1fr 1fr}
}
@media (max-width:820px){
  .hero{grid-template-columns:1fr}
  .hero-text,html[dir="rtl"] .hero-text{padding:44px 24px 36px}
  .hero-photo{height:340px}
  .cols-2,.cols-3{grid-template-columns:1fr;gap:28px}
  .feature{grid-template-columns:1fr;gap:18px}
  .family{grid-template-columns:1fr;gap:18px}
  .family img{aspect-ratio:16/9}
  .page-head.photo .inner{grid-template-columns:1fr}
  .page-head.photo .txt,html[dir="rtl"] .page-head.photo .txt{padding:36px 0}
  .page-head.photo .pic{height:260px;margin-inline:-24px}
  form.enquiry{grid-template-columns:1fr}
  .spec th{width:42%}
  section.block{padding:48px 0}
  .topbar .wrap{justify-content:center}
}
@media (max-width:820px){.table-scroll .datasheet{min-width:680px}.range-index .datasheet{min-width:0}.range-index .datasheet th:nth-child(2),.range-index .datasheet td:nth-child(2){display:none}}
@media (max-width:520px){
  .topbar .wrap>div:first-child{display:none}
  body{font-size:16px}
  .wrap{width:min(100% - 32px,var(--wrap))}
  .steps,.cols-4{grid-template-columns:1fr}
  footer.site .cols{grid-template-columns:1fr}
  .logo img{width:120px}
  .topbar .hide-sm{display:none}
  .page-head.photo .pic{margin-inline:-16px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
@media print{header.site,.topbar,.cta,footer.site,.subnav{display:none}}

/* WhatsApp button */
.wa{position:fixed;inset-inline-end:20px;bottom:20px;z-index:60;display:flex;align-items:center;gap:8px;background:#1f8f4e;color:#fff;text-decoration:none;font-weight:600;font-size:.92rem;padding:12px 16px;border-radius:28px;box-shadow:0 8px 22px rgba(10,36,64,.25)}
.wa:hover{background:#18763f;color:#fff}
.wa svg{width:22px;height:22px;fill:#fff;flex:none}
@media (max-width:520px){.wa span{display:none}.wa{padding:13px}}

/* Lightbox */
.lightbox{position:fixed;inset:0;z-index:80;background:rgba(6,18,32,.92);display:flex;align-items:center;justify-content:center;padding:28px}
.lightbox[hidden]{display:none}
.lightbox figure{margin:0;max-width:1100px;width:100%;text-align:center}
.lightbox img{max-width:100%;max-height:80vh;margin:0 auto;object-fit:contain}
.lightbox figcaption{color:#dfe8f1;margin-top:12px;font-size:.95rem;white-space:pre-line}
.lb-close{position:absolute;top:14px;inset-inline-end:18px;background:none;border:0;color:#fff;font-size:2.4rem;line-height:1;cursor:pointer}

/* Egypt projects map */
.egmap-wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:36px;align-items:start}
.egmap{width:100%;height:auto;background:#dfe9f2}
.egmap .land{fill:#fff;stroke:#9fb3c6;stroke-width:1.5}
.egmap .nile{fill:none;stroke:#7fb0dc;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.egmap .sea{fill:#5f7f9c;font-size:13px;font-style:italic}
.egmap .city{fill:#566577;font-size:12px}
.egmap .pin{cursor:pointer}
.egmap .pin circle{fill:var(--red);stroke:#fff;stroke-width:2}
.egmap .pin.on circle,.egmap .pin:hover circle,.egmap .pin:focus circle{fill:var(--blue);r:10}
.egmap .pin:focus{outline:none}
.egmap-info{border-top:3px solid var(--red);background:#fff;padding:18px 20px;margin-bottom:18px;min-height:120px}
.egmap-info b{display:block;font-family:var(--display);font-size:1.25rem;color:var(--navy);margin-bottom:4px}
.egmap-list{list-style:none;margin:0;padding:0;max-height:360px;overflow:auto;border:1px solid var(--rule);background:#fff}
.egmap-list li{padding:9px 14px;border-bottom:1px solid var(--steel);cursor:pointer;font-size:.92rem}
.egmap-list li b{color:var(--navy);font-weight:600}
.egmap-list li span{display:block;color:var(--mute);font-size:.85rem;unicode-bidi:plaintext}
.egmap-list li.on{background:var(--steel)}
.egmap-info span{color:var(--mute);unicode-bidi:plaintext}

/* Tools */
.tool{background:#fff;border:1px solid var(--rule);padding:24px}
.tool h2{font-size:1.4rem}
.conv-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.conv-grid.three{grid-template-columns:repeat(3,1fr)}
.tool label{display:block;font-weight:600;font-size:.9rem;color:var(--navy)}
.tool input,.tool select{display:block;width:100%;margin-top:6px;font:inherit;font-size:1.05rem;padding:10px 12px;border:1px solid #9fb0c0;border-radius:2px;background:#fff;color:var(--ink);font-variant-numeric:tabular-nums}
.sel-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.sel-grid .full{grid-column:1/-1}
.sel-card{border-inline-start:4px solid var(--blue);background:var(--steel);padding:14px 18px;margin:12px 0}
.sel-card h3{margin:0 0 4px}
.sel-card .series{color:var(--mute);font-size:.9rem;margin:0 0 6px;unicode-bidi:plaintext;text-align:start}
.sel-card p{margin:0}
#sel-out{margin-top:20px}
@media (max-width:820px){.egmap-wrap{grid-template-columns:1fr}.conv-grid,.conv-grid.three,.sel-grid{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.conv-grid,.conv-grid.three,.sel-grid{grid-template-columns:1fr}}

/* Product cut-out photos */
.tile.prod img{object-fit:contain;background:#f2f5f8}
.page-head.photo .pic.prod{background:#f2f5f8;display:flex;align-items:center;justify-content:center}
.page-head.photo .pic.prod img{object-fit:contain;max-height:420px;padding:16px}
.family img{background:#f2f5f8}
.ww-h{color:#fff;font-size:1.15rem;margin:36px 0 16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.18)}.ww-h:first-of-type{margin-top:8px}
@media (max-width:520px){.block.dark .cols-4{grid-template-columns:1fr 1fr;gap:16px 12px}.block.dark .cols-4 .tile figcaption b{font-size:.88rem}.block.dark .cols-4 .tile figcaption span{font-size:.78rem}}
.maplink{display:inline-flex;align-items:center;gap:7px;margin-top:8px;padding:8px 14px;border:1px solid var(--blue,#1666b0);color:#1666b0;font-weight:600;font-size:.92rem;text-decoration:none;border-radius:3px;background:#fff}
.maplink:hover,.maplink:focus-visible{background:#1666b0;color:#fff}
.map-cta{margin-top:12px}.map-cta .maplink{background:#1666b0;color:#fff}.map-cta .maplink:hover{background:#0a2440}
footer.site a.addr{color:inherit;text-decoration:underline;text-decoration-color:rgba(255,255,255,.35);text-underline-offset:3px}
footer.site a.addr:hover{color:#fff}
