/*
Theme Name: TripFromDubai
Theme URI: https://tripfromdubai.com
Author: Leshan Rodrigo
Description: Lightweight, mobile-first travel theme for TripFromDubai.com. Built for SEO, destination guides, budget trips, Dubai experiences and a future AI trip planner.
Version: 1.0.0
Text Domain: tripfromdubai
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
*/

:root{
  --tfd-navy:#0b1f3a;
  --tfd-blue:#1268df;
  --tfd-sky:#2aa9ff;
  --tfd-gold:#f3b24c;
  --tfd-bg:#f7f9fc;
  --tfd-card:#ffffff;
  --tfd-text:#172033;
  --tfd-muted:#6a7488;
  --tfd-border:#e7ebf1;
  --tfd-radius:20px;
  --tfd-shadow:0 14px 35px rgba(19,41,75,.10);
  --tfd-container:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--tfd-text);
  background:#fff;
  line-height:1.6;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--tfd-blue);text-decoration:none}
a:hover{text-decoration:none}
.container{width:min(92%,var(--tfd-container));margin-inline:auto}
.screen-reader-text{position:absolute;left:-9999px}
.site-main{min-height:60vh}
.section{padding:64px 0}
.section.alt{background:var(--tfd-bg)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:26px}
.section-head h2{font-size:clamp(1.7rem,2.4vw,2.4rem);line-height:1.15;margin:0;color:var(--tfd-navy)}
.section-head p{margin:8px 0 0;color:var(--tfd-muted)}
.text-link{font-weight:700}

