/*
Theme Name: Google4Hotels
Theme URI: https://google4hotels.com
Author: Google4Hotels
Description: Professional AI-powered hotel search theme with cashback rewards. Fully integrated with Smart Travel AI plugin.
Version: 1.1.2
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0+
Text Domain: google4hotels
Tags: travel, hotel, booking, one-column, custom-menu, featured-images, translation-ready
*/

/* ── Reset & Base ────────────────────────────────────────── */
:root {
  --g4h-blue:        #1a56db;
  --g4h-blue-dark:   #1e3a8a;
  --g4h-blue-light:  #dbeafe;
  --g4h-blue-50:     #eff6ff;
  --g4h-sky:         #0ea5e9;
  --g4h-white:       #ffffff;
  --g4h-gray-50:     #f8fafc;
  --g4h-gray-100:    #f1f5f9;
  --g4h-gray-200:    #e2e8f0;
  --g4h-gray-400:    #94a3b8;
  --g4h-gray-600:    #475569;
  --g4h-gray-800:    #1e293b;
  --g4h-gray-900:    #0f172a;
  --g4h-green:       #16a34a;
  --g4h-amber:       #d97706;
  --g4h-red:         #dc2626;
  --g4h-radius:      12px;
  --g4h-radius-lg:   20px;
  --g4h-shadow:      0 4px 24px rgba(0,0,0,.08);
  --g4h-shadow-lg:   0 12px 40px rgba(0,0,0,.12);
  --g4h-font:        'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --g4h-font-display:'Playfair Display', Georgia, serif;
  --g4h-max-width:   1200px;
  --g4h-transition:  all .3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--g4h-font);
  color: var(--g4h-gray-800);
  background: var(--g4h-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--g4h-blue); text-decoration: none; transition: var(--g4h-transition); }
a:hover { color: var(--g4h-blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.g4h-container {
  max-width: var(--g4h-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--g4h-font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--g4h-gray-900);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
p  { margin-bottom: 1rem; color: var(--g4h-gray-600); }

/* ── Buttons ─────────────────────────────────────────────── */
.g4h-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-weight: 600;
  font-size: .95rem; cursor: pointer; border: none;
  transition: var(--g4h-transition); text-decoration: none;
  font-family: var(--g4h-font);
}
.g4h-btn-primary {
  background: var(--g4h-blue); color: var(--g4h-white);
  box-shadow: 0 4px 16px rgba(26,86,219,.3);
}
.g4h-btn-primary:hover {
  background: var(--g4h-blue-dark); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,86,219,.4); color: var(--g4h-white);
}
.g4h-btn-outline {
  background: transparent; color: var(--g4h-blue);
  border: 2px solid var(--g4h-blue);
}
.g4h-btn-outline:hover {
  background: var(--g4h-blue); color: var(--g4h-white);
}
.g4h-btn-white {
  background: var(--g4h-white); color: var(--g4h-blue);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.g4h-btn-white:hover { transform: translateY(-2px); box-shadow: var(--g4h-shadow-lg); color: var(--g4h-blue); }

/* ── Header ──────────────────────────────────────────────── */
.g4h-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: var(--g4h-transition);
}
.g4h-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.g4h-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--g4h-max-width); margin: 0 auto;
  padding: 16px 24px; height: 72px;
}
.g4h-logo {
  font-family: var(--g4h-font-display); font-size: 1.6rem; font-weight: 800;
  color: var(--g4h-blue-dark); display: flex; align-items: center; gap: 6px;
  letter-spacing: -.02em; position: relative;
}
.g4h-logo span {
  background: linear-gradient(135deg, var(--g4h-blue), var(--g4h-sky));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.g4h-logo-icon {
  font-size: 1.4rem; display: inline-flex; align-items: center;
  justify-content: center; width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--g4h-blue-dark), var(--g4h-sky));
  border-radius: 10px; font-style: normal;
  box-shadow: 0 3px 12px rgba(26,86,219,.25);
  -webkit-text-fill-color: initial;
}
.g4h-logo:hover { color: var(--g4h-blue-dark); }
.g4h-logo:hover .g4h-logo-icon { transform: scale(1.05); transition: transform .2s; }

