/*
Theme Name: Camino Counselling
Theme URI: 
Author: 
Author URI: 
Description: Custom WordPress theme for Camino Counselling
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: camino
*/

/* ===================================
   Book Now Button Styles 
   =================================== */

.book-now-btn {
  display: inline-block;
  background-color: #ff7b3d;
  color: #ffffff;
  padding: 12px 32px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid #ff7b3d;
}

.book-now-btn:hover {
  background-color: #ff7b3d;
  border-color: #ff7b3d;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 161, 11, 0.3);
}

.book-now-btn:active {
  transform: translateY(0);
}

/* Get Started Button Styles */
.get-started-btn {
  display: inline-block;
  background-color: #1a5c5c;
  color: #ffffff;
  padding: 12px 32px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid #1a5c5c;
}

.get-started-btn:hover {
  background-color: #15494a;
  border-color: #15494a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(26, 92, 92, 0.3);
}

.get-started-btn:active {
  transform: translateY(0);
}

/* ===================================
   GLOBAL STYLES
   =================================== */

/* Import Roboto Font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

/* CSS Variables for Easy Theming */
:root {
  --primary-color: #ff7b3d;
  --secondary-color: #005c65;
  --footer-bg: #e0f5f1;
  --footer-bottom-bg: #0a4848;
  --text-dark: #333333;
  --text-light: #ffffff;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1 {
  font-size: 47.78px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: 39.81px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 33.18px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

h4 {
  font-size: 27.65px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

h5 {
  font-size: 23.04px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

h6 {
  font-size: 19.2px;
  line-height: 1.5;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  font-size: 16px;
  margin-bottom: 1rem;
}

small {
  font-size: 13.33px;
}

.mini {
  font-size: 11.11px;
}

/* ===================================
   HEADER STYLES
   =================================== */

.site-header {
  background-color: #ffffff;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.site-logo {
  flex-shrink: 0;
  z-index: 1;
}

.site-logo a {
  display: block;
}

.site-logo img {
  max-height: 60px;
  width: auto;
}

/* Hide checkbox input */
.mobile-menu-checkbox {
  display: none;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  padding: 8px;
  border-radius: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  position: relative;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: var(--primary-color);
}

/* Hamburger Icon */
.hamburger-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-color);
  position: relative;
  transition: background-color 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--primary-color);
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  top: 8px;
}

/* Change hamburger to X when checked */
.mobile-menu-checkbox:checked ~ .mobile-menu-toggle .hamburger-icon {
  background-color: transparent;
}

.mobile-menu-checkbox:checked ~ .mobile-menu-toggle .hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
  background-color: #ffffff;
}

.mobile-menu-checkbox:checked ~ .mobile-menu-toggle .hamburger-icon::after {
  top: 0;
  transform: rotate(-45deg);
  background-color: #ffffff;
}

.mobile-menu-checkbox:checked ~ .mobile-menu-toggle {
  background-color: var(--primary-color);
}

.mobile-menu-checkbox:checked
  ~ .mobile-menu-toggle:hover
  .hamburger-icon::before,
.mobile-menu-checkbox:checked
  ~ .mobile-menu-toggle:hover
  .hamburger-icon::after {
  background-color: #ffffff;
}

/* Navigation Menu */
.main-navigation {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-navigation ul li {
  position: relative;
}

.main-navigation ul li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: opacity 0.3s ease;
}

.main-navigation ul li a:hover {
  opacity: 0.7;
}

/* Dropdown Menu */
.main-navigation ul li.menu-item-has-children {
  position: relative;
}

.main-navigation ul li.menu-item-has-children > a::after {
  content: " ▾";
  font-size: 12px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.main-navigation ul li ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  padding: 10px 0;
  display: none;
  flex-direction: column;
  gap: 0;
  border-radius: 8px;
  margin-top: 5px;
  z-index: 100;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Add invisible bridge to prevent hover loss */
.main-navigation ul li.menu-item-has-children::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.main-navigation ul li.menu-item-has-children:hover > ul.sub-menu {
  display: flex;
  opacity: 1;
}

.main-navigation ul li ul.sub-menu li {
  width: 100%;
}

.main-navigation ul li ul.sub-menu li a {
  display: block;
  padding: 12px 20px;
  color: var(--text-dark);
  position: relative;
  transition: all 0.3s ease;
}

.main-navigation ul li ul.sub-menu li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background-color: var(--primary-color);
  transition: height 0.3s ease;
}

