/* ===============================
   MEDIA QUERIES - RESPONSIVE LAYOUT
   =============================== */

/* ======TABLET OPTIMIZATION - iPad / Galaxy Tab / Surface ======= */
@media (min-width: 768px) and (max-width: 1180px) {

    .navbar {
    width: 92%;
    height: 60px;
    padding: 4px 10px;
  }

  .nav-links {
    font-size: 11px;
  }

  .nav-links a {
    padding: 8px 12px;
  }

  .login-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .hero {
    height: 92vh;
  }

  .hero-content {
    padding: 74% 4% 4%;
    max-width: 1100px;
  }

  .hero-eyebrow {
    font-size: 13px;
  }

  .hero-title {
    font-size: 42px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 15px;
    max-width: 760px;
  }

  .hero-cta {
    gap: 16px;
  }

  .search-bar {
    margin: 100px auto -20px auto;
    max-width: 540px;
    padding: 18px 10px;
  }

  .filter-item {
    width: 120px;
    height: 36px;
    font-size: 12px;
  }

  .search-action {
    padding: 10px 18px;
    font-size: 12px;
  }

  .clients-section {
    min-height: 20vh;
    padding: 70px 50px 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 42px;
    text-align: center;
  }

  /* REMOVE divider line */
  .clients-divider {
    display: none;
  }

  /* Heading block */
  .clients-left {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .clients-tag {
    font-size: 26px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
  }

  .clients-left h2 {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
  }

  .clients-left p {
    font-size: 15px;
    letter-spacing: 0.5px;
    max-width: 420px;
    margin-top: 6px;
  }

  /* Image rail container */
  .clients-right {
    width: 100%;
    max-width: 1100px;
    margin-top: 16px;
    overflow: hidden;
    position: relative;
  }

  /* Edge fades (softened) */
  .clients-right::before,
  .clients-right::after {
    width: 80px;
    opacity: 0.85;
  }

  /* Image track */
  .clients-track {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    width: max-content;
    margin: 0 auto;
  }

  /* Images */
  .clients-track img {
    width: 130px;
    height: 170px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(212,175,55,0.35);
    opacity: 0.92;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .clients-track img:hover {
    transform: translateY(-6px) scale(1.04);
    opacity: 1;
  }

  .success-videos {
    gap: 30px;
  }

  .video-card {
    width: 260px;
    height: 420px;
  }

  .success-title {
    font-size: 36px;
    margin-bottom: 50px;
  }

  .expert-section {
    margin: 90px auto;
    padding: 0 40px;
    max-width: 1100px;
  }

  /* Heading */
  .expert-heading {
    font-size: 36px;
    line-height: 1.25;
    margin-bottom: 48px;
    text-align: center;
  }

  /* Card layout */
  .expert-card {
    display: grid;
    grid-template-columns: 30% 70%;
    grid-template-rows: auto auto;
    column-gap: 42px;
    row-gap: 34px;
    padding: 34px;
    align-items: start;
  }

  /* Image block */
  .expert-image {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    height: 300px;
    border-radius: 18px;
    overflow: hidden;
  }

  .expert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  /* Content block */
  .expert-content {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    justify-content: left;
    margin-left: -20px;
  }

  .expert-content h3 {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .expert-content h3 span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    opacity: 0.85;
  }

  /* Description */
  .expert-desc {
    font-size: 15px;
    line-height: 1.5;
    max-width: 480px;
  }

  /* Stats section (bottom) */
  .expert-stats {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    padding-top: 26px;
    margin-left: -224px;
    margin-right: 44px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .stat {
    padding: 20px;
    text-align: center;
  }

  .stat h4 {
    font-size: 34px;
    line-height: 1;
    margin: 6px auto;
  }

  .stat span {
    font-size: 13px;
    letter-spacing: 0.4px;
    opacity: 0.85;
  }

  .listings-section{
    max-width: 90%;
    margin: 40px 40px;
  }
  .listings-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 46px;
  }

  /* Grid container */
  .listings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 700px;
    justify-items: center; /* centers cards */
  }

  /* Cards */
  .listing-card {
    width: 100%;          /* fill grid column */
    max-width: 100%;     /* remove shrink */
    margin: auto;           /* remove uneven spacing */
  }

  .calculators-column {
    flex-wrap: wrap;
    gap: 24px;
  }

  .calculator-card {
    width: 240px;
    height: 400px;
  }

  .testimonials h2 {
    font-size: 36px;
  }

  .testimonial-card{
    max-width: 50%;
  }

  .final-cta {
    padding: 90px 4%;
  }

  .cta-container {
    grid-template-columns: 1fr;
    gap: 50px;
    justify-items: center;
    text-align: center;
  }

  .cta-content h2 {
    margin-top: 0;
    font-size: 44px;
    line-height: 1.15;
  }

  .cta-content p {
    margin: 0 auto;
    font-size: 10.6px;
    max-width: 720px;
    font-weight: 0;
  }

  .cta-social {
    display: none;
  }

  /* FORM BLOCK (BOTTOM – VISUAL ANCHOR) */
  .cta-form {
    padding: 28px 32px 20px;
  }

  /* Top input row – tighter & aligned */
  .form-row {
    gap: 10px;
    margin-bottom: 10px;
  }

  .cta-form input {
    padding: 12px 14px;
    font-size: 13.5px;
    border-radius: 9px;
  }

  /* Textarea refinement */
  .cta-form textarea {
    height: 105px;
    max-width: 700px;
    padding: 14px;
    font-size: 13.5px;
    margin-bottom: 14px;
    border-radius: 10px;
  }

  /* Consent row – tighter, cleaner */
  .form-declaration {
    gap: 10px;
    margin: 6px auto 16px;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .form-declaration span {
    max-width: 92%;
  }

  /* Button refinement */
  .cta-form button {
    padding: 14px;
    font-size: 14px;
    border-radius: 12px;
  }

  /* Trust text */
  .cta-trust {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.7;
  }

.premium-footer {
    padding: 80px 7% 25px;
  }

  .footer-main {
    grid-template-columns: 2.6fr 1fr 1fr; /* Brand dominant */
    gap: 30px; /* Quick Links & Services closer */
  }

  /* Branding section */
  .brand-row {
    gap: 18px;
  }

  .brand-row img {
    width: 100px;
    margin-top: 0px;
  }

  .brand-text h2 {
    font-size: 20px;
  }

  .brand-text p {
    font-size: 13.6px;
    line-height: 1.5;
    max-width: 450px;
  }

  /* Remove desktop offsets */
  .footer-legal-inline,
  .footer-socials {
    margin-top: 0px;
    margin-left: 118px;
  }

  /* Tighten link groups */
  .footer-links-group h4 {
    margin-bottom: 18px;
    font-size: 1rem;
  }

  .footer-links-group a {
    margin-bottom: 12px;
    font-size: 0.9rem;
  }

  /* Footer bottom spacing */
  .footer-bottom {
    margin-top: 55px;
  }
}

/* ====== MOBILE OPTIMIZATION - PHONES ======= */
@media (max-width: 500px) {

  .navbar {
    width: 94%;
    height: 66px;
    padding: 4px 8px;
  }

  .nav-links {
    font-size: 10px;
  }

  .nav-links a {
    padding: 6px 8px;
  }

  .login-btn {
    display: none;
  }

  .hero {
    height: 100vh;
  }

  .hero-content {
    padding: 110% 4% 4%;
    max-width: 100%;
  }

  .hero-eyebrow {
    font-size: 11px;
  }

  .hero-title {
    font-size: 30px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 14px;
    max-width: 100%;
  }

  .hero-cta {
    max-width: 100%;
    gap: 12px;
    flex-direction: column;
  }

  .search-bar {
    margin: 80px auto -22px auto;
    max-width: 90%;
    padding: 18px 10px;
  }

  .filter-item {
    width: 90px;
    height: 34px;
    font-size: 10px;
  }

  .search-action {
    padding: 9px 12px;
    font-size: 10px;
  }

  .clients-section {
    min-height: 20vh;
    padding: 70px 0px 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 42px;
    text-align: center;
  }

  .clients-divider {
    display: none;
  }

  .clients-tag {
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
  }

  .clients-left h2 {
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
  }

  .clients-left p {
    font-size: 10px;
    letter-spacing: 0.5px;
    max-width: 420px;
    margin-top: 2px;
  }

  /* Image rail container */
  .clients-right {
    width: 100%;
    max-width: 500px;
    margin-top: 0px;
    overflow: hidden;
    position: relative;
  }

  /* Edge fades (softened) */
  .clients-right::before,
  .clients-right::after {
    width: 80px;
    opacity: 0.85;
  }

  /* Image track */
  .clients-track {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    width: max-content;
    margin: 0 auto;
  }

  /* Images */
  .clients-track img {
    width: 140px;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(212,175,55,0.35);
    opacity: 0.92;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .clients-track img:hover {
    transform: translateY(-6px) scale(1.04);
    opacity: 1;
  }

  .success-videos {
    display: flex;
    flex-direction: column;   /* stack vertically */
    align-items: center;      /* center cards horizontally */
    gap: 22px;
  }

  .video-card {
    width: 100%;              /* optional – makes it responsive */
    max-width: 360px;         /* keeps nice proportion */
  }

  .success-videos .video-link:nth-child(n+5){
    display: none !important;
  }

  .success-title {
    font-size: 28px;
    margin-bottom: 36px;
  }

  .expert-section {
    margin: 60px auto;
    padding: 0 18px;
  }

  .expert-heading {
    font-size: 34px;
    text-align: center;
    margin-bottom: 28px;
  }

  .expert-card {
    display: flex;                 /* override grid */
    flex-direction: column;        /* stack everything */
    align-items: center;
    padding: 22px;
    gap: 20px;
    text-align: center;
  }

  /* IMAGE */
  .expert-image {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
  }

  .expert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  /* NAME */
  .expert-content {
    margin: 0;
  }

  .expert-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .expert-content h3 span {
    font-size: 12px;
    opacity: 0.8;
  }

  /* DESCRIPTION */
  .expert-desc {
    font-size: 13px;
    line-height: 1.5;
    text-align: justify;
    max-width: 100%;
  }

  /* STATS */
  .expert-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    margin: 10px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .stat {
    padding: 14px;
  }

  .stat h4 {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .stat span {
    font-size: 11.5px;
    opacity: 0.85;
  }

  .consultation-header h2 {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .consultation-header p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 88%;
    margin-bottom: 12px;
  }

  .listings-section {
    max-width: 94%;
    margin: 30px auto;
    text-align: center;          /* centers heading */
  }

  .listings-section h2 {
    font-size: 30px;
    margin-bottom: 36px;
  }

  /* GRID CONTAINER */
  .listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 100%;
    justify-items: center;       /* 👈 centers cards horizontally */
  }

  /* PROPERTY CARD */
  .listing-card {
    width: 100%;
    max-width: 340px;            /* keeps card nicely sized */
    margin: 0 auto;
    text-align: left;            /* keeps content inside readable */
  }

  .calculators-column {
    display: none;
  }

  .testimonials h2 {
    font-size: 34px;
  }

  .testimonial-card {
    max-width: 100%;
  }

  .final-cta {
    padding: 60px 0px;
  }

  .cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    text-align: center;
  }

  /* TEXT BLOCK */
  .cta-content {
    width: 100%;
    max-width: 100%;
  }

  .cta-content h2 {
    font-size: 34px;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .cta-content p {
    font-size: 12px;
    font-weight: 100;
    letter-spacing: 1px;
    line-height: 1.5;
    text-align: justify;
    max-width: 100%;
    margin: 0px 20px;
  }

  .cta-social{
    display: none;
  }

  /* FORM CARD */
  .cta-form {
    width: 84%;
    max-width: 84%;
    padding: 24px 16px;
    border-radius: 16px;
  }

  /* STACK INPUTS */
  .form-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .cta-form input,
  .cta-form textarea {
    width: 100%;
    box-sizing: border-box;   /* 🔥 ensures no overflow */
    padding: 14px;
    font-size: 13px;
    border-radius: 10px;
  }

  .cta-form textarea {
    height: 110px;
    resize: none;
  }

  /* CONSENT */
  .form-declaration {
    margin: 16px 0;
    font-size: 10px;
    line-height: 1.5;
    text-align: left;
  }

  /* BUTTON */
  .cta-form button {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    border-radius: 12px;
  }

  .cta-trust {
    font-size: 10px;
    margin-top: 12px;
    text-align: center;
  }

  .premium-footer {
    padding: 60px 20px 30px;
  }

  .footer-main {
    display: grid;                 /* override desktop */
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .brand-row {
    display: grid;
    grid-template-columns: 30% 70%;
    align-items: center;
    gap: 14px;
  }

  .brand-row img {
    width: 100%;
    max-width: 85px;
    margin-top: 0;
  }

  .brand-text h2 {
    font-size: 24px;
    line-height: 1.4;
    margin-left: -20px;
  }

  .brand-text p {
    font-size: 13px;
    line-height: 1.5;
    margin-left: -20px;
  }

  .footer-legal-inline,
  .footer-socials {
    margin-left: 110px;
    margin-top: 0px;
  }

  /* =========================
     QUICK LINKS & SERVICES
  ========================== */

  #quick-links {
    grid-column: 1 / 2;
  }

  #footer-services {
    grid-column: 2 / 3;
  }

  #quick-links h4,
  #footer-services h4 {
    font-size: 14px;
    margin-bottom: 16px;
  }

  #quick-links a,
  #footer-services a {
    font-size: 13px;
    margin-bottom: 10px;
    display: block;
  }

  /* =========================
     FOOTER BOTTOM
  ========================== */

  .footer-bottom {
    margin-top: 40px;
    padding-top: 16px;
    font-size: 12px;
    text-align: center;
  }
}

