/*
Theme Name: Campodaglia
Description: Custom farmhouse site theme, hand-coded, no builder.
Version: 1.0
Author: Dirk
*/

/* Your actual site CSS goes below. Nothing above this comment block
   should be removed — WordPress reads it to register the theme. */
/* Custom Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400&family=Roboto:wght@200&display=swap');

/* Global Site Styles */
body {
  background-color: #F5D6BA;
  color: #000000;
  font-family: 'Roboto', sans-serif;
  font-weight: 200;
  margin: 0; /* Prevents default body margins */
	line-height: 1.6;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
}

/* Buttons */
button, 
input[type="submit"], 
.btn, 
.button {
  background-color: #BA5B12;
  color: #FFFFFF;
  font-family: 'Roboto', sans-serif;
  font-weight: 200;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* --- Header Setup & Sticky Fixes --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Stays well above hero section & video */
  background-color: #3D3B30;
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 18px 0;
}

/* Compact padding state when scrolled */
.site-header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Text Logo */
.site-logo {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.6rem;
  color: #F5D6BA; /* Warm background accent color */
  text-decoration: none;
  letter-spacing: 0.5px;
}

/* --- Desktop Navigation --- */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-family: 'Roboto', sans-serif;
  font-weight: 200;
  font-size: 0.95rem;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #BA5B12; /* Accent color hover */
}

/* --- Mobile Menu & Hamburger --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  position: relative;
  transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  left: 0;
  transition: transform 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Active Hamburger ("X" Animation) */
.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Mobile Slide-down Nav */
.mobile-nav {
  display: none;
  background-color: #3D3B30;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 16px 24px;
}

.mobile-nav li {
  margin: 14px 0;
}

.mobile-nav a {
  font-family: 'Roboto', sans-serif;
  font-weight: 200;
  font-size: 1.1rem;
  color: #FFFFFF;
  text-decoration: none;
  display: block;
}

/* Media Query for Mobile Screens */
@media (max-width: 768px) {
  .main-nav {
    display: none; /* Hide desktop menu */
  }

  .menu-toggle {
    display: block; /* Show hamburger button */
  }

  .mobile-nav.is-open {
    display: block; /* Show menu when toggled */
  }
}

/* --- Site Footer --- */
.site-footer {
  background-color: #3D3B30; /* Matches Header Background */
  color: #FFFFFF;
  padding-top: 60px;
  border-top: 1px solid rgba(245, 214, 186, 0.15); /* Subtle warm line */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr; /* Creates balanced columns */
  gap: 48px;
}

/* Headings in Footer */
.footer-logo {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.8rem;
  color: #F5D6BA; /* Warm background accent color */
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
}

.footer-col h4 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.15rem;
  color: #F5D6BA;
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
}

/* Hosts & Address Styling */
.footer-brand .hosts {
  font-family: 'Roboto', sans-serif;
  font-weight: 200;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.footer-brand .hosts span {
  font-weight: 400;
  color: #FFFFFF;
}

.footer-address {
  font-family: 'Roboto', sans-serif;
  font-weight: 200;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Navigation Links */
.footer-nav ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  font-family: 'Roboto', sans-serif;
  font-weight: 200;
  font-size: 0.95rem;
  color: #FFFFFF;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #BA5B12; /* Accent hover color */
}

/* Contact & Socials List */
.footer-contact li {
  font-family: 'Roboto', sans-serif;
  font-weight: 200;
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.footer-contact .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

.footer-contact a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  background-color: rgba(0, 0, 0, 0.15); /* Slightly darker shade */
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-bottom p {
  font-family: 'Roboto', sans-serif;
  font-weight: 200;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr; /* Stacks vertically on mobile */
    gap: 36px;
    padding-bottom: 36px;
  }
}

/* Booking form — bare functional styling, revisit once fonts/colors are set */
.booking-form label {
  display: block;
  margin-bottom: 1rem;
}
.booking-form input,
.booking-form textarea {
  width: 100%;
  padding: 0.5rem;
  box-sizing: border-box;
}
.booking-success { color: green; }
.booking-error { color: #b00020; }

/* Availability calendar */
.availability-calendar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.calendar-dow { font-weight: bold; font-size: 0.8rem; }
.calendar-day {
  padding: 0.5rem 0;
  border-radius: 4px;
}
.calendar-day.available { background: #e6f4ea; }
.calendar-day.booked { background: #f4e6e6; color: #999; }
.calendar-day.empty { background: transparent; }
