/* ============================================
   Banksia Backyards - Main Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand palette */
  --sand: #F1F0E9;
  --sage: #41644A;
  --forest: #0D4715;
  --orange: #E9762B;
  
  /* Neutrals */
  --white: #FFFFFF;
  --black: #111111;
  --gray-100: #F7F7F5;
  --gray-200: #E5E5E0;
  --gray-600: #6B6B6B;
  --gray-800: #333333;
  
  /* Typography */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  
  /* Layout */
  --container-max: 1100px;
  --radius: 12px;
  --radius-sm: 6px;
  
  /* Transitions */
  --transition: 0.3s ease;
}

/* leaflet tweak */
/* .leaflet-control-layers-expanded { background: #706c6c; opacity: 0.5; color: #111111;}
.leaflet-control-layers { background: #706c6c; opacity: 0.85;} */

/* ---------- Font Imports ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Outfit:wght@300;400;500;600&display=swap');
@font-face {
  font-family: 'lazydog';
  src: url('/css/lazydog.ttf') format('truetype');
  font-display: swap;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

.avatar {
  border-radius: 100vw;
  border: 5px solid var(--orange);
  box-shadow: .25rem .25rem .5rem rgba(0,0,0,0.1);
  border-radius: 5%;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: underline;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

ul.zoomicon{
  display: inline-block;
}

li.zoomicon {
  background-image: url("../assets/images/zoomcursor4.png");
  background-repeat: no-repeat;
  list-style-position: inside;
  line-height: 30px;
  align-items: center;
  justify-content: center;
  align-content: center;
  text-align: center;
  position: relative;
  padding-left: 25px;
  color: var(--white);
  font-size: 1.1rem;
  opacity: 0.5;
  margin-top: var(--space-xs);
}


button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

button:hover {
    color: var(--forest);
    text-decoration: underline;
  }


/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--forest);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.text-white { color: var(--white); }
.text-sand { color: var(--sand); }

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* .imageContainer > img:hover {
  transform: scale(2.5);
  transition: transform 0.3s ease;
} */

.section {
  padding: var(--space-xl) 0;
}

.section--sand { background: var(--sand); }
.section--sand a:not(.btn):hover {
  color: var(--orange);
}
.section--sage { background: var(--sage); color: var(--white); } 
.section--sage h2 { color: var(--white);}
.section--sage h3 { color: var(--black);}
.section--forest { background: var(--forest); color: var(--white); }
.section--forest h2, .section--forest h3 { color: var(--sand); }
.section--forest h1 { color: var(--white)}
.section--orange { background: var(--orange); color: var(--black); }
.section--orange h2, .section--orange h3 { color: var(--forest); }

.section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section__subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-top: var(--space-xs);
}

