/*
Theme Name: Eco Hawaii Travel
Theme URI: https://example.com/eco-hawaii-travel
Author: Eco Hawaii Travel
Description: A calm, nature-forward WordPress theme for sustainable Hawaii travel, wildlife respect, local culture, and responsible tourism.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: eco-hawaii-travel
*/

:root {
  --eht-pacific: #174A4A;
  --eht-rainforest: #416A4A;
  --eht-sand: #F4EFE3;
  --eht-charcoal: #313B37;
  --eht-clay: #C47E5A;
  --eht-white: #ffffff;
  --eht-mist: #E8F0ED;
  --eht-border: #D8DED9;
  --eht-radius: 22px;
  --eht-shadow: 0 16px 40px rgba(23, 74, 74, .10);
  --eht-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--eht-charcoal);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--eht-pacific); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--eht-clay); }

.eht-container { width: min(calc(100% - 32px), var(--eht-max)); margin-inline: auto; }
.eht-narrow { width: min(calc(100% - 32px), 780px); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(49,59,55,.08);
}
.admin-bar .site-header { top: 32px; }
.eht-header-inner {
  width: min(calc(100% - 40px), 1500px);
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 14px; min-width: 235px; flex: 0 0 auto; }
.custom-logo-link img { max-height: 54px; width: auto; display: block; }
.site-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1.1; }
.site-title a { color: var(--eht-pacific); text-decoration: none; }
.site-tagline { margin: 4px 0 0; color: #65746d; font-size: .78rem; }

.eht-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.eht-nav ul { list-style: none; margin: 0; padding: 0; }
.eht-nav > ul { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
.eht-nav li { position: relative; }
.eht-nav > ul > li > a { white-space: nowrap; }
.eht-nav a { display: block; padding: 10px 11px; text-decoration: none; font-weight: 700; font-size: .91rem; line-height: 1.25; color: var(--eht-charcoal); border-radius: 999px; }
.eht-nav a:hover,
.eht-nav a:focus-visible,
.eht-nav .current-menu-item > a,
.eht-nav .current-menu-ancestor > a { background: var(--eht-mist); color: var(--eht-pacific); }

/* Desktop dropdown menus */
.eht-nav .sub-menu {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 10px);
  left: 0;
  min-width: 235px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--eht-border);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(23,74,74,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.eht-nav .sub-menu .sub-menu { top: -10px; left: calc(100% + 8px); }
.eht-nav .sub-menu li { width: 100%; }
.eht-nav .sub-menu a { border-radius: 10px; padding: 10px 12px; font-size: .9rem; font-weight: 650; white-space: normal; }
.eht-nav li:hover > .sub-menu,
.eht-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.eht-nav .menu-item-has-children > a::after { content: "▾"; display: inline-block; margin-left: 6px; font-size: .72em; opacity: .7; vertical-align: .08em; }
.eht-nav .sub-menu .menu-item-has-children > a::after { content: "›"; float: right; margin-left: 12px; }
.eht-submenu-toggle { display: none; }

.eht-menu-toggle { display: none; border: 0; border-radius: 999px; background: var(--eht-pacific); color: #fff; padding: 10px 14px; font-weight: 800; cursor: pointer; }

.eht-hero {
  min-height: 74vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(23,74,74,.88) 0%, rgba(23,74,74,.72) 48%, rgba(23,74,74,.40) 100%),
    radial-gradient(circle at 80% 20%, rgba(196,126,90,.45), transparent 32%),
    linear-gradient(135deg, #0e3d3d, #5f8b6f 60%, #b9c9a6);
}
.eht-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% 35%;
  height: 60%;
  background: rgba(255,255,255,.08);
  border-radius: 50% 50% 0 0;
  transform: rotate(-8deg);
}
.eht-hero-content { position: relative; z-index: 2; padding: 96px 0; max-width: 780px; }
.eht-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: .78rem; color: #d7e7dd; margin-bottom: 16px; }
.eht-hero h1, .eht-page-hero h1, .entry-title { font-family: Georgia, "Times New Roman", serif; }
.eht-hero h1 { font-size: clamp(3rem, 7vw, 6.4rem); line-height: .98; margin: 0 0 22px; letter-spacing: -.03em; }
.eht-hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 680px; color: rgba(255,255,255,.92); }
.eht-button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.eht-button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 999px; font-weight: 800; text-decoration: none; transition: .2s ease; }
.eht-button-primary { background: var(--eht-clay); color: #fff; }
.eht-button-primary:hover { color:#fff; transform: translateY(-1px); filter: brightness(.96); }
.eht-button-secondary { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.42); color:#fff; }
.eht-button-secondary:hover { background:#fff; color:var(--eht-pacific); }

.eht-section { padding: 88px 0; }
.eht-section-alt { background: var(--eht-sand); }
.eht-section-dark { background: var(--eht-pacific); color: #fff; }
.eht-section-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:34px; }
.eht-kicker { color: var(--eht-clay); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; }
.eht-section h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem,4vw,3.6rem); line-height:1.05; margin: 6px 0 0; letter-spacing:-.02em; }
.eht-section-intro { max-width: 720px; color: #627069; font-size:1.06rem; }
.eht-section-dark .eht-section-intro { color: rgba(255,255,255,.76); }

.eht-grid { display:grid; gap:22px; }
.eht-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.eht-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.eht-card {
  background:#fff;
  border:1px solid rgba(49,59,55,.08);
  border-radius: var(--eht-radius);
  overflow:hidden;
  box-shadow: var(--eht-shadow);
}
.eht-card-body { padding: 24px; }
.eht-card h3 { margin:0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size:1.5rem; }
.eht-card p { margin:0; color:#64736d; }
.eht-card-link { display:inline-flex; margin-top:16px; font-weight:800; text-decoration:none; }
.eht-icon { width:46px; height:46px; border-radius:14px; display:grid; place-items:center; background:var(--eht-mist); color:var(--eht-pacific); font-size:1.3rem; margin-bottom:18px; }

.eht-island-card { min-height: 340px; position: relative; background: linear-gradient(150deg, #416A4A, #174A4A); color:#fff; display:flex; align-items:end; }
.eht-island-card::before { content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(18,49,47,.85), rgba(18,49,47,.08)); }
.eht-island-card .eht-card-body { position:relative; z-index:2; }
.eht-island-card p { color: rgba(255,255,255,.76); }
.eht-island-card a { color:#fff; }

.eht-callout { padding: 34px; border-radius: 28px; background: var(--eht-mist); border:1px solid #d3e0da; }
.eht-callout h3 { font-family: Georgia, "Times New Roman", serif; font-size:1.8rem; margin-top:0; }

.eht-post-card .post-thumbnail { display:block; aspect-ratio: 16/10; overflow:hidden; background:#dfe8e2; }
.eht-post-card .post-thumbnail img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.eht-post-card:hover .post-thumbnail img { transform:scale(1.035); }
.eht-meta { font-size:.82rem; color:#7a867f; margin-bottom:8px; }

.eht-page-hero { padding: 78px 0 58px; background: var(--eht-sand); border-bottom:1px solid #e6dfd1; }
.eht-page-hero h1 { font-size:clamp(2.5rem,6vw,5rem); line-height:1; margin:0; }
.eht-page-hero p { max-width:700px; font-size:1.1rem; color:#68736d; }
.entry-content { font-size:1.08rem; }
.entry-content > * { max-width:780px; margin-left:auto; margin-right:auto; }
.entry-content > .alignwide { max-width:1180px; }
.entry-content > .alignfull { max-width:none; }
.entry-content h2, .entry-content h3 { font-family:Georgia,"Times New Roman",serif; color:var(--eht-pacific); }
.entry-content blockquote { border-left:4px solid var(--eht-clay); margin-block:2rem; padding:10px 22px; background:var(--eht-sand); border-radius:0 16px 16px 0; }

.site-footer { background:#173d3d; color:rgba(255,255,255,.80); padding:58px 0 28px; }
.site-footer a { color:#fff; }
.eht-footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; }
.eht-footer-title { color:#fff; font-family:Georgia,"Times New Roman",serif; font-size:1.6rem; margin:0 0 10px; }
.eht-footer-nav ul { list-style:none; padding:0; margin:0; }
.eht-footer-nav li { margin-bottom:8px; }
.eht-footer-bottom { margin-top:40px; padding-top:22px; border-top:1px solid rgba(255,255,255,.13); font-size:.86rem; display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }

.screen-reader-text { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.screen-reader-text:focus { clip:auto!important; width:auto!important; height:auto!important; margin:0!important; padding:14px 18px!important; background:#fff; color:#000; z-index:100000; }

@media (max-width: 1080px) {
  .admin-bar .site-header { top:32px; }
  .eht-menu-toggle { display:inline-flex; }
  .eht-nav { position:absolute; left:20px; right:20px; top:calc(100% + 8px); display:none; background:#fff; border:1px solid var(--eht-border); border-radius:18px; box-shadow:var(--eht-shadow); padding:10px; max-height:calc(100vh - 120px); overflow:auto; }
  .eht-nav.is-open { display:block; }
  .eht-nav > ul { display:flex; flex-direction:column; align-items:stretch; gap:2px; width:100%; }
  .eht-nav li { width:100%; }
  .eht-nav > ul > li > a { white-space:normal; }
  .eht-nav a { padding:12px 14px; border-radius:10px; }

  .eht-nav .menu-item-has-children { padding-right:42px; }
  .eht-nav .menu-item-has-children > a::after { display:none; }
  .eht-nav .sub-menu,
  .eht-nav .sub-menu .sub-menu {
    position:static;
    min-width:0;
    margin:2px 0 6px 10px;
    padding:4px 0 4px 10px;
    border:0;
    border-left:2px solid var(--eht-mist);
    border-radius:0;
    box-shadow:none;
    opacity:1;
    visibility:visible;
    transform:none;
    display:none;
  }
  .eht-nav li.submenu-open > .sub-menu { display:block; }
  .eht-nav .sub-menu a { padding:9px 12px; font-size:.9rem; }
  .eht-submenu-toggle {
    display:grid;
    place-items:center;
    position:absolute;
    right:4px;
    top:5px;
    width:36px;
    height:36px;
    border:0;
    border-radius:10px;
    background:var(--eht-mist);
    color:var(--eht-pacific);
    cursor:pointer;
    font-size:1rem;
    font-weight:800;
  }
  .eht-submenu-toggle::before { content:"+"; }
  .submenu-open > .eht-submenu-toggle::before { content:"−"; }
  .eht-grid-3 { grid-template-columns:1fr 1fr; }
  .eht-footer-grid { grid-template-columns:1fr 1fr; }
  .eht-footer-grid > :first-child { grid-column:1/-1; }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top:46px; }
}
@media (max-width: 640px) {
  .eht-header-inner { min-height:72px; }
  .site-tagline { display:none; }
  .eht-hero { min-height:70vh; }
  .eht-hero-content { padding:76px 0; }
  .eht-section { padding:64px 0; }
  .eht-grid-3, .eht-grid-2, .eht-footer-grid { grid-template-columns:1fr; }
  .eht-footer-grid > :first-child { grid-column:auto; }
  .eht-section-head { display:block; }
}
