/*
Theme Name: HQ Theme
Theme URI: https://athenstourshq.com
Author: AthensToursHQ
Description: Custom affiliate tour theme for AthensToursHQ.com
Version: 1.0
*/

/* ── CSS Variables ──────────────────────────────────────────────────────── */
:root {
  --blue-deep: #0b2a5c;
  --blue-mid:  #1a4a8a;
  --gold:      #c8924a;
  --gold-light:#e8b878;
  --cream:     #faf7f2;
  --text-dark: #1a1a2e;
  --text-mid:  #4a4a6a;
  --white:     #ffffff;
  --shadow:    0 4px 24px rgba(11,42,92,.12);
  --radius:    12px;
  --trans:     .3s ease;
}

/* ── Reset / Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; line-height: 1.25; }

/* ── Container ───────────────────────────────────────────────────────────── */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11,42,92,.97);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
  transition: box-shadow var(--trans);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--white);
  letter-spacing: -.5px;
}
.site-logo span { color: var(--gold); }
.main-nav ul {
  display: flex; gap: 2rem; align-items: center;
}
.main-nav a {
  color: rgba(255,255,255,.85);
  font-size: .9rem; font-weight: 500;
  transition: color var(--trans);
}
.main-nav a:hover { color: var(--gold-light); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 25px; height: 2px;
  background: var(--white);
  transition: transform var(--trans), opacity var(--trans);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media(max-width:768px){
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--blue-deep);
    max-height: 0; overflow: hidden;
    transition: max-height var(--trans);
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 1rem 5%; border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 5% 60px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('/wp-content/themes/hq-theme/images/hero-athens.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,42,92,.82) 0%, rgba(11,42,92,.6) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-badge {
  display: inline-block;
  background: var(--gold); color: var(--white);
  font-size: .75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: .4rem 1.2rem; border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--white); margin-bottom: 1.2rem;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.88);
  max-width: 580px; margin: 0 auto 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-primary {
  background: var(--gold); color: var(--white);
  padding: .85rem 2rem; border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  transition: background var(--trans), transform var(--trans);
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
  padding: .85rem 2rem; border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  transition: border-color var(--trans), transform var(--trans);
}
.btn-outline:hover { border-color: var(--gold-light); transform: translateY(-2px); }

.hero-stats {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
}
.hero-stat { color: var(--white); text-align: center; }
.hero-stat strong { display: block; font-size: 1.8rem; font-family: 'Playfair Display', serif; color: var(--gold-light); }
.hero-stat span { font-size: .85rem; opacity: .8; }

/* ── Sections ────────────────────────────────────────────────────────────── */
section { padding: 80px 0; }
.section-label {
  display: inline-block;
  color: var(--gold); font-size: .75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; color: var(--text-dark); }
.section-sub { color: var(--text-mid); max-width: 560px; }

/* ── About ───────────────────────────────────────────────────────────────── */
.about-section { background: var(--cream); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-text p { color: var(--text-mid); margin-bottom: 1rem; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 420px; object-fit: cover; }
@media(max-width:768px){
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-img img { height: 280px; }
}

/* ── Tour Cards ──────────────────────────────────────────────────────────── */
.tours-section { background: var(--white); }
.tours-header { text-align: center; margin-bottom: 50px; }
.tours-header .section-sub { margin: 0 auto; }
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.tour-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
  display: flex; flex-direction: column;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(11,42,92,.18); }
.tour-card-icon {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  padding: 2rem; text-align: center; font-size: 2.5rem;
}
.tour-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.tour-card-body h3 { font-size: 1.15rem; margin-bottom: .5rem; color: var(--text-dark); }
.tour-price { color: var(--gold); font-weight: 700; font-size: 1rem; margin-bottom: 1rem; }
.tour-card-body .btn-primary { margin-top: auto; text-align: center; display: block; }

/* ── Featured Experience ─────────────────────────────────────────────────── */
.featured-section {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
  color: var(--white);
}
.featured-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.featured-img { border-radius: var(--radius); overflow: hidden; }
.featured-img img { width: 100%; height: 420px; object-fit: cover; }
.featured-content .section-title { color: var(--white); }
.featured-content p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }
@media(max-width:768px){
  .featured-grid { grid-template-columns: 1fr; gap: 30px; }
  .featured-img img { height: 260px; }
}

