/*
Theme Name: Ksar Sghir Beach
Theme URI: https://ksarsghirbeach.com/
Author: Ksar Sghir Beach
Description: Custom lightweight WordPress theme for Ksar Sghir Beach with weather, marine conditions, prayer times, gallery and multilingual front-end labels.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: ksar-sghir-beach
*/


:root{
 --navy:#062b3a;--blue:#075985;--cyan:#0891b2;--sky:#e8f7fb;--sand:#f4ead5;
 --ink:#102a43;--muted:#64748b;--line:#e2e8f0;--card:#fff;--bg:#f7fafc;
 --green:#047857;--amber:#b45309;--red:#b91c1c;--shadow:0 18px 50px rgba(6,43,58,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif;background:var(--bg);color:var(--ink);line-height:1.7}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,select{font:inherit}
.container{width:min(1180px,calc(100% - 32px));margin:auto}
.topbar{background:var(--navy);color:#dceef4;font-size:13px}
.topbar .inner{min-height:38px;display:flex;justify-content:space-between;align-items:center;gap:15px}
.header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.95);backdrop-filter:blur(14px);border-bottom:1px solid rgba(226,232,240,.85)}
.nav{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;color:var(--navy);white-space:nowrap}
.brand-mark{width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,var(--blue),var(--cyan));display:grid;place-items:center;color:white;font-size:20px}
.brand small{display:block;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.08em}
.navlinks{display:flex;gap:20px;align-items:center;font-size:14px;font-weight:700}
.navlinks a:hover{color:var(--cyan)}
.langs{display:flex;gap:5px}
.langs button{border:1px solid var(--line);background:white;border-radius:999px;padding:6px 9px;cursor:pointer;font-size:12px}
.langs button.active{background:var(--blue);color:white;border-color:var(--blue)}
.menu{display:none;border:1px solid var(--line);background:white;border-radius:12px;padding:9px 12px;cursor:pointer}.mobile-nav{display:none;border-top:1px solid var(--line);background:white;padding:10px 16px}.mobile-nav a{display:block;padding:10px 4px;font-weight:800;border-bottom:1px solid #f1f5f9}.mobile-nav.open{display:block}
.hero{min-height:640px;display:flex;align-items:flex-end;position:relative;overflow:hidden;color:white;background:#0b3f54 url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2000&q=88") center/cover no-repeat}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,25,35,.05) 20%,rgba(3,25,35,.78) 92%),var(--hero-image) center/cover}
.hero .container{position:relative;padding:85px 0 70px}
.kicker{font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:800;opacity:.9}
.hero h1{font-size:clamp(44px,7vw,82px);line-height:1.02;margin:10px 0 10px;font-weight:950;max-width:850px}
.hero h2{font-size:clamp(23px,3vw,34px);margin:0 0 15px}
.hero p{max-width:720px;color:#e6f3f7;font-size:17px;margin:0 0 25px}
.actions{display:flex;flex-wrap:wrap;gap:10px}
.btn{min-height:46px;padding:0 19px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:14px}
.btn.primary{background:white;color:var(--blue)}
.btn.ghost{border:1px solid rgba(255,255,255,.55);color:white;background:rgba(255,255,255,.1)}
.section{padding:72px 0}
.section.alt{background:white}
.section-head{margin-bottom:28px}
.eyebrow{font-size:12px;color:var(--cyan);font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.section-head h2{font-size:clamp(27px,4vw,38px);line-height:1.15;margin:5px 0}
.section-head p{margin:0;color:var(--muted);max-width:760px}
.dashboard{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}
.card{background:var(--card);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
.metric{padding:20px}
.metric .icon{font-size:26px}
.metric .label{color:var(--muted);font-size:12px}
.metric .value{font-size:28px;font-weight:900;margin:3px 0}
.metric .sub{font-size:12px;color:var(--muted)}
.sea-wrap{background:linear-gradient(135deg,#e7f8fc,#f9fbfc)}
.sea-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:18px}
.sea-main{padding:26px}
.sea-top{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}
.sea-top h3{margin:0;font-size:25px}
.status{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;font-weight:900;font-size:12px;white-space:nowrap}
.status.good{background:#ecfdf5;color:var(--green)}
.status.warn{background:#fff7ed;color:var(--amber)}
.status.bad{background:#fef2f2;color:var(--red)}
.dot{width:8px;height:8px;border-radius:50%;background:currentColor}
.sea-details{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:20px}
.detail{padding:14px;border-radius:15px;background:#f8fafc}
.detail strong{display:block}
.wind-card{padding:26px;background:var(--navy);color:white}
.wind-number{font-size:50px;font-weight:950;line-height:1}
.wind-unit{opacity:.75}
.wind-dir{font-weight:800;margin-top:4px}
.sun-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}
.sun{padding:18px;text-align:center}
.sun .big{font-size:26px;font-weight:900}
.week{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.day{padding:15px 10px;text-align:center;background:white;border:1px solid var(--line);border-radius:17px}
.day b{display:block}
.day .temp{font-size:20px;font-weight:900;margin:4px 0}
.day small{color:var(--muted)}
.prayers{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}
.prayer{padding:15px 8px;text-align:center;background:white;border:1px solid var(--line);border-radius:16px}
.prayer span{display:block;color:var(--muted);font-size:11px}
.prayer b{font-size:18px}
.hijri{margin-top:10px;color:var(--muted);font-size:13px}
.about{display:grid;grid-template-columns:1fr 1fr;gap:35px;align-items:center}
.about img{width:100%;height:430px;object-fit:cover;border-radius:26px}
.about h2{font-size:38px;line-height:1.15;margin:7px 0 15px}
.about p{color:var(--muted)}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}
.feature{padding:23px}
.feature .fi{font-size:29px}
.feature h3{margin:8px 0 3px}
.feature p{margin:0;color:var(--muted);font-size:13px}
.gallery{display:grid;grid-template-columns:2fr 1fr 1fr;grid-auto-rows:210px;gap:10px}
.gallery img{width:100%;height:100%;object-fit:cover;border-radius:17px}
.gallery .large{grid-row:span 2}
.articles{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.article{overflow:hidden;background:white;border:1px solid var(--line);border-radius:20px}
.article img{height:200px;width:100%;object-fit:cover}
.article-body{padding:19px}
.article-date{color:var(--cyan);font-size:11px;font-weight:800}
.article h3{font-size:19px;line-height:1.35;margin:5px 0}
.article p{font-size:13px;color:var(--muted);margin:0}
.info-strip{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.info-box{padding:22px}
.info-box h3{margin:0 0 6px}
.info-box p{margin:0;color:var(--muted);font-size:13px}
.cta{padding:55px 30px;border-radius:27px;background:linear-gradient(125deg,var(--navy),var(--blue));color:white;text-align:center}
.cta h2{font-size:35px;margin:0 0 8px}
.cta p{color:#cde4ec;margin:0 0 22px}
.footer{background:#041d28;color:white}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:30px;padding:55px 0}
.footer h3{margin:0 0 10px}
.footer p,.footer a{color:#aec1c9;font-size:13px}
.footer a{display:block;margin:5px 0}
.copy{border-top:1px solid rgba(255,255,255,.1);padding:16px 0;color:#8299a3;font-size:11px}
.note{font-size:11px;color:var(--muted);margin-top:8px}
.loading{opacity:.65}
.hidden{display:none!important}
#editBar{display:none;position:fixed;bottom:14px;left:50%;transform:translateX(-50%);z-index:2000;background:#061923;color:white;padding:10px 12px;border-radius:14px;box-shadow:var(--shadow);font-size:12px}
#editBar input{max-width:220px}
@media(min-width:901px){.mobile-nav{display:none!important}}
@media(max-width:900px){
 .navlinks{display:none}.menu{display:block}.dashboard{grid-template-columns:repeat(2,1fr)}
 .sea-grid,.about,.info-strip{grid-template-columns:1fr}.sun-grid{grid-template-columns:repeat(2,1fr)}
 .week{grid-template-columns:repeat(4,1fr)}.prayers{grid-template-columns:repeat(3,1fr)}
 .feature-grid{grid-template-columns:repeat(2,1fr)}.articles{grid-template-columns:1fr 1fr}
 .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
 .container{width:min(100% - 22px,1180px)}.topbar .inner{justify-content:center}
 .topbar .inner>span:last-child{display:none}.nav{min-height:64px}
 .brand-mark{width:36px;height:36px}.hero{min-height:610px}.hero .container{padding:70px 0 50px}
 .hero h1{font-size:44px}.hero p{font-size:15px}.section{padding:55px 0}
 .dashboard{grid-template-columns:1fr 1fr;gap:9px}.metric{padding:15px}.metric .value{font-size:23px}
 .sea-details{grid-template-columns:1fr}.sun-grid{grid-template-columns:1fr 1fr}.week{grid-template-columns:repeat(2,1fr)}
 .prayers{grid-template-columns:repeat(3,1fr)}.about img{height:300px}.about h2{font-size:31px}
 .feature-grid{grid-template-columns:1fr 1fr}.gallery{grid-template-columns:1fr 1fr;grid-auto-rows:150px}.gallery .large{grid-column:span 2;grid-row:span 2}
 .articles{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}
 .langs button{padding:5px 7px}.langs button:nth-child(4){display:none}
}

.entry-content{font-size:16px;line-height:1.9}.entry-content h2{font-size:28px;margin-top:28px}.entry-content h3{font-size:21px;margin-top:22px}.entry-content a{color:var(--blue);text-decoration:underline}.entry-content img{border-radius:18px;margin:18px 0}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
