/*
Theme Name: BlueSpruce v2 Exact
Theme URI: https://bluespruceinsurance.com
Description: Exact match to homepage design mockup
Version: 2.0.1
Author: Blue Spruce Insurance Agency
*/

/* ==========================================================================
   V2 Design System - Variables
   ========================================================================== */

:root {
  /* Heritage Alpine Palette */
  --navy: #171C34;
  --copper: #AD7E58;
  --pale-spruce: #E8EDE9;
  --pine: #3A4A42;
  --ivory: #FAF8F4;
  --charcoal: #2A2A2A;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
  box-sizing: border-box;
}

body.home-v2 {
  font-family: var(--font-body);
  color: var(--charcoal);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ==========================================================================
   Header v2
   ========================================================================== */

.header-v2 {
  background: var(--white);
  padding: 15px 0;
  border-bottom: 1px solid #E5E5E5;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.header-v2-logo img {
  height: 100px;
  width: auto;
}

.header-v2-nav {
  display: flex;
  align-items: center;
}

.header-v2-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
  align-items: center;
}

.header-v2-menu-item a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 400;
  font-size: 15px;
  transition: color 0.3s ease;
}

.header-v2-menu-item a:hover {
  color: var(--copper);
}

.header-v2-menu-item.has-dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 11px;
  margin-left: 6px;
}

.header-v2-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  list-style: none;
  padding: 12px 0;
  margin: 8px 0 0 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.header-v2-menu-item.has-dropdown:hover .header-v2-dropdown {
  opacity: 1;
  visibility: visible;
}

.header-v2-dropdown li {
  padding: 0;
}

.header-v2-dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--charcoal);
}

.header-v2-dropdown a:hover {
  background: var(--pale-spruce);
  color: var(--navy);
}

.btn-v2-header-cta {
  background: var(--copper);
  color: var(--white);
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.3s ease;
}

.btn-v2-header-cta:hover {
  background: #8c6447;
}

/* WordPress Menu Compatibility - Map WordPress classes to v2 design */
.header-v2-menu .menu-item {
  /* Make WordPress menu-item behave like header-v2-menu-item */
  position: relative;
}

.header-v2-menu .menu-item > a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 400;
  font-size: 15px;
  transition: color 0.3s ease;
}

.header-v2-menu .menu-item > a:hover {
  color: var(--copper);
}

.header-v2-menu .menu-item-has-children {
  position: relative;
}

/* Dropdown arrow for parent items */
.header-v2-menu .menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 11px;
  margin-left: 6px;
}

/* WordPress sub-menu as dropdown */
.header-v2-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  list-style: none;
  padding: 12px 0;
  margin: 8px 0 0 0;
  min-width: 215px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border-radius: 4px;
  display: block;
}

.header-v2-menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
}

.header-v2-menu .sub-menu li {
  padding: 0;
}

.header-v2-menu .sub-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 400;
}

.header-v2-menu .sub-menu a:hover {
  background: var(--pale-spruce);
  color: var(--navy);
}

/* CTA button styling for menu items with menu-item-cta class */
.header-v2-menu .menu-item-cta > a {
  background: var(--copper);
  color: var(--white);
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.header-v2-menu .menu-item-cta > a:hover {
  background: #8c6447;
  color: var(--white);
}

/* ==========================================================================
   Hero Section v2
   ========================================================================== */

.hero-v2 {
  position: relative;
  height: 500px;
  background-image: url('img/hero/mountain-forest-hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(58, 74, 66, 0.6) 0%, rgba(23, 28, 52, 0.5) 100%);
  z-index: 1;
}

.hero-v2-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.2);
  z-index: 1;
}

.hero-v2-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  color: var(--white);
}

.hero-v2-title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: var(--white);
  letter-spacing: -0.5px;
}

.hero-v2-subtitle {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 auto 36px auto;
  max-width: 700px;
  color: var(--white);
  opacity: 0.95;
  font-weight: 400;
}

.btn-v2-hero {
  display: inline-block;
  background: var(--copper);
  color: var(--white);
  padding: 16px 36px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-v2-hero:hover {
  background: #8c6447;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(173, 126, 88, 0.4);
}

/* ==========================================================================
   Services Section v2
   ========================================================================== */

.services-v2 {
  padding: 70px 0;
  background: var(--light-gray);
}

.services-v2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-v2-card {
  background: var(--white);
  border: 1px solid #DDD;
  border-radius: 12px;
  padding: 40px 36px 36px 36px;
  transition: all 0.3s ease;
  position: relative;
}

.service-v2-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.service-v2-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.service-v2-header h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  flex: 1;
  line-height: 1.3;
}

.service-v2-icon {
  flex-shrink: 0;
  margin-left: 20px;
}

.service-v2-icon svg {
  width: 50px;
  height: 50px;
}

.service-v2-description {
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 26px 0;
  min-height: 90px;
}

