*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:#183124;
  background:#f4f8f4;
  line-height:1.65;
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  max-width:100%;
  display:block;
}

button,
input,
textarea,
select{
  font:inherit;
}

.container{
  width:min(1180px,92%);
  margin:0 auto;
}

/* =========================
HEADER
========================= */

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(12px);
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(24,49,36,.08);
}

.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:14px 0;
  position:relative;
}

.logo-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
  min-width:max-content;
}

.site-title{
  display:block;
  font-size:22px;
  font-weight:800;
  line-height:1.05;
  letter-spacing:.2px;
  color:#183124;
}

.site-tagline{
  display:block;
  color:#5d7265;
  font-size:12px;
  margin-top:3px;
}

.main-nav{
  display:flex;
  align-items:center;
  gap:26px;
}

.main-nav a{
  color:#355844;
  font-weight:700;
  font-size:15px;
  position:relative;
  padding:6px 0;
}

.main-nav a.active,
.main-nav a:hover{
  color:#1d412d;
}

.main-nav a.active::after,
.main-nav a:hover::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:100%;
  height:2px;
  border-radius:999px;
  background:#24593f;
}

.menu-toggle{
  display:none;
  border:none;
  background:#24593f;
  color:#fff;
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(36,89,63,.18);
}

/* =========================
HERO
========================= */

.hero{
  min-height:78vh;
  display:flex;
  align-items:center;
  background-size:cover;
  background-position:center;
  color:#fff;
  position:relative;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(11,31,22,.18),rgba(11,31,22,.04));
  pointer-events:none;
}

.hero-inner{
  position:relative;
  z-index:1;
  padding:64px 0 72px;
}

.hero-content{
  max-width:700px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  border-radius:30px;
  padding:34px 30px;
  backdrop-filter:blur(10px);
  box-shadow:0 20px 60px rgba(0,0,0,.14);
}

.eyebrow{
  display:inline-block;
  margin-bottom:10px;
  padding:8px 14px;
  background:rgba(255,255,255,.16);
  color:inherit;
  border-radius:999px;
  font-size:13px;
  letter-spacing:.3px;
}

.hero h1,
.page-hero h1{
  font-size:clamp(32px,4.4vw,58px);
  line-height:1.08;
  margin:0 0 16px;
}

.hero p,
.page-hero p{
  font-size:17px;
  max-width:720px;
  margin:0;
}

.search-box{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}

.search-box input{
  flex:1 1 280px;
  min-height:54px;
  padding:15px 16px;
  border:none;
  border-radius:16px;
  outline:none;
  background:rgba(255,255,255,.96);
}

.search-box button,
.btn-primary,
button[type="submit"]{
  border:none;
  background:linear-gradient(135deg,#24593f,#4b8c5e);
  color:#fff;
  padding:14px 20px;
  border-radius:16px;
  cursor:pointer;
  font-weight:700;
  box-shadow:0 10px 25px rgba(36,89,63,.18);
  transition:transform .2s ease, box-shadow .2s ease;
}

.search-box button:hover,
.btn-primary:hover,
button[type="submit"]:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(36,89,63,.22);
}

.btn-primary.full{
  display:block;
  text-align:center;
}

/* =========================
PAGE HERO
========================= */

