/* =========================================================
   Miller Home Protection Law - Main Stylesheet
   File: css/styles.css
   ========================================================= */

/* Base Reset */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #243b53;
  background: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #7c5f12;
}

a:hover {
  color: #102a43;
}

p {
  font-size: 17px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
  background: #102a43;
  color: #ffffff;
  border-bottom: 4px solid #d4af37;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo,
.logo a,
.site-logo,
.site-logo a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 24px;
  line-height: 1.2;
}

.logo span,
.site-logo span {
  display: block;
  color: #d4af37;
  font-size: 14px;
  font-weight: normal;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.main-nav a:hover,
.main-nav a.active {
  color: #d4af37;
}

/* =========================================================
   Buttons
   ========================================================= */

.button {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
}

.primary-button {
  background: #d4af37;
  color: #102a43;
  border-color: #d4af37;
}

.primary-button:hover {
  background: #ffffff;
  color: #102a43;
  border-color: #d4af37;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
}

.secondary-button:hover {
  background: #ffffff;
  color: #102a43;
  border-color: #ffffff;
}

.cta-phone-button {
  background: #102a43;
  color: #ffffff;
  border-color: #102a43;
}

.cta-phone-button:hover {
  background: #d4af37;
  color: #102a43;
  border-color: #d4af37;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  background:
    linear-gradient(rgba(16, 42, 67, 0.88), rgba(16, 42, 67, 0.88)),
    url("../images/hero-home.jpg") center/cover no-repeat;
  color: #ffffff;
  padding: 95px 0;
}

.hero-content {
  max-width: 980px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
  margin: 10px 0 22px;
  color: #ffffff;
}

.hero-subtitle {
  max-width: 880px;
  font-size: 21px;
  line-height: 1.55;
  margin: 0 0 28px;
  color: #eef2f7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.hero-issue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 950px;
  margin: 30px 0 0;
}

.hero-issue-card {
  display: block;
  padding: 20px;
  background: #f5f7fa;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-left: 5px solid #d4af37;
  border-radius: 10px;
  color: #102a43;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.hero-issue-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  color: #102a43;
}

.hero-issue-card span {
  display: block;
  color: #486581;
  font-size: 15px;
  line-height: 1.5;
}

.hero-issue-card:hover {
  background: #fff8e5;
  color: #102a43;
  transform: translateY(-2px);
}

/* =========================================================
   Shared Section Styles
   ========================================================= */

.eyebrow {
  margin: 0 0 10px;
  color: #d4af37;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.dark-eyebrow {
  color: #7c5f12;
}

.problem-section,
.faq-section,
.attorney-section {
  padding: 75px 0;
  background: #ffffff;
}

.services-section {
  padding: 75px 0;
  background: #f5f7fa;
}

.problem-section h2,
.services-section h2,
.faq-section h2,
.attorney-section h2,
.cta-section h2,
.planning-paths-section h2,
.probate-calculator-section h2 {
  font-size: 36px;
  line-height: 1.2;
  color: #102a43;
  margin: 0 0 18px;
}

.section-intro {
  max-width: 900px;
  font-size: 18px;
  color: #486581;
  margin: 0 0 18px;
}

.section-button {
  margin-top: 28px;
}

/* =========================================================
   Cards / Grids
   ========================================================= */

.problem-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.problem-card,
.service-card,
.faq-item {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.06);
}

.problem-card h3,
.service-card h3,
.faq-item h3 {
  color: #102a43;
  line-height: 1.25;
  margin: 0 0 10px;
}

.problem-card p,
.service-card p,
.faq-item p {
  margin-bottom: 0;
}

.service-card {
  border-top: 5px solid #d4af37;
}

.service-card a {
  display: inline-block;
  margin-top: 14px;
  font-weight: bold;
  text-decoration: none;
}

/* =========================================================
   Life Plan / Dark Section
   ========================================================= */

.life-plan-section {
  padding: 75px 0;
  background: #102a43;
  color: #ffffff;
}

.life-plan-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.life-plan-section h2 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 18px;
  color: #ffffff;
}

.life-plan-section p {
  color: #eef2f7;
}

.highlight-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-left: 6px solid #d4af37;
  border-radius: 10px;
  padding: 28px;
}

.highlight-box h3 {
  color: #ffffff;
  margin-top: 0;
}

.highlight-box ul {
  margin: 0;
  padding-left: 20px;
}

.highlight-box li {
  margin-bottom: 10px;
}

/* =========================================================
   Attorney Section
   ========================================================= */

.attorney-content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.attorney-photo {
  width: 320px;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(16, 42, 67, 0.18);
}

.attorney-note {
  font-weight: bold;
  color: #102a43;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.faq-item {
  border-left: 5px solid #d4af37;
}

/* =========================================================
   CTA
   ========================================================= */

.cta-section {
  padding: 75px 0;
  background: #f5f7fa;
  text-align: center;
}