/* ---------- Header & Navigation ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  max-width: var(--container-max);
  margin: 0 auto;
  background-color: var(--white);
  color: var(--black);
}

.header__inner a:hover {
  color: var(--orange);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo__icon {
  height: 180px;
  width: auto;
}

.nav__menu {
  display: flex;
  gap: var(--space-md);
}

.nav__link {
  font-weight: 500;
  font-size: 1.35rem;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--forest);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  transition: var(--transition);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }
  
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: var(--space-md);
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav__menu--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav__link {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .nav__link:last-child {
    border-bottom: none;
  }

  /* Dropdown wrapper takes the border on mobile so it spans full width */
  .nav__dropdown {
    border-bottom: 1px solid var(--gray-200);
  }

  .nav__link--dropdown {
    border-bottom: none;
  }

  .logo__icon {
    height: 130px;
    width: auto;
  }

  .nav__link {
    font-weight: 500;
    font-size: 1.2rem;
    padding: var(--space-xs) 0;
    position: relative;
  }
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 71, 21, 0.5) 0%,
    rgba(13, 71, 21, 0.7) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 700px;
  padding: var(--space-lg) var(--space-md);
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__tagline {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: var(--space-md);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: #d66a24;
  transform: translateY(-2px);
  color: var(--forest);
  /*box-shadow: 0 4px 20px rgba(233, 118, 43, 0.4);*/
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--secondary:hover {
  background: var(--white);
  color: var(--forest);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}

.btn--outline:hover {
  background: var(--forest);
  color: var(--sand);
}

.btn--new {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--new:hover {
  background: var(--sand);
  color: var(--forest);
  transform: translateY(-2px);
}

/* ---------- Card / Tile Component ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__body {
  padding: var(--space-md);
}

.card__title {
  margin-bottom: var(--space-xs);
}

/* ---------- Testimonials Grid ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.testimonial {
  background: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
}

.testimonial::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--sage);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial__text {
  font-style: italic;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
  color: var(--sage)
}

.testimonial__author {
  font-weight: 600;
  color: var(--forest);
}

.testimonial__location {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--space-sm);
  -webkit-overflow-scrolling: touch;
}

.carousel__track::-webkit-scrollbar {
  height: 8px;
}

.carousel__track::-webkit-scrollbar-track {
  background: var(--gray-200);
  border-radius: 4px;
}

.carousel__track::-webkit-scrollbar-thumb {
  background: var(--forest);
  border-radius: 4px;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  font-size: 1.5rem;
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition);
}

.carousel__btn:hover {
  background: var(--forest);
  color: var(--white);
}

.carousel__btn[data-prev] {
  left: -20px;
}

.carousel__btn[data-next] {
  right: -20px;
}

@media (max-width: 768px) {
  .carousel__btn {
    display: none;
  }
}

/* ---------- Tile (Portfolio) ---------- */
.tile {
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  min-width: 280px;
}

.tile__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--gray-200);
}

.tile__gallery--single {
  grid-template-columns: 1fr;
  /* display: inline-flex; */
  /* display:inline-flex; */
  /* width: max-content; */
  height: max-content;
  /* float: left; */
  overflow: auto;
  min-width: inherit;
  min-height: 120px;
}

.tile__gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition:transform .5s ease;
  /* position: static; */
}

.tile__gallery img:active {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  /* height:600px;
  width:900px; */
  height: auto;
  width: auto;
  max-height: 90%;
  max-width: 90%;
  z-index: 2;
  /* float: left; */
}

.tile__gallery img:hover {
  cursor: url("../assets/images/zoomcursor4.png"), auto;
}

.tile__gallery--single img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition:transform 0.5s ease;
}

.tile__gallery--single img:hover {
  cursor: url("../assets/images/zoomcursor4.png"), auto;
}

/* .tile__gallery--single img:hover {
  -webkit-transform:scale(1.5);
  transform:scale(1.5);
} */

.tile__body {
  padding: var(--space-sm);
}

.tile__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.tile__text {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.tile__text a {
  color: var(--forest);
  text-decoration: underline;
}

.tile__text a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* ---------- About Page ---------- */
.about-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-banner__image {
  border-radius: var(--radius);
  overflow: hidden;
  z-index:1;
}

.about-banner__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-banner {
    grid-template-columns: 1fr;
  }
  
  .about-banner__image img {
    height: 300px;
  }
}

/* Map Section */
.map-section {
  padding: var(--space-lg) 0;
}

.map-container {
  height: 400px;
  min-width: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#map {
  height: 100%;
  width: 100%;
}

/* ---------- Services Page ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background: var(--sand);
  padding: var(--space-lg);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-top: 4px solid var(--orange);
  transition: transform var(--transition);
  color: var(--sage)
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card__icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-sm);
  color: var(--sage);
}

.service-card__title {
  margin-bottom: var(--space-sm);
  color: var(--sage);
}

.service-card__list {
  margin-top: var(--space-sm);
}

.values-card__list {
  margin-top: var(--space-sm);
  text-align: center;
}

.values-card__list li {
  padding: var(--space-xs) 0;
  padding-left: 20px;
  position: relative;
}

.values-card__list li::before {
  content: '✓';
  position: relative;
  left: -20px;
  color: var(--orange);
  font-weight: bold;
}

.service-card__list li {
  padding: var(--space-xs) 0;
  padding-left: 20px;
  position: relative;
}

.service-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
}


.service-card__bullet {
  margin-top: var(--space-sm);
}

.service-card__bullet li {
  padding: var(--space-xs) 0;
  padding-left: 0px;
  position: relative;
}

/* .service-card__bullet li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
} */


