/* ============================================================
   TDL.COM.MY — Travel & Lifestyle
   Design system: rainforest green / sea teal / hibiscus red
   Type: Space Grotesk (display) + Albert Sans (body)
   One stylesheet for the whole site — theme via tokens below.
   ============================================================ */

:root{
  --ink:#142519;          /* deep rainforest — headings, dark sections */
  --forest:#1b5b45;       /* primary brand green */
  --sea:#0f7c86;          /* secondary accent (links, icons) */
  --hibiscus:#de4a33;     /* CTA / highlight — Malaysia's bunga raya */
  --gold:#c2972f;         /* eyebrow labels, small accents */
  --paper:#f6f3ea;        /* page background */
  --card:#ffffff;
  --text:#26352c;
  --muted:#5d6b61;
  --line:rgba(20,37,25,.14);
  --shadow:0 24px 60px -24px rgba(20,37,25,.35);
  --radius:18px;
  --wrap:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{
  margin:0;
  font-family:"Albert Sans",system-ui,sans-serif;
  font-weight:400;
  color:var(--text);
  background:var(--paper);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:var(--sea)}
a:focus-visible,button:focus-visible{outline:3px solid var(--sea);outline-offset:3px;border-radius:4px}

h1,h2,h3,h4{
  font-family:"Space Grotesk",system-ui,sans-serif;
  font-weight:700;
  color:var(--ink);
  line-height:1.1;
  letter-spacing:-.02em;
  margin:0 0 .5em;
}
h1{font-size:clamp(2.4rem,6vw,4.4rem)}
h2{font-size:clamp(1.7rem,3.4vw,2.5rem)}
h3{font-size:1.25rem}
p{margin:0 0 1em}
.lead{font-size:1.15rem;color:var(--muted);max-width:46ch}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.section{padding:92px 0}
.section.tight{padding:64px 0}

.eyebrow{
  display:inline-block;
  font-size:.74rem;font-weight:600;
  letter-spacing:.22em;text-transform:uppercase;
  color:var(--gold);
  margin-bottom:14px;
}
.eyebrow::before{content:"";display:inline-block;width:26px;height:2px;background:var(--gold);vertical-align:middle;margin-right:10px}

em.accent{font-style:normal;color:var(--hibiscus);font-weight:700}

/* ---------- Buttons ---------- */
.btn{display:inline-block;padding:14px 28px;border-radius:999px;font-weight:600;font-size:.95rem;
  text-decoration:none;border:1.5px solid transparent;cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease}
.btn-primary{background:var(--hibiscus);color:#fff}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 30px -12px rgba(222,74,51,.55)}
.btn-ghost{border-color:var(--ink);color:var(--ink);background:transparent}
.btn-ghost:hover{background:var(--ink);color:var(--paper)}
.btn-light{border-color:rgba(255,255,255,.6);color:#fff;background:transparent}
.btn-light:hover{background:#fff;color:var(--ink)}

/* ---------- Header ---------- */
#hdr{position:sticky;top:0;z-index:60;background:var(--paper);
  border-bottom:1px solid transparent;transition:border-color .25s, box-shadow .25s}
#hdr.scrolled{border-bottom-color:var(--line);box-shadow:0 8px 24px -18px rgba(20,37,25,.35)}
.nav{display:flex;align-items:center;justify-content:space-between;height:74px}
.logo{font-family:"Space Grotesk",system-ui,sans-serif;font-weight:700;font-size:1.5rem;color:var(--ink);text-decoration:none;letter-spacing:-.02em}
.logo span{color:var(--hibiscus)}
.nav-links{display:flex;align-items:center;gap:22px}
.nav-links a{color:var(--ink);text-decoration:none;font-size:.95rem;font-weight:500;padding:6px 0;
  border-bottom:2px solid transparent;transition:border-color .2s}
.nav-links a:hover,.nav-links a[aria-current="page"]{border-bottom-color:var(--hibiscus)}
.nav-links a.nav-cta{background:var(--ink);color:var(--paper);padding:10px 22px;border-radius:999px;border:none}
.nav-links a.nav-cta:hover{background:var(--forest)}
.burger{display:none;background:none;border:0;cursor:pointer;padding:10px}
.burger span{display:block;width:24px;height:2px;background:var(--ink);margin:5px 0;transition:.25s}

/* ---------- Hero slideshow (full-width masthead) ---------- */
.hero-slideshow{position:relative;min-height:clamp(520px,72vh,720px);overflow:hidden;
  background:linear-gradient(135deg,var(--forest),var(--sea));display:flex}
.hero-slideshow .slide{position:absolute;inset:0;background-size:cover;background-position:center;
  opacity:0;transition:opacity 1.1s ease;will-change:opacity}
.hero-slideshow .slide.is-active{opacity:1}
/* dark gradient so text stays readable over any photo */
.hero-slideshow::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(10,20,14,.78) 0%,rgba(10,20,14,.55) 42%,rgba(10,20,14,.15) 100%)}
.hero-overlay{position:relative;z-index:2;width:100%;align-self:center;padding:60px 0}
.hero-slideshow .meta{display:flex;gap:18px;flex-wrap:wrap;font-size:.78rem;letter-spacing:.18em;
  text-transform:uppercase;color:rgba(255,255,255,.8);margin-bottom:24px}
.hero-slideshow .meta b{color:#fff;font-weight:600}
.hero-slideshow h1{max-width:15ch;color:#fff}
.hero-slideshow .lead{margin:22px 0 32px;color:rgba(255,255,255,.9);max-width:48ch}
.hero-slideshow .cta-row{display:flex;gap:14px;flex-wrap:wrap}
.slide-dots{position:absolute;left:0;right:0;bottom:24px;display:flex;gap:10px;justify-content:center;z-index:3}
.slide-dots button{width:10px;height:10px;border-radius:50%;border:0;cursor:pointer;padding:0;
  background:rgba(255,255,255,.5);transition:background .2s,transform .2s}
.slide-dots button.active{background:#fff;transform:scale(1.3)}
.hero-ticker-wrap{overflow:hidden}

/* destination ticker — the signature strip */
.ticker{background:var(--forest);color:#f2eddd;overflow:hidden;white-space:nowrap;
  border-top:1px solid rgba(255,255,255,.15)}
.ticker-track{display:inline-block;padding:14px 0;font-size:.85rem;letter-spacing:.2em;
  text-transform:uppercase;animation:ticker 38s linear infinite}
.ticker-track span{margin:0 26px}
.ticker-track .dot{color:var(--gold)}
@keyframes ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
  .ticker-track{animation:none}
  .fade-up{opacity:1!important;transform:none!important}
  html{scroll-behavior:auto}
}

/* batik-inspired wave divider */
.wave{display:block;width:100%;height:54px;color:var(--forest)}
.wave.flip{transform:scaleY(-1)}

/* ---------- Cards & grids ---------- */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:30px;transition:transform .25s ease, box-shadow .25s ease}
.card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.card .icon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;
  background:rgba(15,124,134,.1);color:var(--sea);margin-bottom:18px;font-size:1.3rem}
.card .icon-img{width:64px;height:64px;border-radius:14px;margin-bottom:18px;object-fit:cover;
  display:block;box-shadow:0 8px 20px -10px rgba(20,37,25,.5)}
/* full-width image header inside a card */
.card.has-photo{padding:0;overflow:hidden}
.card.has-photo .card-photo{display:block;width:100%;height:200px;object-fit:cover}
.card.has-photo .card-body{padding:28px 30px 30px}
.card h3 a{color:var(--ink);text-decoration:none}
.card h3 a:hover{color:var(--hibiscus)}
.card .more{font-weight:600;font-size:.9rem;text-decoration:none;color:var(--hibiscus)}

/* story cards (blog) */
.story{display:flex;flex-direction:column;overflow:hidden;padding:0}
.story .thumb{height:190px;background:linear-gradient(135deg,var(--forest),var(--sea));position:relative;
  background-size:cover;background-position:center}
.story .thumb.alt{background:linear-gradient(135deg,var(--sea),var(--gold))}
.story .thumb.alt2{background:linear-gradient(135deg,var(--hibiscus),var(--gold))}
.story .thumb .tag{position:absolute;left:16px;bottom:14px;background:rgba(20,37,25,.75);color:#fff;
  font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;padding:6px 12px;border-radius:999px}
.story .body{padding:24px 26px 28px}
.story .date{font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}

/* split section */
.split{display:grid;grid-template-columns:1.05fr .95fr;gap:60px;align-items:center}
.split .visual{border-radius:var(--radius);min-height:380px;box-shadow:var(--shadow);
  background:
    radial-gradient(circle at 75% 20%, rgba(194,151,47,.5), transparent 45%),
    radial-gradient(circle at 20% 85%, rgba(15,124,134,.55), transparent 50%),
    linear-gradient(160deg,var(--forest),var(--ink));}

/* dark band */
.band{background:var(--ink);color:#e8e4d6}
.band h2{color:#fff}
.band .lead{color:rgba(232,228,214,.75)}

/* stats / trust bar */
.trust{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;text-align:left}
.trust .item{border-left:3px solid var(--gold);padding-left:20px}
.trust .item b{display:block;font-family:"Space Grotesk",system-ui,sans-serif;font-size:1.4rem;color:var(--ink)}

/* page hero (interior) */
.page-hero{padding:84px 0 64px;background:linear-gradient(180deg,rgba(27,91,69,.08),transparent)}
.page-hero.with-image{position:relative;color:#fff;background:var(--ink);overflow:hidden}
.page-hero.with-image::before{content:"";position:absolute;inset:0;
  background-size:cover;background-position:center;opacity:.5}
.page-hero.with-image > .wrap{position:relative}
.page-hero.with-image h1{color:#fff}
.page-hero.with-image .lead{color:rgba(255,255,255,.85)}
.page-hero.with-image .crumb,.page-hero.with-image .crumb a{color:rgba(255,255,255,.7)}
.page-hero .crumb{font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:16px}
.page-hero .crumb a{color:var(--muted);text-decoration:none}
.page-hero .crumb a:hover{color:var(--hibiscus)}

/* prose (legal/long text) */
.prose{max-width:820px}
.prose h2{margin-top:1.6em}

/* explore gallery */
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.gtile{position:relative;height:240px;margin:0;border-radius:var(--radius);overflow:hidden;
  background-size:cover;background-position:center;box-shadow:var(--shadow);
  transition:transform .25s ease}
.gtile:hover{transform:translateY(-5px)}
.gtile figcaption{position:absolute;left:14px;bottom:12px;color:#fff;font-family:"Space Grotesk",sans-serif;
  font-weight:600;font-size:1rem;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.gtile::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 45%,rgba(20,37,25,.55))}
@media (max-width:860px){.gallery{grid-template-columns:repeat(2,1fr)}}
@media (max-width:460px){.gallery{grid-template-columns:1fr 1fr;gap:10px}.gtile{height:150px}}

/* resource link list (rows) */
.reslist{display:flex;flex-direction:column;gap:16px;margin-top:36px}
.resrow{display:grid;grid-template-columns:auto 1fr auto;gap:24px;align-items:center;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:24px 28px;transition:transform .2s ease, box-shadow .2s ease}
.resrow:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.resrow .num{font-family:"Space Grotesk",sans-serif;font-weight:700;font-size:1.5rem;
  color:var(--gold);line-height:1;min-width:42px}
.resrow .info h3{margin:0 0 4px;font-size:1.15rem}
.resrow .info p{margin:0;color:var(--muted);font-size:.95rem}
.resrow .info .url{font-size:.82rem;color:var(--sea);word-break:break-all}
.resrow .go{white-space:nowrap}
@media (max-width:680px){
  .resrow{grid-template-columns:auto 1fr;gap:8px 18px}
  .resrow .go{grid-column:2;justify-self:start;margin-top:6px}
}

/* article pages */
.article-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:.8rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--muted);margin:18px 0 0}
.article-meta .cat{color:var(--hibiscus);font-weight:600}
.article-figure{border-radius:var(--radius);min-height:340px;box-shadow:var(--shadow);margin:42px 0;
  background:linear-gradient(135deg,var(--forest),var(--sea));background-size:cover;background-position:center}
.article-figure figcaption{padding-top:12px;font-size:.85rem;color:var(--muted)}
.prose blockquote{border-left:3px solid var(--gold);margin:1.6em 0;padding:.2em 0 .2em 22px;
  font-family:"Space Grotesk",system-ui,sans-serif;font-size:1.18rem;font-weight:500;color:var(--ink)}
.prose ul li{margin-bottom:.4em}

/* ---------- Forms ---------- */
.form-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:38px;box-shadow:var(--shadow)}
.field{margin-bottom:18px}
.field label{display:block;font-weight:600;font-size:.88rem;margin-bottom:6px;color:var(--ink)}
.field input,.field textarea,.field select{
  width:100%;padding:13px 16px;border:1.5px solid var(--line);border-radius:12px;
  font:inherit;background:#fff;color:var(--text)}
.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:var(--sea)}
.form-msg{display:none;padding:14px 18px;border-radius:12px;margin-top:16px;font-weight:500}
.form-msg.ok{display:block;background:rgba(27,91,69,.12);color:var(--forest)}
.form-msg.err{display:block;background:rgba(222,74,51,.12);color:var(--hibiscus)}

/* ---------- Footer ---------- */
footer{background:var(--ink);color:#cfd8cd;margin-top:0}
.foot-grid{display:grid;grid-template-columns:1.2fr 1fr 1.8fr 1.1fr;gap:44px;padding:72px 0 48px}
footer h4{color:#fff;font-family:"Albert Sans",sans-serif;font-size:.8rem;letter-spacing:.2em;
  text-transform:uppercase;margin:0 0 18px}
footer .flogo{font-family:"Space Grotesk",system-ui,sans-serif;font-size:1.6rem;color:#fff;text-decoration:none}
footer .flogo span{color:var(--hibiscus)}
footer p{font-size:.92rem;color:rgba(207,216,205,.8)}
footer ul{list-style:none;margin:0;padding:0}
footer li{margin:0}
footer a{color:#cfd8cd;text-decoration:none;font-size:.92rem;line-height:1.5}
footer a:hover{color:var(--gold)}
/* Recommended sites — two columns */
.rec-cols{columns:2;column-gap:36px;line-height:1.9}
.rec-cols li{break-inside:avoid}
.rec-cols a::after{content:"↗";font-size:.75em;margin-left:6px;color:var(--gold)}
.foot-bottom{border-top:1px solid rgba(255,255,255,.12);padding:22px 0;
  display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;font-size:.82rem;color:rgba(207,216,205,.6)}
.foot-bottom a{font-size:.82rem}

/* WhatsApp float */
.float-contact{position:fixed;right:22px;bottom:22px;z-index:70;width:54px;height:54px;border-radius:50%;
  background:var(--forest);color:#fff;display:grid;place-items:center;text-decoration:none;font-size:1.4rem;
  box-shadow:0 12px 30px -8px rgba(20,37,25,.5);transition:transform .2s}
.float-contact:hover{transform:scale(1.08)}

/* reveal on scroll */
.fade-up{opacity:0;transform:translateY(24px);transition:opacity .6s ease, transform .6s ease}
.fade-up.in{opacity:1;transform:none}

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .grid-3,.trust{grid-template-columns:repeat(2,1fr)}
  .split{grid-template-columns:1fr;gap:36px}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:680px){
  .section{padding:64px 0}
  .hero{padding-top:64px}
  .grid-3,.grid-2,.trust{grid-template-columns:1fr}
  .rec-cols{columns:2}             /* keep 2 cols even on mobile — short labels fit */
  .foot-grid{grid-template-columns:1fr;gap:34px}
  .nav-links{position:fixed;inset:74px 0 auto 0;background:var(--paper);flex-direction:column;
    align-items:flex-start;padding:26px 24px 32px;gap:18px;border-bottom:1px solid var(--line);
    transform:translateY(-130%);transition:transform .3s ease;box-shadow:var(--shadow)}
  .nav-links.open{transform:none}
  .burger{display:block}
}
@media (max-width:420px){
  .rec-cols{columns:1}
}