/* Footer logo override */
.g4h-logo-footer { color: var(--g4h-white) !important; }
.g4h-logo-footer span {
  background: linear-gradient(135deg, #93c5fd, #67e8f9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.g4h-logo-footer .g4h-logo-icon {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  box-shadow: 0 3px 12px rgba(59,130,246,.3);
}
.g4h-nav { display: flex; align-items: center; gap: 4px; }
.g4h-nav a {
  padding: 8px 18px; border-radius: 50px; font-size: .9rem;
  font-weight: 500; color: var(--g4h-gray-600);
  transition: var(--g4h-transition);
}
.g4h-nav a:hover, .g4h-nav a.current { background: var(--g4h-blue-50); color: var(--g4h-blue); }
.g4h-nav .g4h-cta-nav {
  background: var(--g4h-blue); color: var(--g4h-white) !important;
  padding: 10px 24px; margin-left: 8px;
}
.g4h-nav .g4h-cta-nav:hover { background: var(--g4h-blue-dark); }
.g4h-mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* ── Hero ────────────────────────────────────────────────── */
.g4h-hero {
  min-height: 90vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--g4h-blue-dark) 0%, var(--g4h-blue) 40%, var(--g4h-sky) 100%);
  padding: 120px 24px 80px;
}
.g4h-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
.g4h-hero-content {
  position: relative; text-align: center; max-width: 800px; z-index: 2;
}
.g4h-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(10px);
  padding: 8px 20px; border-radius: 50px; margin-bottom: 28px;
  font-size: .85rem; color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
}
.g4h-hero h1 { color: var(--g4h-white); margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.g4h-hero p { color: rgba(255,255,255,.85); font-size: 1.2rem; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.g4h-hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.g4h-hero-stats {
  display: flex; justify-content: center; gap: 48px; margin-top: 60px;
  flex-wrap: wrap;
}
.g4h-hero-stat { text-align: center; color: var(--g4h-white); }
.g4h-hero-stat strong { display: block; font-size: 2.2rem; font-weight: 800; font-family: var(--g4h-font-display); }
.g4h-hero-stat span { font-size: .85rem; opacity: .75; }

/* ── Sections ────────────────────────────────────────────── */
.g4h-section {
  padding: 96px 0;
}
.g4h-section-alt { background: var(--g4h-gray-50); }
.g4h-section-blue { background: linear-gradient(135deg, var(--g4h-blue-dark), var(--g4h-blue)); color: var(--g4h-white); }
.g4h-section-header {
  text-align: center; max-width: 680px; margin: 0 auto 56px;
}
.g4h-section-header p { font-size: 1.1rem; }
.g4h-section-label {
  display: inline-block; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--g4h-blue); background: var(--g4h-blue-light);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 16px;
}

/* ── Feature Cards ───────────────────────────────────────── */
.g4h-features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.g4h-feature-card {
  background: var(--g4h-white); border-radius: var(--g4h-radius-lg);
  padding: 36px 28px; box-shadow: var(--g4h-shadow);
  border: 1px solid var(--g4h-gray-100);
  transition: var(--g4h-transition); position: relative; overflow: hidden;
}
.g4h-feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(90deg, var(--g4h-blue), var(--g4h-sky));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.g4h-feature-card:hover { transform: translateY(-4px); box-shadow: var(--g4h-shadow-lg); }
.g4h-feature-card:hover::before { transform: scaleX(1); }
.g4h-feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
  background: var(--g4h-blue-50);
}
.g4h-feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; font-family: var(--g4h-font); font-weight: 700; }
.g4h-feature-card p { font-size: .92rem; margin: 0; }

/* ── How It Works ────────────────────────────────────────── */
.g4h-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px; counter-reset: step;
}
.g4h-step { text-align: center; counter-increment: step; position: relative; }
.g4h-step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--g4h-blue); color: var(--g4h-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; margin: 0 auto 20px;
  font-family: var(--g4h-font-display);
  box-shadow: 0 6px 20px rgba(26,86,219,.3);
}
.g4h-step h3 { font-size: 1.15rem; margin-bottom: 8px; font-family: var(--g4h-font); }
.g4h-step p { font-size: .9rem; }

/* ── Destinations Grid ───────────────────────────────────── */
.g4h-dest-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.g4h-dest-card {
  border-radius: var(--g4h-radius-lg); overflow: hidden;
  position: relative; height: 320px;
  box-shadow: var(--g4h-shadow); cursor: pointer;
  transition: var(--g4h-transition);
}
.g4h-dest-card:hover { transform: translateY(-4px); box-shadow: var(--g4h-shadow-lg); }
.g4h-dest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g4h-dest-card:hover img { transform: scale(1.08); }
.g4h-dest-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  padding: 28px 24px 24px; color: var(--g4h-white);
}
.g4h-dest-overlay h3 { font-size: 1.3rem; margin-bottom: 4px; color: var(--g4h-white); }
.g4h-dest-overlay span { font-size: .9rem; opacity: .85; }
.g4h-dest-price {
  position: absolute; top: 16px; right: 16px;
  background: var(--g4h-blue); color: var(--g4h-white);
  padding: 6px 14px; border-radius: 50px;
  font-size: .85rem; font-weight: 700;
}