/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-lg);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  padding-left: var(--space-md);
}

.contact-info__item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-info__icon {
  width: 24px;
  height: 24px;
  color: var(--sage);
  flex-shrink: 0;
}

/* Form Styles */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form__label {
  font-weight: 500;
  color: var(--gray-800);
}

.form__input,
.form__select,
.form__textarea {
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--sage);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);

}

.form__checkbox input {
  margin-top: 7px;
}

.form__status {
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  text-align: center;
}

.form__status--success {
  background: rgba(65, 100, 74, 0.1);
  color: var(--forest);
}

.form__status--error {
  background: rgba(233, 118, 43, 0.1);
  color: var(--orange);
}

/* Calendly placeholder */
.calendly-placeholder {
  background: var(--gray-100);
  padding: var(--space-lg);
  border-radius: var(--radius);
  text-align: center;
  border: 2px dashed var(--gray-200);
}

/* ---------- Body hyperlink -- */

/*.bodya:hover {
  opacity: 1;
  color: var(--forest);
  text-decoration: underline;
}
*/

/* ---------- Footer ---------- */
.footer {
  background: var(--forest);
  color: var(--white);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: var(--space-sm);
}

.footer__text {
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer__title {
  font-family: 'lazydog', var(--font-heading);
  font-size: 2rem;
  font-weight:700;
  color: var(--sand);
  margin-bottom: var(--space-sm);
}

.footer__links li {
  margin-bottom: var(--space-xs);
}

.footer__links a {
  opacity: 0.8;
  /*transition: opacity var(--transition);*/
}

.footer__links a:hover {
  opacity: 1;
  color: var(--orange);
  text-decoration: underline;
}

.footer__bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Social links */
.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background var(--transition);
}

.social-link:hover {
  background: var(--orange);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* ---------- Utility Classes ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ---------- Nav Dropdown ---------- */
.nav__dropdown {
  position: relative;
}

.nav__link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Suppress the orange underline on desktop (dropdown opens on hover instead) */
@media (min-width: 769px) {
  .nav__link--dropdown::after {
    content: '';
    border: none;
    width: 0 !important;
    height: 0;
  }
}

/* Indicator glyph: hidden on desktop, shown on mobile */
.nav__dropdown-indicator {
  display: none;
  margin-left: 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
  padding: var(--space-xs) 0;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.95rem;
  color: var(--gray-800);
  text-decoration: none;
  transition: background var(--transition);
}

.nav__dropdown-item:hover {
  background: var(--sand);
  color: var(--forest);
}

@media (max-width: 768px) {
  .nav__dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--gray-100);
    border-radius: 0;
    margin-top: var(--space-xs);
    /* Collapsed by default on mobile */
    display: none;
    opacity: 1;
    visibility: visible;
  }

  /* Show dropdown when toggled open on mobile */
  .nav__dropdown--open .nav__dropdown-menu {
    display: block;
  }

  /* Disable hover/focus-within opening on mobile */
  .nav__dropdown:hover .nav__dropdown-menu,
  .nav__dropdown:focus-within .nav__dropdown-menu {
    opacity: 0;
    visibility: hidden;
  }
  .nav__dropdown--open:hover .nav__dropdown-menu,
  .nav__dropdown--open:focus-within .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
  }

  /* Lay out the dropdown trigger row: link + indicator on one line */
  .nav__dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  /* Show indicator on mobile */
  .nav__dropdown-indicator {
    display: inline-block;
    padding: var(--space-sm) 0;
  }

  .nav__dropdown-item {
    padding-left: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
  }
  
  .nav__dropdown-item:last-child {
    border-bottom: none;
  }

  /* Make dropdown link fill remaining space so the orange underline spans wide */
  .nav__link--dropdown {
    display: flex;
    flex: 1;
  }

  /* Dropdown menu spans full width below the trigger row */
  .nav__dropdown-menu {
    flex-basis: 100%;
  }
}

