/*
Theme Name: Kaurvest Theme
Theme URI: https://kaurvest.com.au
Author: Kaurvest Team
Author URI: https://kaurvest.com.au
Description: Custom WordPress theme for Kaurvest - Buyer's Advocates. Built with Elementor integration and modern design.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kaurvest
Tags: custom-header, custom-menu, featured-images, threaded-comments, translation-ready, elementor
*/

/* Custom Styles for Enhanced Header */
/* Brand Colors */
:root {
  --brand-purple: #55205d;
  --brand-yellow: #ffd524;
}

/* Font Styles */
.font-inter {
  font-family: "Inter", sans-serif;
}

.font-albert {
  font-family: "Albert Sans", sans-serif;
}

/* Lucide Icon Styles */
.lucide {
  display: inline-block;
  vertical-align: middle;
}

body {
  font-size: 16px;
}

p {
  font-size: 18px;
}

/* Logo Container and Image Sizing */
.logo-container {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.logo-image {
  width: 200px;
  height: auto;
  transition: all 0.3s ease;
  object-fit: contain;
}

/* Header Styles */
#header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
}

/* Scrolled state - add shadow and resize logo */
.header-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-scrolled .logo-image {
  width: 100px;
}

.header-scrolled .logo-container {
  transform: scale(0.95);
}

/* Navigation Links */
.nav-link {
  position: relative;
  color: #374151;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--brand-purple);
}

.nav-link.active {
  color: var(--brand-purple);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-purple);
  border-radius: 2px;
}

/* Call Button */
.call-btn {
  display: inline-flex;
  align-items: center;
  background: var(--brand-purple);
  color: var(--brand-yellow);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(85, 32, 93, 0.3);
  color: var(--brand-yellow);
}

.call-btn .lucide {
  stroke: var(--brand-yellow);
  stroke-width: 2;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.menu-line {
  width: 100%;
  height: 3px;
  background: #374151;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 12px 12px;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  color: #374151;
  font-weight: 500;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--brand-purple);
}

.mobile-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-purple);
  color: var(--brand-yellow);
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.mobile-call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(85, 32, 93, 0.3);
  color: var(--brand-yellow);
}

.mobile-call-btn .lucide {
  stroke: var(--brand-yellow);
  stroke-width: 2;
}

/* Dropdown Menu Styles */
.has-dropdown {
  position: relative;
}

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  z-index: 50;
}

.has-dropdown:hover .sub-menu {
  display: block;
}

.sub-menu li {
  display: block;
  width: 100%;
}

.sub-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #374151;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.sub-menu a:hover {
  background: #f3f4f6;
  color: var(--brand-purple);
}

/* Mobile Dropdown Styles */
.mobile-sub-menu {
  display: none;
  margin-left: 1rem;
  margin-top: 0.5rem;
}

.mobile-nav-link.has-dropdown.active + .mobile-sub-menu,
.mobile-sub-menu.active {
  display: block;
}

.mobile-sub-menu a {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

/* Dropdown indicators */
.has-dropdown > a {
  display: flex;
  align-items: center;
}

.lucide-chevrons-down.rotate-180,
.lucide-chevron-down.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Hero Section Enhancements */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video Background Styles */
.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video-background iframe,
.hero-video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(85, 32, 93, 0.7);
  z-index: 1;
}

/* White text for hero content when video background is enabled */
.hero-section .hero-content .hero-pre-title,
.hero-section .hero-content .hero-title,
.hero-section .hero-content .hero-description {
  color: #ffffff !important;
}

/* Ensure content stays above video background */
.hero-section .relative.z-10 {
  position: relative;
  z-index: 2;
}

/* Mobile responsive video background */
@media (max-width: 768px) {
  .hero-video-background iframe,
  .hero-video-background video {
    min-width: 150%;
    min-height: 150%;
  }

  .hero-section {
    min-height: 60vh;
  }
}

.hero-btn {
  background: var(--brand-purple);
  color: var(--brand-yellow);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(85, 32, 93, 0.3);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(85, 32, 93, 0.4);
}

/* Video Button */
.video-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.video-btn a:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive Design - Single breakpoint at 768px */
@media (max-width: 768px) {
  #header {
    padding: 0;
  }

  .logo-image {
    width: 100px;
  }

  .header-scrolled .logo-image {
    width: 100px;
  }

  .hero-section {
    min-height: auto;
    padding: 100px 0;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  /* Ensure proper spacing on mobile */
  .grid {
    grid-template-columns: 1fr !important;
  }

  .hero-image {
    margin-top: 2rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Brand Color Utilities */
.bg-brand-purple {
  background-color: var(--brand-purple);
}

.text-brand-purple {
  color: var(--brand-purple);
}

.text-brand-yellow {
  color: var(--brand-yellow);
}

/* Update video button background to brand purple */
.video-btn button {
  background: var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
}

.video-btn .lucide {
  stroke: var(--brand-yellow);
  stroke-width: 2;
  fill: var(--brand-yellow);
}

/* Responsive video overlay */
@media (max-width: 768px) {
  #hero-video {
    max-height: 50vh;
  }

  #video-overlay button {
    top: -50px;
  }
}

/* WordPress Specific Styles */
.wp-block-image img,
img {
  max-width: 100%;
  height: auto;
}

.alignleft {
  float: left;
  margin-right: 1rem;
}

.alignright {
  float: right;
  margin-left: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* WordPress Navigation */
.wp-block-navigation__responsive-container-open {
  background: var(--brand-purple);
  color: var(--brand-yellow);
}

/* Elementor Compatibility */
.elementor-widget-container {
  max-width: 100%;
}

/* Ensure Elementor sections work with our theme */
.elementor-section {
  position: relative;
}

/* Footer WordPress Widgets */
footer .widget {
  margin-bottom: 2rem;
}

footer .widget-title {
  color: var(--brand-yellow);
  font-family: "Albert Sans", sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

footer .widget ul {
  list-style: none;
  padding: 0;
}

footer .widget ul li {
  margin-bottom: 0.5rem;
}

footer .widget a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .widget a:hover {
  color: var(--brand-yellow);
}

h4 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #55205d;
  margin-top: 15px !important;
}

.nf-form-fields-required {
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 5px;
}