/* ── Articles Grid ───────────────────────────────────────────────────────── */
.articles-section { background: var(--cream); }
.articles-header { text-align: center; margin-bottom: 40px; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.article-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--trans);
}
.article-card:hover { transform: translateY(-4px); }
.article-thumb { height: 200px; overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-body { padding: 1.5rem; }
.article-cat {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--gold); margin-bottom: .5rem;
}
.article-body h3 { font-size: 1.05rem; margin-bottom: .75rem; }
.article-body p { color: var(--text-mid); font-size: .9rem; }

/* ── Hidden Gems Teaser ──────────────────────────────────────────────────── */
.gems-section { background: var(--white); text-align: center; }
.gems-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; margin-top: 40px;
}
.gem-card {
  background: var(--cream); border-radius: var(--radius);
  padding: 1.5rem; border-left: 4px solid var(--gold);
  text-align: left;
}
.gem-card h4 { font-size: 1rem; margin-bottom: .4rem; }
.gem-card p { font-size: .88rem; color: var(--text-mid); }

/* ── Newsletter ──────────────────────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  text-align: center;
}
.newsletter-section .section-title { color: var(--white); }
.newsletter-section p { color: rgba(255,255,255,.82); margin-bottom: 2rem; }
.newsletter-form {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; max-width: 520px; margin: 0 auto;
}
.newsletter-form input {
  flex: 1; min-width: 180px;
  padding: .85rem 1.2rem; border-radius: 50px;
  border: none; font-size: .95rem;
  outline: none;
}
.newsletter-form .btn-primary { white-space: nowrap; }
#newsletter-msg { margin-top: 1rem; color: var(--gold-light); font-size: .9rem; min-height: 1.2em; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--text-dark); color: rgba(255,255,255,.75); padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700; color: var(--white);
  margin-bottom: .8rem;
}
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: .88rem; opacity: .7; }
.footer-col h4 {
  color: var(--white); font-size: .85rem;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { font-size: .88rem; opacity: .75; transition: opacity var(--trans); }
.footer-col ul a:hover { opacity: 1; color: var(--gold-light); }
.footer-contact p { font-size: .88rem; opacity: .75; margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  font-size: .8rem; opacity: .6;
}
.footer-bottom a { opacity: 1; text-decoration: underline; }
.affiliate-note {
  width: 100%; text-align: center;
  font-size: .78rem; opacity: .5;
  padding-top: 8px;
}
@media(max-width:900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:540px){ .footer-grid { grid-template-columns: 1fr; } }

/* ── Single Post ─────────────────────────────────────────────────────────── */
.post-hero {
  margin-top: 70px; position: relative;
  height: 420px; overflow: hidden;
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,42,92,.7) 0%, transparent 60%);
}
.post-hero-meta {
  position: absolute; bottom: 2rem; left: 0; right: 0;
  text-align: center; color: var(--white);
}
.post-hero-meta h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.post-hero-meta .post-meta-line { font-size: .85rem; opacity: .8; margin-top: .5rem; }

.breadcrumb {
  background: var(--cream); padding: .75rem 0;
  font-size: .82rem; color: var(--text-mid);
}
.breadcrumb a { color: var(--blue-mid); }
.breadcrumb span { margin: 0 .4rem; }

.post-layout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 50px; padding: 60px 0;
}
.post-content { min-width: 0; }
.post-content h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; color: var(--blue-deep); }
.post-content h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.post-content p { margin-bottom: 1rem; color: var(--text-mid); }
.post-content ul, .post-content ol { margin: .75rem 0 1rem 1.5rem; }
.post-content li { margin-bottom: .4rem; color: var(--text-mid); }
.post-content img { border-radius: var(--radius); margin: 1.5rem 0; }

.post-sidebar {}
.sidebar-widget {
  background: var(--cream); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.sidebar-widget h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--blue-deep); }