.page-hero{
  background:linear-gradient(180deg,#edf6ef,#f4f8f4);
  padding:60px 0 26px;
}

.page-hero.small h1{
  font-size:clamp(28px,4vw,42px);
}

/* =========================
SECTIONS
========================= */

.section{
  padding:64px 0;
  position:relative;
}

.section-muted{
  background:#eef4ef;
}

.home-section{
  border-top:1px solid #e4ebe5;
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:30px;
}

.section-head h2{
  margin:0;
  font-size:clamp(24px,3vw,32px);
  line-height:1.2;
}

.section-title{
  margin:0;
  font-size:clamp(26px,3.2vw,36px);
  line-height:1.2;
  color:#183124;
  letter-spacing:.2px;
}

.section-divider{
  width:82px;
  height:4px;
  margin:14px 0 0;
  border-radius:999px;
  background:linear-gradient(90deg,#24593f,#6da57b);
  box-shadow:0 6px 16px rgba(36,89,63,.18);
}

.text-link{
  font-weight:700;
  color:#24593f;
  white-space:nowrap;
}

.text-link:hover{
  color:#183124;
}

.intro-box,
.trust-box,
.info-card,
.contact-card,
.search-card{
  background:#fff;
  border-radius:24px;
  padding:28px;
  box-shadow:0 14px 34px rgba(20,54,36,.07);
  border:1px solid rgba(36,89,63,.06);
}

.intro-box{
  max-width:100%;
}

.intro-box h2,
.trust-box h2,
.info-card h2,
.contact-card h2,
.search-card h2{
  margin:6px 0 16px;
  font-size:clamp(22px,2.6vw,30px);
  line-height:1.3;
}

.intro-box p:last-child,
.trust-box p:last-child,
.info-card p:last-child,
.contact-card p:last-child,
.search-card p:last-child{
  margin-bottom:0;
}

.info-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}

/* =========================
CARDS
========================= */

.card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

.card{
  background:#fff;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 14px 34px rgba(20,54,36,.08);
  transition:transform .25s ease, box-shadow .25s ease;
  border:1px solid rgba(36,89,63,.08);
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 48px rgba(20,54,36,.12);
}

.card img{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
}

.card-body{
  padding:18px;
}

.card-body h2,
.card-body h3{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.35;
  color:#183124;
}

.card-body p{
  margin:0;
  color:#537061;
  font-size:15px;
}

.meta-row{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

/* =========================
DETAIL
========================= */

.detail-layout{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(300px,.8fr);
  gap:28px;
}

.detail-cover{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:28px;
  margin-bottom:20px;
}

.detail-main h1{
  font-size:clamp(30px,4vw,44px);
  margin:0 0 12px;
}

.detail-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:16px;
  color:#50705f;
  font-weight:600;
}

.detail-content{
  font-size:18px;
  color:#2c4d3b;
  white-space:pre-line;
}

.sticky-box{
  background:#fff;
  padding:22px;
  border-radius:22px;
  box-shadow:0 14px 36px rgba(20,54,36,.07);
  margin-bottom:18px;
  position:sticky;
  top:95px;
  border:1px solid rgba(36,89,63,.06);
}

.sticky-box h3{
  margin-top:0;
}

.info-list{
  list-style:none;
  padding:0;
  margin:0 0 16px;
}

.info-list li{
  padding:10px 0;
  border-bottom:1px solid #edf2ed;
}

.mini-link{
  display:block;
  padding:10px 0;
  color:#24593f;
  font-weight:700;
  border-bottom:1px solid #edf2ed;
  transition:padding-left .2s ease,color .2s ease;
}

.mini-link:hover{
  padding-left:6px;
  color:#183124;
}

/* =========================
FORM / COMMENT / RATING
========================= */

.rating-box,
.comment-box{
  margin-top:28px;
  background:#fff;
  padding:24px;
  border-radius:24px;
  box-shadow:0 14px 36px rgba(20,54,36,.07);
  border:1px solid rgba(36,89,63,.06);
}

.inline-form,
.comment-form,
.admin-form{
  display:grid;
  gap:14px;
}

.inline-form{
  grid-template-columns:1fr 1fr auto;
  align-items:center;
}

input,
textarea,
select{
  width:100%;
  padding:14px 16px;
  border:1px solid #d8e4db;
  border-radius:16px;
  background:#fff;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus,
select:focus{
  border-color:#7bb17a;
  box-shadow:0 0 0 4px rgba(123,177,122,.15);
}

textarea{
  resize:vertical;
  min-height:120px;
}

.comment-list{
  margin-top:20px;
  display:grid;
  gap:14px;
}

.comment-item{
  border:1px solid #e4eee7;
  border-radius:18px;
  padding:16px;
  background:#fcfefd;
}

.comment-item h3{
  margin:0 0 6px;
}

/* =========================
CONTACT / SEARCH
========================= */

.contact-grid,
.search-wrap{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}

.search-wrap{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.search-card h2,
.contact-card h2{
  margin-top:0;
}

/* =========================
FOOTER
========================= */

.site-footer{
  color:#fff;
  background:
    linear-gradient(rgba(14,35,25,.84),rgba(14,35,25,.90)),
    url('/public/images/default-cover.jpg') center/cover;
  padding-top:48px;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr 1fr;
  gap:28px;
}

.footer-grid h3,
.footer-grid h4{
  margin-top:0;
  margin-bottom:14px;
}

.footer-grid p,
.footer-grid li{
  font-size:15px;
  line-height:1.7;
}

.footer-links{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
}

.footer-links a{
  color:#fff;
}

.footer-bottom{
  margin-top:24px;
  padding:16px 0;
  border-top:1px solid rgba(255,255,255,.12);
}

/* =========================
LOGIN
========================= */

.login-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#edf6ef,#dceee0);
}

.login-card{
  width:min(460px,92vw);
  background:#fff;
  padding:28px;
  border-radius:26px;
  box-shadow:0 24px 60px rgba(20,54,36,.12);
}

.alert-error{
  background:#fdeaea;
  color:#962d2d;
  padding:12px 14px;
  border-radius:14px;
  margin-bottom:14px;
}

/* =========================
ADMIN
========================= */

.admin-page{
  background:#f3f7f4;
}

.admin-layout{
  display:grid;
  grid-template-columns:280px 1fr;
  min-height:100vh;
}

.admin-sidebar{
  background:#153424;
  color:#fff;
  padding:24px;
  display:grid;
  align-content:start;
  gap:12px;
}

.admin-sidebar a{
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
}

.admin-main{
  padding:28px;
}

.admin-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.stat-card,
.table-wrap{
  background:#fff;
  border-radius:22px;
  box-shadow:0 16px 40px rgba(20,54,36,.08);
}

.stat-card{
  padding:24px;
  display:grid;
  gap:8px;
}

.stat-card strong{
  font-size:34px;
}

.table-wrap{
  padding:18px;
  overflow:auto;
}

table{
  width:100%;
  border-collapse:collapse;
}

th,
td{
  padding:14px;
  border-bottom:1px solid #eef3ef;
  text-align:left;
  vertical-align:top;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.actions form{
  margin:0;
}

.checkbox-line{
  display:flex;
  align-items:center;
  gap:10px;
}

/* =========================
ANIMATION
========================= */

.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:all .6s ease;
}

.reveal.in-view{
  opacity:1;
  transform:none;
}

/* =========================
RESPONSIVE
========================= */

@media (max-width: 980px){
  .card-grid,
  .detail-layout,
  .footer-grid,
  .search-wrap,
  .contact-grid,
  .stats-grid,
  .admin-layout,
  .info-grid{
    grid-template-columns:1fr;
  }

  .sticky-box{
    position:static;
  }

  .inline-form{
    grid-template-columns:1fr;
  }

  .main-nav{
    display:none;
    position:absolute;
    top:74px;
    right:0;
    width:min(300px,92vw);
    background:#fff;
    border-radius:18px;
    box-shadow:0 20px 50px rgba(20,54,36,.12);
    padding:14px;
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
  }

  .main-nav.open{
    display:flex;
  }

  .menu-toggle{
    display:block;
  }

  .hero-inner{
    padding:52px 0 58px;
  }

  .hero-content{
    max-width:100%;
  }

  .section-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .section-divider{
    margin-top:12px;
  }
}

@media (max-width: 640px){
  .section{
    padding:48px 0;
  }

  .hero{
    min-height:auto;
  }

  .hero-inner{
    padding:38px 0 46px;
  }

  .hero-content{
    padding:22px;
    border-radius:22px;
  }

  .hero h1{
    font-size:clamp(30px,9vw,44px);
  }

  .hero p,
  .page-hero p{
    font-size:16px;
  }

  .card-body h2,
  .card-body h3{
    font-size:19px;
  }

  .detail-main h1{
    font-size:32px;
  }

  .site-title{
    font-size:18px;
  }

  .site-tagline{
    font-size:11px;
  }

  .footer-grid{
    gap:18px;
  }

  .section-title{
    font-size:28px;
  }

  .intro-box,
  .trust-box,
  .info-card,
  .contact-card,
  .search-card{
    padding:22px;
    border-radius:20px;
  }
}
