/*
Theme Name: Hi, I Live In A Van
Theme URI: https://example.com/hi-live-in-a-van
Author: Ama x Ari
Author URI: https://example.com
Description: A bright, clean van life theme with white backgrounds and bold blue accents for photos, videos, and blog posts.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hi-live-in-a-van
*/

:root {
  --primary-blue: #1E6BC7;
  --text-color: #222222;
  --bg-color: #ffffff;
  --light-grey: #f4f4f4;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

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

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.custom-logo-link,
.custom-logo {
  display: inline-block;
}

.custom-logo {
  max-height: 48px;
  width: auto;
  height: auto;
}

.site-title a {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary-blue);
}

.site-description {
  font-size: 0.85rem;
  color: #666666;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.main-navigation a {
  font-weight: 500;
}

.main-navigation a:hover {
  text-decoration: none;
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 0.1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #dddddd;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Mobile nav */
@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }
}

/* Default content wrapper (used on non-front pages) */
.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

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

.hero-wrapper {
  width: 100%;
  background-color: #000;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem 1.5rem 3rem;
}

.hero-content h1 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.hero-content p {
  margin: 0 0 1.6rem;
  font-size: 1rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.button-primary,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.button-primary {
  background-color: var(--primary-blue);
  color: #ffffff;
}

.button-primary:hover {
  opacity: 0.95;
}

.button-outline {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.hero-meta {
  font-size: 0.85rem;
  margin-top: 0.9rem;
  opacity: 0.9;
}

/* ========================= */
/* SECTION TITLES & GRIDS    */
/* ========================= */

.section-block {
  padding: 2.5rem 1.5rem 0;
}

.section-title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.4rem;
  margin: 0 0 1rem;
  text-align: center;
}

.section-title span {
  display: inline-block;
  padding: 0 0.75rem;
  position: relative;
}

.section-title span::before,
.section-title span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 50px;
  height: 2px;
  background-color: var(--primary-blue);
}

.section-title span::before {
  right: 100%;
  margin-right: 0.5rem;
}

.section-title span::after {
  left: 100%;
  margin-left: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.8rem;
}

.post-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ========================= */
/* POST CARDS (tiles)        */
/* ========================= */

.post-card {
  background-color: #ffffff;
  border-radius: 18px;
  border: 1px solid #eeeeee;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
  border-color: rgba(30, 107, 199, 0.22);
}

.post-card-image img {
  width: 100%;
  display: block;
  height: 180px;
  object-fit: cover;
}

.post-card-body {
  padding: 1.2rem 1.2rem 1.3rem;
}

.post-card-meta {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.3rem;
}

.post-card-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: #555;
}

.post-card-readmore {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ========================= */
/* DEFAULT BLOG LISTING      */
/* (for non-front pages)     */
/* ========================= */

.blog-listing .post {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eeeeee;
}

.blog-listing .entry-title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.entry-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.entry-content {
  margin-top: 1rem;
}

.post-thumbnail img {
  border-radius: 18px;
  margin-bottom: 1rem;
}

/* ========================= */
/* LATEST FROM THE ROAD      */
/* ========================= */

/* Wrapper for big + compact posts */
.latest-posts-wrapper {
  max-width: 1100px;
  margin: 0 auto 3rem;
}

/* Big + list side-by-side on desktop */
.latest-main-and-list {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
}

/* Featured (big) post */
.latest-post-featured {
  background-color: #fff;
  border-radius: 18px;
  border: 1px solid #eeeeee;
  overflow: hidden;
}

.latest-featured-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.latest-featured-body {
  padding: 1.3rem 1.3rem 1.4rem;
}

.latest-featured-meta {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.3rem;
}

.latest-featured-title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

.latest-featured-excerpt {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.7rem;
}

.latest-featured-readmore a {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Compact list column */
.latest-compact-list {
  display: flex;
  flex-direction: column;
}

/* Each compact post */
.latest-post-compact {
  margin-bottom: 1.6rem; /* space between compact posts */
}

.latest-compact-inner {
  display: flex;
  gap: 1rem;          /* space between image and text */
  align-items: flex-start;
}

.latest-compact-thumb img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
}

.latest-compact-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;       /* spacing between date, title, excerpt */
}

.latest-compact-meta {
  font-size: 0.75rem;
  color: #777;
}

.latest-compact-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

/* Excerpt for compact posts (1–2 lines) */
.latest-compact-excerpt {
  font-size: 0.8rem;
  color: #4b5563;
  margin-top: 0.15rem;
  line-height: 1.4;
}

/* Stack big + list on small screens */
@media (max-width: 768px) {
  .latest-main-and-list {
    grid-template-columns: 1fr;
  }

  .latest-post-featured {
    margin-bottom: 1.5rem;
  }
}

/* ========================= */
/* INSTAGRAM STRIP (placeholder) */
/* ========================= */

.instagram-strip {
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  padding: 2rem 1.5rem;
}

.instagram-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.instagram-strip-title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.instagram-strip-note {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

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

.site-footer {
  padding: 2.5rem 1.5rem 2.5rem;
  margin-top: 0;
  background-color: var(--primary-blue);
  color: #ffffff;
}

.site-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.4rem;
}

/* Top row: nav links left, socials right */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-links {
  font-size: 0.9rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Social block & heading */

.footer-social-block {
  text-align: right;
}

.footer-social-title {
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

/* Social icons row */
.footer-social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-social-links a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

/* Separator line between nav/social and disclaimer */
.footer-separator {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  margin: 0.75rem 0 1.1rem;
}

/* Disclaimer: centred block */
.footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.5;
  max-width: 720px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
}

/* Bottom row: © left, Ama × Ari right */
.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.9;
}

.footer-meta-left {
  text-align: left;
}

.footer-meta-right {
  text-align: right;
}

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

@media (max-width: 768px) {
  .section-block {
    padding-inline: 1.25rem;
  }

  .site-header-inner {
    padding-inline: 1.25rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .footer-social-block {
    text-align: left;
  }

  .footer-social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 500px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