.main-navigation ul li ul.sub-menu li a:hover {
  background-color: #f5f5f5;
  color: var(--primary-color);
  padding-left: 25px;
}

.main-navigation ul li ul.sub-menu li a:hover::before {
  height: 100%;
}

/* Book Now Button - Desktop */
.header-cta {
  flex-shrink: 0;
  margin-left: 20px;
}

.btn-book-now {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 12px 30px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-book-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 123, 61, 0.3);
}

/* Hide mobile CTA on desktop */
.mobile-cta {
  display: none;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
  .header-container {
    flex-wrap: wrap;
  }

  .main-navigation {
    order: 3;
    width: 100%;
    margin-top: 20px;
    color: white;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* ===================================
   MOBILE MENU (CSS ONLY)
   =================================== */

@media (max-width: 768px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 30px;
  }
  h3 {
    font-size: 24px;
  }
  h4 {
    font-size: 20px;
  }
  h5 {
    font-size: 18px;
  }
  h6 {
    font-size: 16px;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Hide desktop Book Now button on mobile */
  .header-cta {
    display: none;
  }

  /* Show mobile Book Now button */
  .mobile-cta {
    display: block;
    padding: 20px;
    border-top: 2px solid #f0f0f0;
    margin-top: 20px;
    text-align: center;
  }

  .mobile-cta .btn-book-now {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Header adjustments */
  .header-container {
    flex-wrap: nowrap;
  }

  /* Hide navigation by default on mobile */
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #ffffff;
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: block;
    order: initial;
    margin-top: 0;
  }

  /* Show navigation when checkbox is checked */
  .mobile-menu-checkbox:checked ~ .main-navigation {
    right: 0;
  }

  /* Overlay backdrop when menu is open */
  .mobile-menu-checkbox:checked ~ .main-navigation::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.5); */
    z-index: -1;
    width: 100vw;
  }

  /* Prevent body scroll when menu is open */
  .mobile-menu-checkbox:checked ~ * {
    overflow: hidden;
  }

  /* Mobile menu list */
  .main-navigation ul {
    flex-direction: column;
    padding: 140px 20px 20px; /* Mobile menu top padding to avoid overlap with the mobile menu close button */
    gap: 0;
    align-items: stretch;
  }

  .main-navigation ul li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
  }

  .main-navigation ul li:last-child {
    border-bottom: none;
  }

  .main-navigation ul li a {
    display: block;
    padding: 15px 10px;
    color: var(--primary-color);
    position: relative;
  }

  /* Style for parent items with children */
  .main-navigation ul li.menu-item-has-children {
    position: relative;
  }

  .main-navigation ul li.menu-item-has-children > a {
    padding-right: 55px;
  }

  /* Submenu toggle button */
  .submenu-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: absolute;
    right: 10px;
    top: 12px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    z-index: 10;
  }

  .submenu-toggle:hover,
  .submenu-toggle:active {
    background-color: var(--primary-color);
    color: white;
  }

  .submenu-icon {
    font-size: 20px;
    line-height: 1;
    font-weight: 300;
    transition: transform 0.3s ease;
  }

  /* Mobile dropdown styling */
  .main-navigation ul li ul.sub-menu {
    position: static;
    box-shadow: none;
    margin: 0;
    padding: 0;
    background: white;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    display: block;
    opacity: 0;
  }

  .main-navigation ul li ul.sub-menu.open {
    max-height: 1000px;
    opacity: 1;
  }

  .main-navigation ul li ul.sub-menu li {
    border-bottom: 1px solid rgba(0, 92, 101, 0.1);
    position: relative;
  }

  .main-navigation ul li ul.sub-menu li:last-child {
    border-bottom: none;
  }

  .main-navigation ul li ul.sub-menu li a {
    padding: 12px 10px 12px 30px;
    font-size: 14px;
    color: var(--secondary-color);
  }

  /* Remove desktop hover bridge on mobile */
  .main-navigation ul li.menu-item-has-children::after {
    display: none;
  }

  /* Hide the default dropdown arrow on mobile (replaced by toggle button) */
  .main-navigation ul li.menu-item-has-children > a::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 15px;
  }

  .btn-book-now {
    padding: 10px 20px;
    font-size: 14px;
  }
}