/* ── Testimonials ────────────────────────────────────────── */
.g4h-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.g4h-testimonial {
  background: var(--g4h-white); padding: 32px; border-radius: var(--g4h-radius-lg);
  box-shadow: var(--g4h-shadow); border: 1px solid var(--g4h-gray-100);
  position: relative;
}
.g4h-testimonial::before {
  content: '"'; position: absolute; top: 12px; left: 20px;
  font-size: 4rem; color: var(--g4h-blue-light); font-family: var(--g4h-font-display);
  line-height: 1;
}
.g4h-testimonial p { font-style: italic; font-size: .95rem; margin-bottom: 16px; position: relative; z-index: 1; }
.g4h-testimonial-author { display: flex; align-items: center; gap: 12px; }
.g4h-testimonial-author img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--g4h-blue-light);
}
.g4h-testimonial-author strong { display: block; font-size: .9rem; }
.g4h-testimonial-author span { font-size: .8rem; color: var(--g4h-gray-400); }

/* ── CTA Banner ──────────────────────────────────────────── */
.g4h-cta-banner {
  text-align: center; padding: 80px 24px;
  background: linear-gradient(135deg, var(--g4h-blue-dark), var(--g4h-blue), var(--g4h-sky));
  border-radius: var(--g4h-radius-lg);
  color: var(--g4h-white); position: relative; overflow: hidden;
}
.g4h-cta-banner h2 { color: var(--g4h-white); margin-bottom: 16px; }
.g4h-cta-banner p { color: rgba(255,255,255,.85); max-width: 550px; margin: 0 auto 32px; font-size: 1.1rem; }

/* ── FAQ ─────────────────────────────────────────────────── */
.g4h-faq-list { max-width: 760px; margin: 0 auto; }
.g4h-faq-item {
  background: var(--g4h-white); border-radius: var(--g4h-radius);
  margin-bottom: 12px; border: 1px solid var(--g4h-gray-200);
  overflow: hidden;
}
.g4h-faq-q {
  padding: 20px 24px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 1rem; color: var(--g4h-gray-800);
  transition: var(--g4h-transition);
}
.g4h-faq-q:hover { color: var(--g4h-blue); }
.g4h-faq-q::after { content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--g4h-blue); transition: var(--g4h-transition); }
.g4h-faq-item.open .g4h-faq-q::after { content: '−'; }
.g4h-faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s; }
.g4h-faq-item.open .g4h-faq-a { max-height: 300px; padding: 0 24px 20px; }
.g4h-faq-a p { font-size: .92rem; margin: 0; }

/* ── Blog / Posts ────────────────────────────────────────── */
.g4h-posts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.g4h-post-card {
  background: var(--g4h-white); border-radius: var(--g4h-radius-lg);
  overflow: hidden; box-shadow: var(--g4h-shadow);
  transition: var(--g4h-transition); border: 1px solid var(--g4h-gray-100);
}
.g4h-post-card:hover { transform: translateY(-4px); box-shadow: var(--g4h-shadow-lg); }
.g4h-post-thumb { height: 220px; overflow: hidden; }
.g4h-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g4h-post-card:hover .g4h-post-thumb img { transform: scale(1.05); }
.g4h-post-body { padding: 24px; }
.g4h-post-meta { font-size: .8rem; color: var(--g4h-gray-400); margin-bottom: 10px; display: flex; gap: 16px; }
.g4h-post-body h3 { font-size: 1.2rem; margin-bottom: 10px; font-family: var(--g4h-font); }
.g4h-post-body h3 a { color: var(--g4h-gray-900); }
.g4h-post-body h3 a:hover { color: var(--g4h-blue); }
.g4h-post-excerpt { font-size: .9rem; margin-bottom: 16px; }
.g4h-read-more { font-size: .88rem; font-weight: 600; color: var(--g4h-blue); }