.cta-section p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.phone-number {
  color: #102a43;
  font-size: 30px;
  font-weight: bold;
  margin: 22px 0;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* =========================================================
   Nursing Home Planning Page
   ========================================================= */

.planning-paths-section {
  padding: 75px 0;
  background: #ffffff;
}

.planning-paths-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.planning-path-card {
  background: #f5f7fa;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  padding: 30px;
  border-top: 5px solid #d4af37;
}

.planning-path-card h3 {
  margin-top: 0;
  color: #102a43;
}

.urgent-path {
  background: #fff8e5;
}

.cost-example-box {
  margin-top: 30px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-left: 6px solid #d4af37;
  border-radius: 10px;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cost-card {
  padding: 20px;
  background: #f5f7fa;
  border-radius: 8px;
  text-align: center;
}

.cost-card strong {
  display: block;
  font-size: 24px;
  color: #7c5f12;
  margin-top: 8px;
}

/* =========================================================
   Probate Calculator
   ========================================================= */

.probate-calculator-section {
  padding: 75px 0;
  background: #ffffff;
}

.probate-calculator-box {
  background: #f5f7fa;
  border: 1px solid #d9e2ec;
  border-left: 6px solid #d4af37;
  border-radius: 10px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  margin-top: 28px;
}

.calculator-input label {
  display: block;
  font-weight: bold;
  color: #102a43;
  margin-bottom: 8px;
}

.calculator-input input[type="number"],
.calculator-input input[type="text"] {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  border: 1px solid #bcccdc;
  border-radius: 6px;
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex !important;
  gap: 10px;
  align-items: center;
  font-weight: normal !important;
  margin-bottom: 18px;
}

.checkbox-label input {
  transform: scale(1.2);
}

.calculator-results {
  background: #ffffff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.08);
}

.calculator-results h3 {
  color: #102a43;
  margin-top: 0;
}

.calculator-results p {
  margin: 8px 0;
}

.calculator-results .total-fee {
  font-size: 26px;
  font-weight: bold;
  color: #7c5f12;
  margin-top: 16px;
}

.calculator-results .avoid-message {
  margin-top: 18px;
  padding: 14px;
  background: #fff8e5;
  border-left: 5px solid #d4af37;
  font-weight: bold;
}

.calculator-breakdown {
  margin-top: 16px;
  text-align: left;
  font-size: 14px;
  color: #52606d;
  line-height: 1.5;
}

.calculator-note {
  font-size: 14px;
  margin-top: 18px;
  color: #52606d;
}

/* =========================================================
   Share Box / Floating Share Button
   ========================================================= */

.share-box {
  margin-top: 28px;
  padding: 20px;
  background: #f5f7fa;
  border-left: 5px solid #d4af37;
  border-radius: 8px;
}

.share-box p {
  margin-top: 0;
  font-weight: bold;
  color: #102a43;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.share-links a {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid #d4af37;
  border-radius: 6px;
  color: #102a43;
  font-weight: bold;
  text-decoration: none;
  background: #ffffff;
}

.share-links a:hover {
  background: #d4af37;
  color: #102a43;
}

.floating-share-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  background: #d4af37;
  color: #102a43;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.floating-share-button:hover {
  background: #ffffff;
  color: #102a43;
}
/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: #102a43;
  color: #ffffff;
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.4fr;
  gap: 34px;
  align-items: start;
}

.footer-column h3 {
  color: #ffffff;
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.25;
}

.footer-column p {
  color: #d9e2ec;
  font-size: 15px;
  margin: 0 0 12px;
}

.footer-column a {
  color: #ffffff;
  text-decoration: none;
}

.footer-column a:hover {
  color: #d4af37;
}

/* Brand column: left justified */

.footer-brand {
  text-align: left;
}

.footer-brand h3,
.footer-brand p {
  text-align: left;
}

/* Services and Connect columns: headings line up with links */

.footer-services,
.footer-connect {
  text-align: left;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
}

.footer-links a:hover {
  color: #d4af37;
}

/* Social links stacked like Services links */

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.social-buttons a {
  color: #ffffff;
  text-decoration: none;
  font-weight: normal;
}

.social-buttons a:hover {
  color: #d4af37;
}

/* Contact column: centered */

.footer-contact {
  text-align: center;
}

.footer-contact h3,
.footer-contact p {
  text-align: center;
}

.footer-disclaimer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-disclaimer p {
  color: #cbd5e1;
  font-size: 13px;
  text-align: center;
}

.footer-bottom {
  margin-top: 22px;
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
}

.footer-bottom p {
  color: #cbd5e1;
  font-size: 14px;
  margin: 4px 0;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #d4af37;
}

/* =========================================================
   Forms / Contact Page
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.contact-form {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.06);
}

.contact-form label {
  display: block;
  font-weight: bold;
  color: #102a43;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px;
  border: 1px solid #bcccdc;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 16px;
}

.contact-form textarea {
  min-height: 150px;
}

/* =========================================================
   Responsive / Mobile
   ========================================================= */

@media (max-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  p,
  .hero-subtitle {
    text-align: left;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    padding: 70px 0;
  }

  .hero-issue-grid,
  .problem-grid,
  .planning-paths-grid,
  .cost-grid,
  .probate-calculator-box,
  .attorney-content,
  .life-plan-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .attorney-photo {
    width: 100%;
    max-width: 320px;
  }

  .footer-contact,
  .footer-contact h3,
  .footer-contact p {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 19px;
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .button,
  .cta-buttons .button {
    text-align: center;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .problem-section h2,
  .services-section h2,
  .faq-section h2,
  .attorney-section h2,
  .cta-section h2,
  .planning-paths-section h2,
  .probate-calculator-section h2,
  .life-plan-section h2 {
    font-size: 30px;
  }

  .floating-share-button {
    right: 14px;
    bottom: 14px;
    padding: 11px 14px;
    font-size: 14px;
  }
}

/* =========================================================
   Final Hero Button Fix
   Makes the hero Call and Probate Calculator buttons a solid soft white.
   ========================================================= */

.hero .hero-buttons a.button.secondary-button,
.hero-buttons a.button.secondary-button {
  background-color: #f5f7fa !important;
  color: #102a43 !important;
  border: 2px solid #f5f7fa !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18) !important;
}

.hero .hero-buttons a.button.secondary-button:hover,
.hero-buttons a.button.secondary-button:hover {
  background-color: #d4af37 !important;
  color: #102a43 !important;
  border-color: #d4af37 !important;
}

