/* ============================
   GLOBAL RESET
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
    font-family: "Inter", sans-serif;
  font-optical-sizing: auto;

  color: #1a1a1a;
  background: #ffffff;
}
section[id] {
  scroll-margin-top: var(--header-offset);
}
/* ============================
   CSS VARIABLES
============================= */
:root {
  --max-width: 1200px;

  --text: #1a1a1a;
  --subtext: #555;
  --light: #f7f7f7;
 
  --accent: #4582DE;
  --accent-dark: #205bb5;

  --card-bg: #ffffff;
  --card-shadow: 0 4px 12px rgba(0,0,0,0.08);

  --banner-height: 360px;
  --header-offset: 0px;

}

/* ============================
   TYPOGRAPHY
============================= */
/* Carrd-like typography tuning */
h1, .hero-title {
  font-size: 3.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h3 {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  font-size: 1.2rem;
  line-height: 1.55;
  letter-spacing: 0;
}

li {
  font-size: 1.2rem;
  line-height: 1.55;
  letter-spacing: 0;
}

section {
  padding: 80px 20px;
}


@media (max-width: 900px) {
  section {
    padding: 60px 20px;
  }
}

p {
  line-height: 1.6;
  color: var(--subtext);
  margin-bottom: 1rem;
}

section {
  padding: 80px 20px;
}

img {
  max-width: 100%;
  display: block;
}
/* Stronger selector to override resets */
.faq-item > .faq-question {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;

  /* Typography control */
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.4;

  /* Layout */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item > .faq-question:focus {
  outline: none;
}

.faq-item > .faq-question:hover {
  opacity: 0.85;
}

/* ============================
   HEADER / NAVIGATION
============================= */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 120px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 10px 18px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-dark);
}

@media (max-width: 720px) {
  .nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 35%; /* ← THIS is the missing piece */
    gap: 10px;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .nav-links {
    display: none;
  }

  .logo-img {
    height: 90px;
  }
}
/* ============================
   HERO SECTION
============================= */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 20px 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 2.9rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--subtext);
  margin-bottom: 28px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 26px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.hero-btn:hover {
  background: var(--accent-dark);
}

.hero-img-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 900px;
  height: auto;
}

/* MOBILE HERO */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 80px 20px;
  }

  .hero-img-wrapper {
    order: -1;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}
/* ============================
   PARALLAX BANNERS
============================= */

.banner-bg {
  height: var(--banner-height);
  background-image: var(--banner-image);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: left;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden; 
  z-index: 0;
  padding-left: 10rem;
  padding-right: 10rem;
}

.banner-bg::after
{ content: ""; position: 
absolute; inset: 0;
background: rgba(255, 255, 255, 0.32); /* stronger white frost */
backdrop-filter: blur(2px); /* frosted glass effect */ 
z-index: 1; /* sits between image + text */
pointer-events: none;

}

.banner-title {
  font-size: 4rem;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
  font-weight: 600;
  z-index: 2;

}

/* MOBILE FALLBACK — disable parallax */
@media (max-width: 900px) {
  .banner-bg {
    background-attachment: scroll;
    height: 200px;
  }

  .banner-title {
    font-size: 2rem;
  }
}
/* ============================
   WHAT WE DO — TWO COLUMN GRID
============================= */

.what-we-do {
  max-width: var(--max-width);
  margin: 0 auto;
}

.wwd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* LEFT COLUMN */
.wwd-left p {
  margin-top: 2.4rem;
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
  color: var(--subtext);
}
.wwd-illustration {
  margin: 30px auto 0 auto; /* centers the image */
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
}