.btn-v2-secondary {
  display: inline-block;
  background: var(--copper);
  color: var(--white);
  padding: 14px 32px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-v2-secondary:hover {
  background: #8c6447;
}

.btn-v2-disabled {
  display: inline-block;
  background: #E8E8E8;
  color: #999;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: not-allowed;
}

/* ==========================================================================
   Why Blue Spruce Section v2
   ========================================================================== */

.why-v2 {
  position: relative;
  padding: 80px 0;
  background: var(--pale-spruce);
  overflow: hidden;
}

.why-v2-bg-left,
.why-v2-bg-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
  pointer-events: none;
}

.why-v2-bg-left {
  left: -50px;
}

.why-v2-bg-right {
  right: -50px;
}

.why-v2-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.why-v2 h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
}

.why-v2 p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  margin: 0 0 32px 0;
}

/* ==========================================================================
   Contact Form Section v2
   ========================================================================== */

.contact-v2 {
  padding: 80px 0;
  background: var(--white);
}

.contact-v2-wrapper {
  max-width: 850px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px 60px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-v2-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-v2-shield {
  display: inline-block;
  margin-bottom: 20px;
}

.contact-v2-shield svg {
  width: 60px;
  height: 70px;
}

.contact-v2 h2 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 14px 0;
  letter-spacing: -0.5px;
}

.contact-v2-header p {
  font-size: 16px;
  color: var(--charcoal);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-v2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-group-v2 {
  display: flex;
  flex-direction: column;
}

.form-group-v2-full {
  grid-column: 1 / -1;
}

.form-group-v2 label {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-group-v2 input,
.form-group-v2 textarea {
  padding: 14px 16px;
  border: 1px solid #CCC;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  background: var(--ivory);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group-v2 input:focus,
.form-group-v2 textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(173, 126, 88, 0.1);
}

.form-group-v2 textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-v2-submit {
  display: block;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  padding: 16px 40px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-radius: 6px;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-v2-submit:hover {
  background: #0f1220;
}

/* ==========================================================================
   Footer v2
   ========================================================================== */

.footer-v2 {
  background: var(--white);
  border-top: 1px solid #E5E5E5;
  padding: 60px 0 30px 0;
}

.footer-v2-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

.footer-v2-brand {
  display: flex;
  flex-direction: column;
}

.footer-v2-logo {
  height: auto;
  max-height: 60px;
  width: auto;
  max-width: 250px;
  margin-bottom: 24px;
  object-fit: contain;
}

.footer-v2-info p {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.6;
}

.footer-v2-info strong {
  font-weight: 600;
}

.footer-v2-info a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-v2-info a:hover {
  color: var(--copper);
}

.footer-v2-col h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 18px 0;
}

.footer-v2-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-v2-col li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-v2-col a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-v2-col a:hover {
  color: var(--copper);
}

.footer-v2-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #E5E5E5;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.footer-v2-bottom p {
  margin: 0;
  font-size: 13px;
  color: #777;
}

/* ==========================================================================
   Mobile Menu Toggle
   ========================================================================== */

.header-v2-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--navy);
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  transition: color 0.3s ease;
}

.header-v2-mobile-toggle:hover {
  color: var(--copper);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .header-v2-container {
    padding: 0 20px;
  }
  
  .header-v2-mobile-toggle {
    display: block;
  }
  
  .header-v2-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    border-top: 1px solid #E5E5E5;
  }
  
  .header-v2-nav.active {
    display: block;
  }
  
  .header-v2-menu {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }
  
  .header-v2-menu .menu-item {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .header-v2-menu .menu-item > a {
    display: block;
    padding: 15px 0;
  }
  
  .header-v2-menu .sub-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding-left: 20px;
    margin: 0;
    background: var(--pale-spruce);
  }
  
  .header-v2-menu .menu-item-has-children.active > .sub-menu {
    display: block;
  }
  
  .header-v2-menu .menu-item-has-children > a::after {
    float: right;
    transition: transform 0.3s ease;
  }
  
  .header-v2-menu .menu-item-has-children.active > a::after {
    transform: rotate(180deg);
  }
  
  .header-v2-menu .menu-item-cta {
    margin-top: 10px;
    border: none;
  }
  
  .header-v2-menu .menu-item-cta > a {
    text-align: center;
    display: block;
  }
  
  .hero-v2 {
    height: 400px;
  }
  
  .hero-v2-title {
    font-size: 36px;
  }
  
  .hero-v2-subtitle {
    font-size: 16px;
  }
  
  .services-v2 {
    padding: 50px 0;
  }
  
  .services-v2-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-v2-description {
    min-height: auto;
  }
  
  .why-v2 {
    padding: 60px 0;
  }
  
  .why-v2 h2 {
    font-size: 32px;
  }
  
  .contact-v2 {
    padding: 60px 0;
  }
  
  .contact-v2-wrapper {
    padding: 40px 30px;
  }
  
  .contact-v2 h2 {
    font-size: 32px;
  }
  
  .contact-v2-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-v2-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }
  
  .footer-v2-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }
}
