/* =============================================
   SUNSTATE MORTGAGE LLC - STYLESHEET
   Primary Color: #00BCD4 (Cyan/Teal)
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.social-icon:hover {
  opacity: 0.7;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #333;
  font-size: 16px;
  transition: color 0.2s;
}

.phone-link:hover {
  color: #00BCD4;
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  background: #00BCD4;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: 16px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(0,0,0,0.15);
}

.btn-apply {
  background: #FF9800 !important;
  border-radius: 25px !important;
  margin: 8px 10px !important;
  padding: 10px 22px !important;
  color: #fff !important;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}

.btn-apply:hover {
  background: #F57C00 !important;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-top: 3px solid #00BCD4;
  z-index: 100;
}

.dropdown-menu li a {
  color: #333;
  padding: 10px 16px;
  font-size: 14px;
}

.dropdown-menu li a:hover {
  background: #f5f5f5;
  color: #00BCD4;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 10px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 580px;
  background: url('assets/hero-bg.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 50, 80, 0.45);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 20px;
  width: 100%;
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 30px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: #00BCD4;
  color: #fff;
  border-color: #00BCD4;
}

.btn-primary:hover {
  background: #0097A7;
  border-color: #0097A7;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

.btn-outline-dark {
  background: transparent;
  color: #333;
  border: 2px solid #333;
  display: inline-block;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.2s;
}

.btn-outline-dark:hover {
  background: #333;
  color: #fff;
}

.btn-submit {
  background: #00BCD4;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
  width: 100%;
}

.btn-submit:hover {
  background: #0097A7;
}

.btn-details {
  background: #444;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s;
}

.btn-details:hover {
  background: #222;
}

/* Hero Form */
.hero-form {
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 30px;
  width: 380px;
  min-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-form h3 {
  font-size: 20px;
  color: #00BCD4;
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid #00BCD4;
  padding-bottom: 10px;
}

/* Forms */
.form-row {
  display: flex;
  gap: 12px;
}

.form-group {
  flex: 1;
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00BCD4;
  background: #fff;
}

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
}

.form-check input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #00BCD4;
}

.form-check label {
  font-size: 11px;
  color: #777;
  line-height: 1.5;
}

.form-check label a {
  color: #00BCD4;
  text-decoration: underline;
}

.req {
  color: #e53935;
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features {
  background: #00BCD4;
  padding: 0;
}

.features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
}
.feature-card-link:hover .feature-card,
.feature-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.feature-card {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
  cursor: pointer;
}

.feature-card:last-child {
  border-right: none;
}

.feature-card:hover {
  background: rgba(0,0,0,0.1);
}

.feature-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.feature-icon svg {
  stroke: #fff;
}

.feature-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  padding: 70px 0;
  background: #fff;
}

.about-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  margin-bottom: 28px;
  text-align: center;
  line-height: 1.3;
}

.about-section p {
  margin-bottom: 18px;
  color: #555;
  font-size: 15px;
  line-height: 1.8;
}

/* =============================================
   CALCULATOR SECTION
   ============================================= */
.calculator-section {
  background: #f5f5f5;
  padding: 70px 0;
  position: relative;
}

.calculator-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/calc-bg.jpg') center center / cover no-repeat;
  opacity: 0.08;
}

.calculator-section .container {
  position: relative;
  z-index: 1;
}

.calculator-section h2 {
  font-size: 30px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.calc-subtitle {
  color: #666;
  margin-bottom: 30px;
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: #fff;
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.calc-inputs h3,
.calc-results h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.calc-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.calc-field {
  flex: 1;
  margin-bottom: 16px;
}

.calc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.calc-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fafafa;
  cursor: pointer;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.range-row input[type="range"] {
  flex: 1;
  min-width: 100px;
  accent-color: #00BCD4;
  cursor: pointer;
}

.range-row input[type="text"] {
  width: 110px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  text-align: right;
  background: #fafafa;
}

.calc-disclaimer {
  font-size: 12px;
  color: #888;
  margin-top: 20px;
  font-style: italic;
}

/* Chart */
.chart-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: #aaa;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.tab-btn.active {
  color: #333;
  border-bottom: 2px solid #333;
}

.chart-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
}

.chart-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 12px;
  color: #666;
  pointer-events: none;
}

.payment-amount {
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

.payment-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #555;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Overview Table */
.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.overview-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
}

.overview-table .total-row td {
  border-top: 2px solid #333;
  border-bottom: none;
  font-size: 15px;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
  padding: 70px 0;
  background: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 12px;
  color: #555;
  line-height: 1.7;
}

.contact-info a {
  color: #00BCD4;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #006064;
  color: #fff;
  padding: 50px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 40px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-link {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 16px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* =============================================
   MODAL
   ============================================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal-content h3 {
  font-size: 24px;
  color: #00BCD4;
  margin-bottom: 12px;
}

.modal-content p {
  color: #555;
  margin-bottom: 24px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .features-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:nth-child(2) {
    border-right: none;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-inner {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    background: rgba(0,0,0,0.1);
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .hero-inner {
    flex-direction: column;
    padding: 40px 20px;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .hero-form {
    width: 100%;
    min-width: unset;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .calc-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .features-inner {
    grid-template-columns: 1fr;
  }

  .feature-card {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .top-bar-inner {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 30px;
  }

  .calc-row {
    flex-direction: column;
  }
}