/* ── Single Post ─────────────────────────────────────────── */
.g4h-single { max-width: 760px; margin: 0 auto; padding: 120px 24px 80px; }
.g4h-single h1 { margin-bottom: 16px; }
.g4h-single-meta { display: flex; gap: 20px; margin-bottom: 32px; font-size: .9rem; color: var(--g4h-gray-400); }
.g4h-single-content { line-height: 1.8; }
.g4h-single-content p { margin-bottom: 1.5rem; font-size: 1.05rem; }
.g4h-single-content h2 { margin: 2rem 0 1rem; }
.g4h-single-content ul, .g4h-single-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.g4h-single-content li { margin-bottom: .5rem; color: var(--g4h-gray-600); }
.g4h-single-content img { border-radius: var(--g4h-radius); margin: 1.5rem 0; }
.g4h-single-content blockquote {
  border-left: 4px solid var(--g4h-blue); margin: 2rem 0;
  padding: 16px 24px; background: var(--g4h-blue-50); border-radius: 0 var(--g4h-radius) var(--g4h-radius) 0;
}

/* ── Page Header ─────────────────────────────────────────── */
.g4h-page-header {
  padding: 140px 24px 60px; text-align: center;
  background: linear-gradient(135deg, var(--g4h-blue-dark), var(--g4h-blue));
  color: var(--g4h-white); position: relative;
}
.g4h-page-header h1 { color: var(--g4h-white); margin-bottom: 12px; }
.g4h-page-header p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ── Contact ─────────────────────────────────────────────── */
.g4h-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.g4h-contact-info { display: flex; flex-direction: column; gap: 24px; }
.g4h-contact-item { display: flex; gap: 16px; align-items: flex-start; }
.g4h-contact-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--g4h-blue-50); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.g4h-contact-item h4 { margin-bottom: 4px; font-size: 1rem; font-family: var(--g4h-font); }
.g4h-contact-form input, .g4h-contact-form textarea, .g4h-contact-form select {
  width: 100%; padding: 14px 18px; border: 1.5px solid var(--g4h-gray-200);
  border-radius: var(--g4h-radius); font-size: .95rem;
  font-family: var(--g4h-font); margin-bottom: 16px;
  transition: var(--g4h-transition); background: var(--g4h-white);
}
.g4h-contact-form input:focus, .g4h-contact-form textarea:focus {
  outline: none; border-color: var(--g4h-blue);
  box-shadow: 0 0 0 4px rgba(26,86,219,.1);
}

/* ── Footer ──────────────────────────────────────────────── */
.g4h-footer {
  background: var(--g4h-gray-900); color: var(--g4h-gray-400);
  padding: 72px 0 0;
}
.g4h-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.g4h-footer-brand p { font-size: .9rem; margin-top: 12px; line-height: 1.6; }
.g4h-footer h4 {
  color: var(--g4h-white); font-size: .9rem; font-family: var(--g4h-font);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px;
}
.g4h-footer ul li { margin-bottom: 10px; }
.g4h-footer ul a { color: var(--g4h-gray-400); font-size: .9rem; }
.g4h-footer ul a:hover { color: var(--g4h-white); }
.g4h-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; flex-wrap: wrap; gap: 12px;
  font-size: .82rem; color: var(--g4h-gray-400);
}

/* ── 404 ─────────────────────────────────────────────────── */
.g4h-404 { text-align: center; padding: 160px 24px 80px; }
.g4h-404 h1 { font-size: 6rem; color: var(--g4h-blue); margin-bottom: 16px; }

/* ── STA Plugin Integration ──────────────────────────────── */
.sta-app { margin-top: -72px; } /* Account for fixed header */
.g4h-section .sta-app { margin-top: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .g4h-nav { display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--g4h-white); flex-direction: column; padding: 16px;
    box-shadow: var(--g4h-shadow-lg); border-top: 1px solid var(--g4h-gray-200);
  }
  .g4h-nav.active { display: flex; }
  .g4h-mobile-toggle { display: block; }
  .g4h-hero { min-height: 80vh; padding-top: 100px; }
  .g4h-hero-stats { gap: 24px; }
  .g4h-footer-grid { grid-template-columns: 1fr 1fr; }
  .g4h-contact-grid { grid-template-columns: 1fr; }
  .g4h-posts-grid { grid-template-columns: 1fr; }
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes g4h-fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.g4h-animate { animation: g4h-fadeUp .6s ease both; }
.g4h-delay-1 { animation-delay: .1s; }
.g4h-delay-2 { animation-delay: .2s; }
.g4h-delay-3 { animation-delay: .3s; }
.g4h-delay-4 { animation-delay: .4s; }