/* RIGHT COLUMN */
.wwd-right {
  background: var(--card-bg);
  padding: 32px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.wwd-subtitle {
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.wwd-item {
  margin-bottom: 28px;
}

.wwd-item h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.wwd-item p {
  font-size: 0.98rem;
  color: var(--subtext);
  line-height: 1.55;
}

/* MOBILE STACK */
@media (max-width: 900px) {
  .wwd-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .wwd-right {
    padding: 24px;
  }
}
/* ============================
   CALCULATORS SECTION
============================= */

.calculators {
  max-width: var(--max-width);
  margin: 0 auto;
}

.calc-intro {
  font-size: 1.1rem;
  color: var(--subtext);
  margin-bottom: 40px;
  max-width: 800px;
}

.calc-subtitle {
  font-size: 1.6rem;
  margin-bottom: 30px;
  font-weight: 600;
}

/* ============================
   ROW LAYOUT
============================= */

.calc-row {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  align-items: flex-start;
}

/* Text column */
.calc-text {
  max-width: 480px;
  margin-top: 14px;
}

/* Calculator card */
.calc-wrapper {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Desktop: row 1 = text | calc, row 2 = calc | text
   (handled by HTML order; no CSS order needed) */

/* ============================
   MOBILE LAYOUT
============================= */

@media (max-width: 900px) {
  .calc-row {
    flex-direction: column;
  }

  /* Mobile ordering: text first, calculator second for BOTH rows */
  .calc-text {
    order: 1;
    margin-bottom: 20px;
  }

  .calc-wrapper {
    order: 2;
  }

  .calc-intro {
    font-size: 1rem;
  }
}

/* ============================
   COLLAPSIBLE TEXT (Mobile)
============================= */

/* Default desktop behavior */
.mobile-moreinfo-toggle {
  display: none;
}

.mobile-moreinfo {
  display: block;
}

/* Mobile behavior */
@media (max-width: 800px) {

  .mobile-moreinfo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    padding: 0;
    margin: 10px 0;
    cursor: pointer;
  }

  .mobile-moreinfo {
    display: none;
    margin-top: 10px;
  }

  .mobile-moreinfo.open {
    display: block;
  }

  .mobile-moreinfo-toggle .chevron {
    transition: transform 0.2s ease;
  }

  .mobile-moreinfo-toggle.open .chevron {
    transform: rotate(180deg);
  }
}

/* ============================
   TYPOGRAPHY + SPACING
============================= */

.calc-desc {
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 6px;
  color: var(--text);
}

.calc-body {
  font-size: 0.98rem;
  color: var(--subtext);
  margin-bottom: 14px;
  line-height: 1.55;
}

/* ============================
   EMAIL FORMS + SUCCESS BOXES
============================= */

.error-block {
  color: #b00000;
  font-size: 12px;
  margin-bottom: 10px;
}

.success-box {
  background: #e8ffe8;
  border-left: 4px solid #0a0;
  padding: 12px;
  margin-top: 12px;
  font-size: 14px;
}

.cert-box {
  background: #fafafa;
  padding: 15px;
  border-left: 3px solid #000;
  margin-top: 10px;
}

.channel-box {
  margin-top: 15px;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

.small-bold {
  font-size: 12px;
  font-weight: bold;
  color: #444;
  margin-bottom: 5px;
}

.error-small {
  color: #d00;
  font-size: 11px;
  margin-bottom: 10px;
  font-weight: bold;
  min-height: 14px;
}

.results-box {
  display: none;
  margin-top: 20px;
  border-top: 2px solid #eee;
  padding-top: 15px;
}

.total-line {
  font-weight: 700;
  font-size: 18px;
  margin-top: 5px;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.primary-btn {
  margin-top: 20px;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.email-form label {
  margin-top: 12px;
  font-weight: 600;
}

.email-form input {
  margin-bottom: 10px;
}


/* ============================
   FAQ SECTION
============================= */

.faq {
  max-width: var(--max-width);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

/* QUESTION BUTTON */
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* UNIVERSAL ACCORDION (desktop + mobile) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  margin-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 2000px; /* unified height */
}

.faq-inner {
  padding: 25px 0;
  max-width: 800px;
  margin: 0 auto;
}

.faq-answer p,
.faq-answer ul {
  margin-bottom: 1rem;
}

.faq-answer ul {
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 6px;
  color: var(--subtext);
}

.faq-divider {
  border-top: 1px solid #eee;
  margin: 15px 0;
}
/* Chevron icon */
.faq-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-left: 12px;
}

.faq-item.active .faq-icon {
  transform: rotate(-135deg);
}

/* Hover highlight */
.faq-question {
  padding: 4px 0;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(0,0,0,0.04);
}

/* ============================
   MOBILE CARD STYLE ONLY
============================= */
@media (max-width: 900px) {
  .faq-item {
    border: none;
    background: var(--card-bg);
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
  }

  .faq-question {
    font-size: 1.1rem;
  }
}
/* ============================
   ABOUT SECTION
============================= */

.about {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--subtext);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.about-img-wrapper {
  display: flex;
  justify-content: center;
}

.about-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* MOBILE STACK */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-img {
    max-width: 340px;
  }
}
/* ============================
   CONTACT SECTION
============================= */

.contact {
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.contact-sub {
  font-size: 1.1rem;
  color: var(--subtext);
  margin-bottom: 40px;
  line-height: 1.55;
}
#contact {
  scroll-margin-top: calc(var(--header-offset) - 65px);
}
/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 28px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row input {
  flex: 1;
}

/* Inputs match calculator style */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #000;
  border-radius: 0;
  font-size: 15px;
  background: #fff;
  color: #000;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0055cc;
  outline: none;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* BUTTON — matches calculator buttons */
.contact-btn {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-btn:hover {
  background: #333;
}

.contact-note {
  font-size: 0.95rem;
  color: var(--subtext);
  margin-top: 10px;
}

/* Contact phone styling */
.contact-phone {
  font-size: 1.15rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  border-bottom: 2px solid #000;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.contact-phone:hover {
  opacity: 0.7;
}
/* MOBILE */
@media (max-width: 720px) {
  .form-row {
    flex-direction: column;
    gap: 14px;
  }
@media (max-width: 720px) {
  #contact {
    scroll-margin-top: calc(var(--header-offset) - 15px);
  }

}

/* ============================
   FOOTER
============================= */

.footer {
  background: #f5f5f5;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.95rem;
  color: var(--subtext);
}


/* ============================
   GLOBAL RESPONSIVE TWEAKS
============================= */

/* Reduce section padding on smaller screens */
@media (max-width: 900px) {
  section {
    padding: 60px 20px;
  }
}

@media (max-width: 600px) {
  section {
    padding: 50px 16px;
  }
}

/* Improve readability on very large screens */
@media (min-width: 1600px) {
  .hero-title {
    font-size: 3.2rem;
  }
}