.disclosure-box {
  background: #fff8e7; border-left: 4px solid var(--gold);
  padding: 1rem 1.2rem; border-radius: 8px;
  font-size: .85rem; color: var(--text-mid);
  margin-bottom: 2rem;
}

.affiliate-box {
  border-radius: var(--radius); padding: 1.5rem;
  margin: 2rem 0;
}
.affiliate-box.viator { background: #f0f7e6; border-left: 5px solid #4a8a1a; }
.affiliate-box.gyg    { background: #e8f4ff; border-left: 5px solid #1a6abf; }
.affiliate-box h4 { margin-bottom: .5rem; }
.affiliate-box p { font-size: .9rem; color: var(--text-mid); margin-bottom: 1rem; }
.btn-viator {
  background: #4a8a1a; color: var(--white);
  padding: .7rem 1.5rem; border-radius: 50px;
  font-weight: 600; font-size: .9rem; display: inline-block;
  transition: background var(--trans);
}
.btn-viator:hover { background: #3a6e14; }
.btn-gyg {
  background: #ff6b00; color: var(--white);
  padding: .7rem 1.5rem; border-radius: 50px;
  font-weight: 600; font-size: .9rem; display: inline-block;
  transition: background var(--trans);
}
.btn-gyg:hover { background: #e55f00; }

/* FAQ accordion */
.faq-section { margin: 3rem 0; }
.faq-section h2 { margin-bottom: 1.5rem; }
.faq-item { border-bottom: 1px solid #e0e0e0; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1rem 0; font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-dark);
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--gold); }
.faq-question.open::after { content: '−'; }
.faq-answer { display: none; padding: .5rem 0 1rem; color: var(--text-mid); font-size: .95rem; }
.faq-answer.open { display: block; }

/* Related posts */
.related-posts { margin-top: 3rem; }
.related-posts h3 { margin-bottom: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media(max-width:640px){ .related-grid { grid-template-columns: 1fr; } }

/* ── Page / Archive ──────────────────────────────────────────────────────── */
.page-hero {
  margin-top: 70px; background: linear-gradient(135deg,var(--blue-deep),var(--blue-mid));
  padding: 60px 5%; text-align: center; color: var(--white);
}
.page-hero h1 { font-size: clamp(1.8rem,4vw,3rem); }
.archive-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
  gap: 28px; padding: 60px 0;
}

/* ── Back-to-top ─────────────────────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--gold); color: var(--white);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity var(--trans), transform var(--trans);
  border: none; cursor: pointer; z-index: 900;
}
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { transform: translateY(-3px); }

/* ── Cookie Consent ──────────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(11,42,92,.97); color: var(--white);
  padding: 1rem 5%; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
  z-index: 2000; font-size: .88rem;
  transform: translateY(100%); transition: transform .4s ease;
}
#cookie-banner.visible { transform: translateY(0); }
.cookie-btns { display: flex; gap: 10px; }
.btn-cookie-accept {
  background: var(--gold); color: var(--white);
  padding: .5rem 1.2rem; border-radius: 50px; border: none;
  cursor: pointer; font-weight: 600; font-size: .85rem;
}
.btn-cookie-decline {
  background: transparent; color: rgba(255,255,255,.7);
  padding: .5rem 1.2rem; border-radius: 50px;
  border: 1px solid rgba(255,255,255,.3);
  cursor: pointer; font-size: .85rem;
}

/* ── Reveal animation ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Inline images ───────────────────────────────────────────────────────── */
.inline-img-wrap { margin: 1.5rem 0; }
.inline-img-wrap img { border-radius: var(--radius); }
.inline-img-credit { font-size: .75rem; color: #999; margin-top: .3rem; }

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.error-404 { text-align: center; padding: 120px 5% 80px; margin-top: 70px; }
.error-404 h1 { font-size: 6rem; color: var(--blue-deep); }
.error-404 p  { color: var(--text-mid); margin: 1rem 0 2rem; }

@media(max-width:1024px){ .post-layout { grid-template-columns: 1fr; } .post-sidebar { display: none; } }
@media(max-width:768px){ section { padding: 60px 0; } }
