/* =======================================================
   ROOT VARIABLES (Brand Colors & Global Tokens)
======================================================= */
:root {
  --navy: #0E2A47;
  --blue: #1C4E80;
  --gold: #C9A227;
  --light: #F8F9FA;
  --dark: #222;
}

/* =======================================================
   GLOBAL BUTTON (used on all pages)
======================================================= */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #E6C45A, #C9A227, #A67C00);
  color: var(--navy);
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* ======================================
   GOOGLE REVIEW SECTION
====================================== */

.review-actions{
  margin-top:30px;
}

.review-qr{
  margin-top:40px;
}

.review-qr img{
  width:180px;
  border-radius:6px;
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.review-qr p{
  margin-bottom:10px;
  font-weight:600;
}

/* =======================================================
   GLOBAL RESET
======================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}


/* =======================================================
   NAVIGATION
======================================================= */
nav {
  background: var(--navy);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
nav .logo {
  text-decoration: none;
  color: white;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

nav .logo-sub {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 4px;
  color: var(--gold);
}

nav .logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

nav .logo:hover::after {
  width: 100%;
}

/* Navigation Links */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 17px;
  transition: 0.3s;
}

nav ul li a:hover {
  color: var(--gold);
}


/* =======================================================
   HERO SPLIT SECTION
======================================================= */

.hero-split {

  position: relative;

  min-height: 520px;

  background-image:
    linear-gradient(
      to right,
      rgba(2,6,23,0.95) 0%,
      rgba(2,6,23,0.90) 25%,
      rgba(2,6,23,0.65) 45%,
      rgba(2,6,23,0.25) 60%,
      rgba(2,6,23,0.0) 75%
    ),
    url("../images/hero-section.png");

  background-size: cover;
  background-position: right bottom;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  padding: 80px 40px;

}

/* Hero overlay container */
.hero-overlay {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  padding: 0 20px;
}

/* Hero text */
.hero-text {
  max-width: 540px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.hero-text h1 {
  font-size: 46px;
  color: white;
}

.hero-text h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-top: 10px;
}

.hero-sub {
  margin-top: 10px;
  font-size: 18px;
  color: var(--gold);
  font-weight: 600;
}

.hero-description {
  margin-top: 25px;
  max-width: 520px;
}


.hero-description h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: white;
}

.hero-description p {
  font-size: 16px;
  line-height: 1.7;
  color: #e3e8ef;
}
.hero-content {
  display: flex;
  align-items: center;
  gap: 35px;
}

/* Martha portrait */
.hero-image img {
  width: 200px;
  border-radius: 8px;
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

/* =======================================================
   GENERAL SECTION STRUCTURE
======================================================= */
.section {
  padding: 100px 20px;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

/* Section Headings */
.section h2 {
  font-size: 34px;
  color: var(--navy);
  margin-bottom: 20px;
  position: relative;
}

/* Decorative Gold Line Under Headings */
.section h2::after {
  content: "";
  width: 170px; /* Adjust here if needed */
  height: 3px;
  background: var(--gold);
  display: block;
  margin: 18px auto 0;
}

.section p {
  max-width: 750px;
  margin: 20px auto;
  font-size: 18px;
}
.section + .section {
  padding-top: 10px;
}

/* =======================================================
   PROPERTY SEARCH SECTION
======================================================= */

.property-search {
  background: var(--blue);
  color: white;
}

.property-search h2 {
  color: white;
}

.property-search p {
  max-width: 650px;
}

/* =======================================================
   SERVICES SECTION
======================================================= */
.services {
  background: var(--blue);
  color: white;
}

.services h2 {
  color: white;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;
  justify-content: center;
}

.card {
  background: var(--navy);
  padding: 35px;
  width: 300px;
  border-radius: 6px;
  text-decoration: none;
  display: block;
  color: white; /* Important so text stays white */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

.card h3 {
  color: var(--gold);
  margin-bottom: 15px;
}

.card p {
  font-size: 16px;
}

/* =======================================================
   WHY SECTION
======================================================= */
.why-list {
  margin-top: 40px;
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.why-list li {
  margin-bottom: 15px;
  font-size: 18px;
}


/* =======================================================
   FOOTER
======================================================= */
footer {
  background: var(--navy);
  color: white;
  padding: 90px 20px;
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: auto;
}

.footer-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-credentials {
  font-size: 15px;
  color: #cfd8e3;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

.footer-credentials .divider {
  margin: 0 10px;
  color: var(--gold);
}

.footer-copy {
  font-size: 14px;
  color: #9fb2c7;
}

footer span {
  color: var(--gold);
}


/* =======================================================
   WHY SECTION (Light Background Contrast)
======================================================= */
.why-section {
  background: #e6ebf1;
}

/* =======================================================
   INTERNAL PAGE INTRO SECTION
======================================================= */
.page-intro {
  padding: 100px 20px 35px 20px;
}

.page-content {
  padding: 40px 20px 120px 20px;
}

/* =======================================================
   CONTACT PAGE
======================================================= */
.contact-details {
  margin-bottom: 60px;
  font-size: 19px;
}


.contact-details a:hover {
  color: var(--gold);
}

/* =======================================================
   CONTACT PAGE REFINEMENT
======================================================= */


.contact-intro {
  font-size: 18px;
  margin-bottom: 35px;
}

.contact-details p {
  margin-bottom: 12px;
}

.contact-details a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.contact-details a:hover {
  color: var(--gold);
}

.contact-cta h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--navy);
}

.contact-cta p {
  margin-bottom: 25px;
}


/* =======================================================
   CONTACT PANEL (optional polish)
======================================================= */
.contact-details,
.contact-cta {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

/* =======================================================
   CONTACT PAGE STRUCTURE
======================================================= */
.contact-section {
  max-width: 900px;
  padding-top: 35px;
}

/* =======================================================
   GALLERY SECTION
======================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.gallery-item img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.03);
}

.gallery-section {
  background: #eef2f6;
}


/* ===============================
   NAV TOGGLE BUTTON
================================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: white;
  transition: 0.3s ease;
}

/* Hamburger → X animation */
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =======================================================
   RESPONSIVE DESIGN
======================================================= */
@media (max-width: 768px) {

  nav.main-nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10000;
  }

  .nav-toggle {
    display: flex;
    z-index: 10001;
  }

  /* IMPORTANT: Kill desktop layout first */
  nav.main-nav ul {
    all: unset;                 /* ← This resets desktop flex rules */
    
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: var(--navy);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    padding-top: 120px;
    gap: 25px;
    text-align: center;

    transition: right 0.35s ease;
    z-index: 9999;
  }

  nav.main-nav ul li {
    list-style: none;
  }

  nav.main-nav ul.active {
    right: 0;
  }

  body.nav-open {
    overflow: hidden;
  }

  .section {
    padding: 60px 20px;
  }

  .page-intro {
    padding: 70px 20px 25px 20px;
  }
  
.hero-split {
  padding: 90px 25px 60px;
  background-position: center;
}

  .hero-text h1 {
    font-size: 34px;
  }
  
.hero-content {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 20px;
}

.hero-image {
  margin-bottom: 10px;
}

.hero-image img {
  width: 160px;
}

.hero-text .btn {
  margin-top: 10px;
}

.hero-split {
  min-height: auto;
}

.hero-text .btn {
  display: inline-block;
}

}

/* =======================================================
   SCROLL REVEAL ANIMATION
======================================================= */

.reveal{
  opacity:0;
  transform:translateY(40px);
  transition:opacity .8s ease, transform .8s ease;
  will-change: transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.no-js .reveal{
  opacity:1;
  transform:none;
}

/* =======================================================
   LIGHTBOX SYSTEM
======================================================= */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 45, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
  z-index: 10000;
}

#lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: 0.4s ease;
}

#lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* =======================================================
   MORTGAGE CALCULATOR
======================================================= */

.calculator-section {
  background: #eef2f6;
}

.calculator-wrapper {
  display: flex;
  gap: 60px;
  max-width: 1100px;
  margin: auto;
  align-items: flex-start;
}

/* ===============================
   INPUT PANEL
================================= */

.calculator-inputs {
  flex: 1;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.calculator-inputs h3 {
  margin-bottom: 20px;
  color: var(--navy);
}

.calculator-inputs label {
  display: block;
  margin-top: 18px;
  font-weight: 600;
  font-size: 14px;
}

.calculator-inputs input,
.calculator-inputs select {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #d6dde5;
  border-radius: 4px;
  font-size: 15px;
}

.calculator-inputs hr {
  margin: 30px 0;
  border: none;
  border-top: 1px solid #e0e6ec;
}

.calculator-inputs .btn {
  margin-top: 30px;
  width: 100%;
}


/* ===============================
   RESULTS PANEL
================================= */

.calculator-results {
  flex: 1;
  background: var(--navy);
  color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.calculator-results h3 {
  margin-bottom: 25px;
}

.result-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 15px;
}

.result-total {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: bold;
  color: var(--gold);
}


/* ===============================
   ADVANCED SECTION
================================= */

.advanced-section {
  background: white;
}


/* =======================================================
   RESPONSIVE - STACK ON MOBILE
======================================================= */

@media (max-width: 992px) {

  .calculator-wrapper {
    flex-direction: column;
    gap: 40px;
  }

}

.mortgage-summary {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.summary-stats {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.summary-box {
  background: var(--navy);
  color: white;
  padding: 30px;
  border-radius: 8px;
}

.summary-box h3 {
  margin-bottom: 10px;
  color: var(--gold);
}

.summary-box p {
  font-size: 22px;
  font-weight: bold;
}

.summary-chart {
  background: white;
  padding: 30px;
  border-radius: 8px;
}

/* Mobile */
@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}


.btn-secondary {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--gold);
  color: white;
}

.advanced-fields {
  display: none;
  margin-top: 20px;
}

#toggleCosts {
  width: 100%;
  margin-top: 5px;
}
.summary-chart {
  background: white;
  padding: 30px;
  border-radius: 8px;
  height: 400px; /* desktop height */
}

@media (max-width: 768px) {
  .summary-chart {
    height: 520px; /* taller on mobile */
  }
}

@media (max-width:768px){

.review-summary{
flex-direction:column;
gap:25px;
}

}

/* ======================================
TESTIMONIALS
====================================== */

.testimonial-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:30px;
margin-top:40px;
}

.testimonial{
background:white;
padding:30px;
border-radius:8px;
box-shadow:0 15px 35px rgba(0,0,0,0.08);
text-align:left;
display:block;
}

.stars{
color:var(--gold);
font-size:18px;
margin-bottom:10px;
}

.testimonial p{
font-style:italic;
margin-bottom:15px;
}

.testimonial strong{
color:var(--navy);
font-size:14px;
}

/* ======================================
REVIEW SUMMARY
====================================== */

.review-summary{
display:flex;
align-items:center;
justify-content:center;
gap:60px;
margin-top:30px;
flex-wrap:wrap;
}

.review-score{
text-align:center;
}

.review-score .score{
font-size:48px;
font-weight:700;
color:var(--navy);
}

.rating-stars{
color:var(--gold);
font-size:20px;
margin:5px 0;
}

.review-text{
max-width:450px;
text-align:center;
}

.review-text h3{
margin-bottom:10px;
color:var(--navy);
}

.install-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

@media (max-width: 768px) {
  #installApp {
    width: 80%;
    max-width: 300px;
  }
}