/* main.css - Updated with proper section spacing and harmonized logo sizing */

:root {
  --color-primary: #B8860B;
  --color-secondary: #37423b;
  --color-default: #212529;
  --color-default-rgb: 33, 37, 41;
  --background-color: #ffffff;
  --background-color-rgb: 255, 255, 255;
  --default-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Montserrat", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--default-font);
  color: var(--color-default);
  margin: 0;
  padding: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--color-primary), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
}

/* Header Styles - Harmonized with 100px logo */
.header {
  color: var(--color-default);
  background-color: var(--background-color);
  padding: 25px 0; /* Increased from 15px to harmonize with 100px logo */
  transition: all 0.5s;
  z-index: 997;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 150px; /* Total header height: 100px logo + 50px padding */
}

.header .logo {
  line-height: 1;
}

.header .logo h1 {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  color: var(--color-primary);
}

/* Navigation Styles */
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 500;
  color: color-mix(in srgb, var(--color-default), transparent 20%);
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: var(--color-primary);
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
  color: var(--color-secondary);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-toggle:hover {
  color: var(--color-primary);
}

/* Mobile Navigation Implementation */
@media (max-width: 1199px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    bottom: 0;
    transition: 0.3s;
    z-index: 9997;
  }

  .navbar ul {
    position: absolute;
    inset: 0;
    padding: 50px 0 10px 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
    overflow-y: auto;
    transition: 0.3s;
    border-radius: 0 0 10px 10px;
    backdrop-filter: blur(20px);
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    flex-direction: column;
  }

  .navbar a,
  .navbar a:focus {
    padding: 10px 20px;
    font-size: 15px;
    color: var(--color-secondary);
  }

  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus {
    color: var(--color-primary);
  }

  .navbar.navbar-mobile {
    right: 0;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 20px 0; /* Adjusted for tablet logo size */
    min-height: 140px; /* 100px logo + 40px padding */
  }
  
  .mobile-nav-toggle {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 15px 0; /* Adjusted for mobile 80px logo */
    min-height: 110px; /* 80px logo + 30px padding */
  }
}

/* Hero Section Styles - Harmonized typography */
.hero {
  width: 100%;
  min-height: 80vh;
  position: relative;
  padding: 80px 0 40px 0;
  display: flex;
  align-items: center;
  background: linear-gradient(45deg, color-mix(in srgb, var(--color-primary), transparent 80%), color-mix(in srgb, var(--color-primary), transparent 60%));
}

.hero h1 {
  margin: 0;
  font-size: 56px; /* Increased from 48px to harmonize with 100px logo */
  font-weight: 700;
  color: var(--color-default);
}

.hero h2 {
  color: color-mix(in srgb, var(--color-default), transparent 40%);
  margin-bottom: 50px;
  font-size: 22px; /* Increased from 20px */
  font-weight: 400;
}

.hero p {
  color: color-mix(in srgb, var(--color-default), transparent 20%);
  margin: 20px 0 30px 0;
  font-size: 22px; /* Increased from 20px */
  font-weight: 400;
}

.hero .btn-get-started {
  color: var(--background-color);
  background: var(--color-primary);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px 0 0 0;
}

.hero .btn-get-started:hover {
  background: color-mix(in srgb, var(--color-primary), transparent 20%);
}

.hero-img img {
  width: 100%;
  height: auto;
}

/* Section Spacing - As requested in document review */
section:not(.hero):not(.breadcrumbs):not(.footer) {
  padding: 40px 0;
}

section:last-of-type:not(.footer) {
  padding: 40px 0 80px 0;
}

/* Breadcrumbs - Fixed to properly clear header and harmonize with logo */
.breadcrumbs {
  padding: 25px 0; /* Increased from 15px */
  background: color-mix(in srgb, var(--color-primary), transparent 95%);
  min-height: 70px; /* Increased from 40px to harmonize with logo */
  margin-top: 150px; /* Fixed: proper clearance for 150px header */
}

.breadcrumbs h2 {
  font-size: 36px; /* Increased from 28px to harmonize with 100px logo */
  font-weight: 500;
  color: var(--color-secondary);
  margin: 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumbs ol li+li {
  padding-left: 10px;
}

.breadcrumbs ol li+li::before {
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--color-default), transparent 70%);
  content: "/";
}

/* Section Headers - Harmonized with logo scale */
.section-header {
  text-align: center;
  padding-bottom: 60px;
}

.section-header h2 {
  font-size: 40px; /* Increased from 32px to harmonize with 100px logo */
  font-weight: 700;
  position: relative;
  color: var(--color-secondary);
}

.section-header p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--color-default), transparent 40%);
  font-size: 16px; /* Slightly increased */
}

/* Common Button Styles */
.btn-read-more {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.5s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-read-more:hover {
  background: color-mix(in srgb, var(--color-primary), transparent 20%);
  color: #fff;
}

.btn-read-more i {
  font-size: 18px;
  margin-left: 5px;
  line-height: 0;
  transition: 0.3s;
}

.btn-read-more:hover i {
  transform: translate3d(5px, 0, 0);
}

/* Contact Form Buttons */
.php-email-form button[type=submit] {
  background: var(--color-primary);
  border: 0;
  padding: 12px 34px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
}

.php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--color-primary), transparent 20%);
}

