/*
Theme Name: Eveningwind Forest Farm
Theme URI: https://eveningwind.net
Author: Eveningwind Forest Farm
Description: Custom one-page theme for Eveningwind Forest Farm, a campground in Tanay, Rizal. On activation it creates an editable Home page with every section (hero, rates, rules, directions and more).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: eveningwind
*/

:root{
  --forest:#1f3326; --moss:#4f6b35; --leaf:#7d9a4c; --mist:#eef1ec; --paper:#f8f9f6;
  --bark:#5c4330; --sun:#e2ad1f; --ink:#1c2620; --muted:#55615a; --line:#d5dcd2;
  --serif:"Literata",Georgia,"Times New Roman",serif;
  --sans:"Figtree",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  box-sizing:border-box;
}
*,*::before,*::after{box-sizing:inherit}
html{scroll-behavior:smooth;scroll-padding-top:88px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1.0625rem/1.65 var(--sans);-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block;height:auto}
a{color:var(--moss)}
:focus-visible{outline:3px solid var(--sun);outline-offset:3px;border-radius:4px}
h1,h2,h3{font-family:var(--serif);font-weight:600;line-height:1.15;color:var(--forest);margin:0 0 .5em}
h2{font-size:clamp(1.75rem,4vw,2.5rem)}
h3{font-size:1.25rem}
p{margin:0 0 1em;max-width:62ch}
.wrap{width:min(1120px,100% - 2.5rem);margin-inline:auto}
section{padding:clamp(3.5rem,8vw,6rem) 0}
.skip{position:absolute;left:-999px;top:0;background:var(--forest);color:#fff;padding:.6rem 1rem;z-index:100}
.skip:focus{left:1rem;top:1rem}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font:600 1rem/1 var(--sans);text-decoration:none;padding:.95rem 1.4rem;border-radius:999px;border:2px solid transparent;cursor:pointer;transition:background .15s,color .15s}
.btn-book{background:var(--sun);color:#1f1a08}
.btn-book:hover{background:#f0bf35;color:#1f1a08}
.btn-ghost{border-color:currentColor;color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.12);color:#fff}
.btn-line{border-color:var(--forest);color:var(--forest)}
.btn-line:hover{background:var(--forest);color:#fff}

/* header */
header.top{position:sticky;top:0;z-index:50;background:rgba(248,249,246,.96);backdrop-filter:blur(8px);color:var(--ink);border-bottom:1px solid var(--line)}
.admin-bar header.top{top:32px}
@media (max-width:782px){.admin-bar header.top{top:46px}}
@media (max-width:600px){.admin-bar header.top{top:0}}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:76px}
.brand{color:var(--forest);text-decoration:none;font-family:var(--serif);font-size:1.2rem;font-weight:600;display:flex;align-items:center;gap:.55rem}
.brand img{height:62px;width:auto;flex:none}
nav.main ul{list-style:none;margin:0;padding:0;display:flex;gap:1.4rem}
nav.main a{color:var(--forest);text-decoration:none;font-size:.95rem}
nav.main a:hover{color:var(--moss);text-decoration:underline;text-underline-offset:4px}
.top .btn{padding:.65rem 1.1rem;font-size:.95rem}
@media (max-width:900px){nav.main{display:none}}

/* hero */
.hero{position:relative;min-height:min(88vh,760px);display:grid;align-items:end;color:#fff;padding:0;overflow:hidden;background:var(--forest)}
.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:62% 50%}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,32,24,.18) 0%,rgba(20,32,24,.42) 45%,rgba(20,32,24,.86) 100%)}
.hero .wrap{position:relative;z-index:1;padding:6rem 0 clamp(3rem,7vw,5rem)}
.hero h1{color:#fff;font-size:clamp(2.6rem,7.5vw,5.25rem);max-width:12ch;margin-bottom:.35em;letter-spacing:-.01em}
.hero p{font-size:clamp(1.05rem,2vw,1.25rem);max-width:44ch;color:#eef2ea}
.hero .actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.6rem}
.hero .where{margin-top:2rem;font-size:.92rem;color:#d6dfd2}

/* intro + highlights */
.intro-grid{display:grid;gap:2.5rem;grid-template-columns:1fr}
@media (min-width:860px){.intro-grid{grid-template-columns:1.1fr 1fr;align-items:center;gap:4rem}}
.intro .lead{font-family:var(--serif);font-size:clamp(1.3rem,2.6vw,1.6rem);line-height:1.45;color:var(--forest);max-width:30ch}
.intro figure{margin:0;border-radius:18px;overflow:hidden}
.intro figure img{aspect-ratio:4/3;object-fit:cover;object-position:50% 55%;width:100%}
.highlights{list-style:none;padding:0;margin:3.5rem 0 0;display:grid;gap:2rem 2.5rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.highlights li{border-top:2px solid var(--leaf);padding-top:1rem}
.highlights h3{margin-bottom:.35em}
.highlights p{color:var(--muted);font-size:1rem;margin:0}

/* gallery */
.gallery{background:var(--forest);color:#e7ede3}
.gallery h2{color:#fff}
.gallery .head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:1rem 2rem;margin-bottom:2rem}
.gallery .head p{margin:0;color:#c9d4c4}
.grid{display:grid;gap:.6rem;grid-template-columns:repeat(2,1fr)}
@media (min-width:760px){.grid{grid-template-columns:repeat(3,1fr);grid-auto-rows:220px}.grid .tall{grid-row:span 2}.grid .wide{grid-column:span 2}.grid .full{grid-column:1/-1}}
@media (max-width:759px){.grid .full{grid-column:1/-1}}
.grid figure{margin:0;overflow:hidden;border-radius:10px;background:#2a4231}
.grid img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}
@media (min-width:760px){.grid img{aspect-ratio:auto}}
.gallery .more{margin-top:1.8rem;display:flex;flex-wrap:wrap;gap:.8rem}
.gallery .btn-line{border-color:#e7ede3;color:#e7ede3}
.gallery .btn-line:hover{background:#e7ede3;color:var(--forest)}

/* team */
.team .head{max-width:60ch;margin-bottom:2.25rem}
.team .head p{color:var(--muted);margin:0}
.team-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:1.5rem 1.25rem}
.team-list li{flex:0 1 calc(50% - .625rem);text-align:center}
@media (min-width:760px){.team-list li{flex:0 1 calc(20% - 1rem)}}
.team-list img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:16px;border:1px solid var(--line);background:var(--mist)}
.team-list h3{margin:.8rem 0 .1rem;font-size:1.15rem}
.team-list p{margin:0 auto;color:var(--muted);font-size:.9rem;line-height:1.35}
.team .cta-row{margin-top:2.25rem;display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;justify-content:center}

/* rates */
.rates{background:var(--mist)}
.rates-grid{display:grid;gap:2rem;grid-template-columns:1fr}
@media (min-width:900px){.rates-grid{grid-template-columns:1.25fr 1fr;gap:3rem}}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:clamp(1.25rem,3vw,2rem)}
.times{display:inline-block;background:#f6ecc8;color:#4a3a06;font-size:.9rem;font-weight:500;padding:.3rem .7rem;border-radius:6px;margin-bottom:1rem}
table.price{width:100%;border-collapse:collapse;font-size:1rem}
.price th,.price td{text-align:left;padding:.8rem 0;border-bottom:1px solid var(--line);vertical-align:top}
.price td{text-align:right;font-family:var(--serif);font-weight:600;font-size:1.1rem;color:var(--forest);white-space:nowrap;padding-left:1rem}
.price th{font-weight:500}
.price th span{display:block;font-weight:400;font-size:.88rem;color:var(--muted);margin-top:.15rem}
.price tr:last-child th,.price tr:last-child td{border-bottom:0}
.note{font-size:.92rem;color:var(--muted);margin-top:1rem}
.stack{display:grid;gap:1.25rem}
.stack .card h3{margin-bottom:.3em}
.incl{margin:.2rem 0 0;padding-left:1.1rem;font-size:.97rem}
.incl li{margin-bottom:.2rem}
.incl li::marker{color:var(--leaf)}
.rates .cta-row{margin-top:2rem;display:flex;flex-wrap:wrap;gap:.8rem;align-items:center}
.rates .cta-row p{margin:0;color:var(--muted);font-size:.95rem}

/* rules */
.rules-grid{display:grid;gap:2.5rem;grid-template-columns:1fr}
@media (min-width:860px){.rules-grid{grid-template-columns:1.5fr 1fr;gap:4rem;align-items:start}}
.rules ul{padding-left:1.1rem;margin:0}
.rules li{margin-bottom:.55rem;padding-left:.2rem}
.rules li::marker{color:var(--leaf)}
.rules ol.house{padding-left:1.4rem;margin:0}
.rules ol.house li{margin-bottom:.75rem;padding-left:.3rem}
.rules ol.house li::marker{color:var(--moss);font-weight:700}
.rules .rules-intro{color:var(--muted);margin-bottom:1.25rem}
.rules .quiet{font-family:var(--serif);font-size:1.35rem;color:var(--forest);margin-bottom:1.5rem;max-width:26ch}

/* feed */
.feed{background:var(--mist)}
.feed-grid{display:grid;gap:2.5rem;grid-template-columns:1fr;align-items:start}
@media (min-width:860px){.feed-grid{grid-template-columns:1fr 520px}}
.fb-frame{width:100%;max-width:520px;height:640px;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;position:relative}
.fb-frame iframe{border:0;width:100%;height:100%;position:relative;z-index:1}
.fb-frame .fallback{position:absolute;inset:0;display:grid;place-content:center;text-align:center;padding:2rem;color:var(--muted);z-index:0}

/* directions */
.dir-grid{display:grid;gap:2.5rem;grid-template-columns:1fr}
@media (min-width:860px){.dir-grid{grid-template-columns:1fr 1.2fr;gap:4rem}}
.addr{font-family:var(--serif);font-size:1.2rem;color:var(--forest);font-style:normal;margin-bottom:1.25rem}
.advisory{border-left:4px solid var(--sun);background:#fffaf0;padding:1rem 1.2rem;border-radius:0 10px 10px 0;margin:1.5rem 0}
.advisory strong{color:var(--bark)}
.map{width:100%;aspect-ratio:4/3;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--mist)}
.map iframe{width:100%;height:100%;border:0}

/* contact */
.contact{background:var(--forest);color:#e7ede3;text-align:center}
.contact h2{color:#fff}
.contact p{margin-inline:auto;color:#cfdacb}
.contact .actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.8rem;margin-top:1.75rem}
.contact .phone{font-family:var(--serif);font-size:clamp(1.5rem,4vw,2rem);color:#fff;text-decoration:none;display:inline-block;margin-top:1.5rem}

/* generic pages and posts */
.page-body{padding:clamp(3rem,7vw,5rem) 0}
.page-body .entry{max-width:760px}
.page-body .entry img{border-radius:12px}

footer.site{background:#16241b;color:#a9b8a6;font-size:.9rem;padding:2.5rem 0 calc(2.5rem + 72px)}
@media (min-width:900px){footer.site{padding-bottom:2.5rem}}
footer.site .wrap{display:flex;flex-wrap:wrap;gap:1rem 2rem;justify-content:space-between}
footer.site a{color:#dfe8db}

/* mobile action bar */
.mbar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;gap:.6rem;padding:.6rem 1rem calc(.6rem + env(safe-area-inset-bottom,0px));background:rgba(248,249,246,.97);border-top:1px solid var(--line)}
.mbar .btn{flex:1;padding:.85rem 1rem}
.mbar .btn-line{flex:0 0 auto}
@media (min-width:900px){.mbar{display:none}}

/* the editor wraps Custom HTML blocks; keep sections edge to edge */
.home-content > *{margin:0}