.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--tfd-border);
}
.header-inner{height:76px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.site-branding{display:flex;align-items:center;gap:12px;min-width:max-content}
.custom-logo{max-height:50px;width:auto}
.brand-mark{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--tfd-navy),var(--tfd-blue));
  color:#fff;font-weight:900;font-size:1.15rem;
}
.site-title{font-size:1.25rem;font-weight:900;color:var(--tfd-navy)}
.site-title span{color:var(--tfd-blue)}
.site-tagline{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--tfd-muted)}
.primary-nav ul{list-style:none;display:flex;align-items:center;gap:24px;margin:0;padding:0}
.primary-nav a{color:var(--tfd-navy);font-size:.95rem;font-weight:700}
.primary-nav a:hover,.primary-nav .current-menu-item>a{color:var(--tfd-blue)}
.header-actions{display:flex;align-items:center;gap:12px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:46px;padding:0 20px;border-radius:999px;
  font-weight:800;border:0;cursor:pointer;transition:.2s ease;
}
.btn-primary{background:linear-gradient(135deg,var(--tfd-blue),#0786e8);color:#fff;box-shadow:0 8px 24px rgba(18,104,223,.25)}
.btn-primary:hover{transform:translateY(-1px);color:#fff}
.btn-light{background:#fff;color:var(--tfd-navy);border:1px solid rgba(255,255,255,.6)}
.menu-toggle{display:none;border:1px solid var(--tfd-border);background:#fff;border-radius:12px;width:44px;height:44px;font-size:1.25rem}

.hero{
  position:relative;overflow:hidden;
  min-height:560px;display:grid;align-items:center;
  background:
    linear-gradient(90deg,rgba(6,30,66,.80) 0%,rgba(7,42,78,.55) 36%,rgba(6,31,57,.18) 70%,rgba(6,31,57,.05) 100%),
    radial-gradient(circle at 78% 20%,rgba(255,194,102,.8),transparent 26%),
    linear-gradient(135deg,#0c5a99 0%,#48b4db 46%,#f5c778 72%,#f7dfb1 100%);
}
.hero:after{
  content:"";position:absolute;inset:auto -10% -75px 38%;height:260px;
  background:linear-gradient(160deg,transparent 0 35%,rgba(7,28,50,.25) 36% 42%,transparent 43%),
             linear-gradient(168deg,transparent 0 42%,rgba(7,28,50,.22) 43% 51%,transparent 52%);
  opacity:.55;
}
.hero-inner{position:relative;z-index:2;padding:90px 0 84px;max-width:760px}
.hero-kicker{display:inline-flex;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.13);color:#fff;font-weight:700;font-size:.88rem;margin-bottom:18px}
.hero h1{font-size:clamp(2.6rem,5.5vw,5rem);line-height:.98;margin:0;color:#fff;letter-spacing:-.045em}
.hero h1 span{display:block;color:#72c8ff}
.hero p{color:rgba(255,255,255,.90);font-size:1.1rem;max-width:670px;margin:20px 0 28px}
.hero-search{
  display:flex;gap:10px;background:#fff;padding:9px;border-radius:999px;
  box-shadow:0 18px 40px rgba(0,0,0,.18);max-width:700px;
}
.hero-search input{flex:1;border:0;outline:0;padding:0 18px;font-size:1rem;min-width:0}
.hero-search button{white-space:nowrap}
.hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.hero-tags a{background:rgba(255,255,255,.94);color:var(--tfd-navy);padding:8px 14px;border-radius:999px;font-size:.88rem;font-weight:800}

.destination-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.destination-card{
  min-height:205px;border-radius:18px;overflow:hidden;position:relative;
  background:linear-gradient(135deg,#1d73be,#3ec1cf);
  box-shadow:var(--tfd-shadow);
}
.destination-card img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.destination-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.82) 100%)}
.destination-card .card-content{position:absolute;left:18px;right:18px;bottom:16px;z-index:2;color:#fff}
.destination-card h3{margin:0 0 4px;font-size:1.15rem}
.destination-card p{margin:0;font-size:.78rem;color:rgba(255,255,255,.86)}

.quick-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-top:18px}
.quick-card{background:#fff;border:1px solid var(--tfd-border);border-radius:18px;padding:22px;box-shadow:0 8px 26px rgba(27,45,76,.05)}
.quick-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#eaf3ff;color:var(--tfd-blue);font-size:1.35rem;margin-bottom:18px}
.quick-card h3{margin:0 0 6px;font-size:1rem;color:var(--tfd-navy)}
.quick-card p{margin:0;color:var(--tfd-muted);font-size:.88rem}

.content-with-aside{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:26px}
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.post-card{background:#fff;border:1px solid var(--tfd-border);border-radius:20px;overflow:hidden;box-shadow:var(--tfd-shadow)}
.post-card .thumb{aspect-ratio:16/10;background:linear-gradient(135deg,#4ba9d8,#d4e8ff);overflow:hidden}
.post-card .thumb img{width:100%;height:100%;object-fit:cover}
.post-card .body{padding:20px}
.post-card .eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;font-weight:900;color:var(--tfd-blue)}
.post-card h3{font-size:1.15rem;line-height:1.3;margin:8px 0;color:var(--tfd-navy)}
.post-card p{margin:0;color:var(--tfd-muted);font-size:.9rem}
.meta{margin-top:14px;color:#8b94a5;font-size:.82rem}

.ai-box{
  background:linear-gradient(180deg,#eff7ff,#fff);
  border:1px solid #dbeafe;border-radius:22px;padding:26px;
  position:sticky;top:96px;
}
.ai-box h3{font-size:1.4rem;line-height:1.2;margin:0 0 10px;color:var(--tfd-navy)}
.ai-box p{color:var(--tfd-muted)}
.check-list{list-style:none;margin:18px 0;padding:0}
.check-list li{margin:9px 0;padding-left:26px;position:relative;font-size:.92rem}
.check-list li:before{content:"✓";position:absolute;left:0;color:#1ba357;font-weight:900}

.page-hero{padding:72px 0;background:linear-gradient(135deg,#0d2a50,#176ed0);color:#fff}
.page-hero h1{margin:0;font-size:clamp(2.2rem,4vw,3.8rem);line-height:1.05}
.page-hero p{max-width:700px;color:rgba(255,255,255,.86)}
.content-area{padding:56px 0}
.entry-content{max-width:800px}
.entry-content h2,.entry-content h3{color:var(--tfd-navy);line-height:1.2}
.entry-content img{border-radius:16px}
.entry-content table{width:100%;border-collapse:collapse}
.entry-content th,.entry-content td{padding:12px;border:1px solid var(--tfd-border);text-align:left}
.entry-content blockquote{border-left:4px solid var(--tfd-blue);margin:24px 0;padding:10px 20px;background:var(--tfd-bg)}

.site-footer{background:#081a31;color:#c8d3e3;padding:54px 0 22px;margin-top:40px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:34px}
.site-footer h3,.site-footer h4{color:#fff}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin:8px 0}
.site-footer a{color:#c8d3e3}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:34px;padding-top:20px;font-size:.86rem;color:#96a7bd}

.notice{background:#fff8e8;border:1px solid #ffe2a8;border-radius:14px;padding:16px;color:#7a5516}
.empty-state{border:1px dashed var(--tfd-border);border-radius:18px;padding:28px;color:var(--tfd-muted);background:#fff}

@media (max-width:1100px){
  .destination-grid,.quick-grid{grid-template-columns:repeat(3,1fr)}
  .post-grid{grid-template-columns:repeat(2,1fr)}
  .primary-nav{display:none}
  .menu-toggle{display:inline-grid;place-items:center}
}
@media (max-width:820px){
  .header-actions .btn{display:none}
  .content-with-aside{grid-template-columns:1fr}
  .ai-box{position:static}
  .footer-grid{grid-template-columns:1fr 1fr}
  .hero{min-height:520px}
  .hero-inner{padding:70px 0}
}
@media (max-width:620px){
  .header-inner{height:68px}
  .site-tagline{display:none}
  .destination-grid,.quick-grid,.post-grid{grid-template-columns:1fr}
  .destination-card{min-height:220px}
  .hero-search{border-radius:18px;flex-direction:column}
  .hero-search input{min-height:46px}
  .hero-search .btn{width:100%}
  .section{padding:44px 0}
  .section-head{align-items:flex-start;flex-direction:column}
  .footer-grid{grid-template-columns:1fr}
}