/* What to Expect Step Boxes */
.what-to-expect {
  background: color-mix(in srgb, var(--color-primary), transparent 98%);
}

.what-to-expect .step-box {
  padding: 40px 30px;
  background: #fff;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.08);
  transition: all 0.3s ease-in-out;
  height: 100%;
  position: relative;
}

.what-to-expect .step-box:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 40px rgba(1, 41, 112, 0.15);
}

.what-to-expect .step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  border: 4px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.what-to-expect .step-box h3 {
  font-weight: 700;
  margin: 30px 0 15px 0;
  font-size: 20px;
  color: var(--color-secondary);
}

.what-to-expect .step-box p {
  color: color-mix(in srgb, var(--color-default), transparent 30%);
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.what-to-expect .step-box ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
  text-align: left;
}

.what-to-expect .step-box ul li {
  padding: 3px 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-default), transparent 40%);
  position: relative;
  padding-left: 20px;
}

.what-to-expect .step-box ul li::before {
  content: "\f00c";
  font-family: "bootstrap-icons";
  color: var(--color-primary);
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 10px;
}

/* Why Choose Items */
.why-choose-item {
  margin-bottom: 30px;
}

.why-choose-item i {
  font-size: 40px;
  color: var(--color-primary);
  margin-right: 20px;
  line-height: 0;
  margin-top: 16px;
}

.why-choose-item h5 {
  font-size: 18px;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 10px;
}

.why-choose-item p {
  font-size: 15px;
  color: color-mix(in srgb, var(--color-default), transparent 40%);
  margin-bottom: 0;
}

/* Contact CTA Section */
.contact-cta {
  padding: 80px 0;
  background: color-mix(in srgb, var(--color-primary), transparent 98%);
}

.contact-cta h2 {
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-cta p {
  color: color-mix(in srgb, var(--color-default), transparent 30%);
  margin-bottom: 30px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: var(--background-color);
  line-height: 0;
}

.back-to-top:hover {
  background: color-mix(in srgb, var(--color-primary), transparent 20%);
  color: var(--background-color);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* Footer Styles */
.footer {
  font-size: 14px;
  background-color: var(--color-secondary);
  padding: 50px 0;
  color: white;
}

.footer .footer-info .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-info .logo h1 {
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0;
  font-family: var(--heading-font);
}

.footer .footer-info p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links {
  display: flex;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-primary), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--color-primary), transparent 50%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links h4 {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-primary);
  position: relative;
  padding-bottom: 12px;
}

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

.footer .footer-links ul i {
  padding-right: 2px;
  color: var(--color-primary);
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, white, transparent 30%);
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: white;
}

/* Form Validation Styles */
.field-error {
  color: #ed3c0d;
  font-size: 12px;
  margin-top: 5px;
}

.form-control.error {
  border-color: #ed3c0d;
  box-shadow: 0 0 0 0.2rem rgba(237, 60, 13, 0.25);
}

/* Animation Classes */
.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles - Harmonized with logo scaling */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 42px; /* Proportional to 100px tablet logo */
  }

  .hero h2 {
    font-size: 20px;
    line-height: 26px;
  }

  .hero p {
    font-size: 20px;
  }

  .section-header h2 {
    font-size: 36px; /* Proportional to 100px tablet logo */
  }
  
  .breadcrumbs {
    margin-top: 140px; /* Adjusted for tablet header height */
    min-height: 60px;
  }
  
  .breadcrumbs h2 {
    font-size: 32px;
  }

  .what-to-expect .step-box {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px; /* Proportional to 80px mobile logo */
  }

  .hero h2 {
    font-size: 18px;
    line-height: 24px;
  }

  .hero p {
    font-size: 18px;
  }

  .section-header h2 {
    font-size: 28px; /* Proportional to 80px mobile logo */
  }
  
  .breadcrumbs {
    margin-top: 110px; /* Adjusted for mobile header height */
    min-height: 50px;
    padding: 20px 0;
  }
  
  .breadcrumbs h2 {
    font-size: 26px;
  }
}

/* Logo Styles - Harmonized sizing system */

/* Header Logo Styles */
.header .logo img,
header .logo img,
#header .logo img {
  transition: all 0.3s ease !important;
  max-height: 100px !important;
  height: 100px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Footer Logo Styles */
.footer .logo img,
footer .logo img,
#footer .logo img {
  transition: all 0.3s ease !important;
  max-height: 100px !important;
  height: 100px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Logo Responsive Behavior - Maintains proportional scaling */
@media (max-width: 768px) {
  .header .logo img,
  header .logo img,
  #header .logo img {
    max-height: 100px !important; /* Consistent tablet size */
    height: 100px !important;
  }
  
  .footer .logo img,
  footer .logo img,
  #footer .logo img {
    max-height: 80px !important; /* Proportional footer scaling */
    height: 80px !important;
  }
}

@media (max-width: 480px) {
  .header .logo img,
  header .logo img,
  #header .logo img {
    max-height: 80px !important; /* Mobile scaling */
    height: 80px !important;
  }
  
  .footer .logo img,
  footer .logo img,
  #footer .logo img {
    max-height: 60px !important; /* Proportional mobile footer */
    height: 60px !important;
  }
}