/* ---------- Blog Layout ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  
  .blog-sidebar {
    order: 2;
  }
}

/* Blog Sidebar */
.blog-sidebar {
  position: sticky;
  top: 180px;
  align-self: start;
}

.blog-sidebar__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--forest);
}

.blog-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.blog-sidebar__link {
  font-size: 0.95rem;
  color: var(--gray-800);
  text-decoration: none;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--gray-200);
  display: block;
  transition: color var(--transition);
}

.blog-sidebar__link:hover {
  color: var(--orange);
}

/* Blog Filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.blog-filters__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.blog-filters__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
}

.blog-filters__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.blog-filters__select {
  padding: 8px 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  cursor: pointer;
}

.blog-filters__select:focus {
  outline: none;
  border-color: var(--sage);
}

/* Blog Tags */
.blog-tag {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--gray-200);
  color: var(--gray-800);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.blog-tag:hover {
  background: var(--sage);
  color: var(--white);
}

.blog-tag--active {
  background: var(--forest);
  color: var(--white);
}

.blog-tag--small {
  padding: 3px 8px;
  font-size: 0.75rem;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

/* Blog Card */
.blog-card {
  overflow: hidden;
}

.blog-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card__body {
  padding: var(--space-md);
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
  color: var(--gray-600);
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.blog-card__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  color: var(--forest);
}

.blog-card__preview {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ---------- Article Styles ---------- */
.article-header {
  text-align: center;
}

.article-header h1 {
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.article-meta__date {
  font-size: 0.95rem;
  color: var(--sand);
  opacity: 0.9;
}

.article-meta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.article-meta__tags .blog-tag {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  text-decoration: none;
}

.article-meta__tags a.blog-tag:hover {
  background: rgba(255,255,255,0.4);
}

/* Article Content */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Article Sections (alternating colors) */
.article-section {
  margin: var(--space-lg) calc(-1 * var(--space-md));
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius);
}

.article-section h2 {
  margin-top: 0;
}

.article-section h3 {
  margin-top: var(--space-md);
}

.article-section .tile__gallery {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

/* Article Gallery - taller images for blog articles */
.tile__gallery--article {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--gray-200);
  border-radius: var(--radius);
}

.tile__gallery--article.tile__gallery--single {
  grid-template-columns: 1fr;
}

.tile__gallery--article img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.5s ease;
}

/* .tile__gallery--article img:hover {
  cursor: -webkit-zoom-in;
  cursor: zoom-in;
} */

.tile__gallery--article img:hover {
  cursor: url("../assets/images/zoomcursor4.png"), auto;
}

.tile__gallery--article img:active {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  height: auto;
  width: auto;
  max-height: 90%;
  max-width: 90%;
  z-index: 1000;
}

@media (max-width: 768px) {
  .tile__gallery--article img {
    height: 280px;
  }
}

.article-conclusion {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
}

/* Author Card */
.author-card {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.author-card__image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--sand);
  border: 3px solid var(--sage);
}

.author-card__content {
  flex: 1;
}

.author-card__name {
  color: var(--sand);
  margin-bottom: 4px;
}

.author-card__role {
  font-size: 0.95rem;
  color: var(--sand);
  opacity: 0.9;
  margin-bottom: var(--space-xs);
}

.author-card__bio {
  font-size: 0.9rem;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .author-card {
    flex-direction: column;
    text-align: center;
  }
}

