/* ============================================================
   RESPONSIVE.CSS - Breakpoints & Media Queries
   Premium Accountancy Website
   ============================================================ */

/* -------- TABLET (768px+) -------- */
@media (min-width: 768px) {

  /* Navigation */
  .nav__menu {
    display: flex;
  }

  .nav__phone {
    display: flex;
  }

  .nav__social {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__hamburger {
    display: none;
  }

  /* Hero */
  .hero__container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-top: 0;
    padding-bottom: 0;
    min-height: calc(100vh - var(--nav-height));
    justify-items: start;
    text-align: left;
  }

  .hero__subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__visual {
    display: block;
    justify-self: end;
  }

  .hero__scroll-indicator {
    bottom: 44px;
  }

  /* Pain Points */
  .pain__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  /* Services */
  .services__card {
    padding: 1.45rem 1.35rem;
  }

  /* Founder spotlight */
  .founder-spotlight__container {
    grid-template-columns: minmax(220px, 330px) 1fr;
    gap: 2.25rem;
  }

  .founder-spotlight__media {
    justify-content: flex-start;
  }

  .founder-spotlight__content {
    text-align: left;
  }

  .founder-spotlight__text {
    margin-left: 0;
    margin-right: 0;
  }

  .founder-spotlight__bio p {
    margin-left: 0;
    margin-right: 0;
  }

  .founder-spotlight__badges,
  .founder-spotlight__actions {
    justify-content: flex-start;
  }

  .founder-spotlight__award {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    align-items: start;
    max-width: 740px;
  }

  .founder-spotlight__award::before {
    left: 0;
    width: min(100%, 740px);
  }

  .founder-spotlight__actions {
    margin-left: 0;
  }

  /* Framework */
  .framework__cta {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }

  .framework__cta p {
    max-width: 560px;
  }

  /* Stats */
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Why */
  .why__card {
    padding-right: 0.35rem;
  }

  /* Process & Framework */
  .process__line,
  .framework__line {
    left: 24px;
  }

  /* Pricing */
  .pricing__grid--vertical {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .pricing__card--vertical .pricing__card-actions .btn {
    width: 100%;
  }

  /* Team */
  .team__container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  /* Contact */
  .contact__container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .contact__form {
    grid-template-columns: 1fr 1fr;
    padding: 2.5rem;
  }

  .form__group--full {
    grid-column: 1 / -1;
  }

  .contact__form .btn {
    grid-column: 1 / -1;
  }

  .contact__form .form__disclaimer {
    grid-column: 1 / -1;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer__bottom-actions {
    justify-content: flex-end;
  }
}

/* -------- LARGE DESKTOP (1024px+) -------- */
@media (min-width: 1024px) {

  /* Services layout */
  .services__layout {
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr);
    gap: 2.5rem;
    align-items: start;
  }

  .services__header {
    position: sticky;
    top: calc(var(--nav-height) + 1.4rem);
    text-align: left;
  }

  .services__subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .founder-spotlight__container {
    gap: 3rem;
  }

  .founder-spotlight__image-wrap {
    width: min(100%, 360px);
  }

  .services__card:nth-child(even) {
    transform: none;
  }

  .services__card:nth-child(even):hover {
    transform: translateX(4px);
  }

  /* Custom cursor on desktop */
  .custom-cursor {
    display: block;
  }

}

/* -------- MID DESKTOP (below 1200px) -------- */
@media (max-width: 1199px) {
  .hero__card--float {
    display: none;
  }
}

/* -------- EXTRA LARGE (1280px+) -------- */
@media (min-width: 1280px) {

  .hero__container {
    gap: 4rem;
  }

  .hero__card--main {
    max-width: 420px;
  }

  .services__card {
    padding: 1.5rem 1.45rem;
  }

  .pricing__card--vertical {
    padding: 2.25rem;
  }
}

/* -------- MOBILE ONLY (below 768px) -------- */
@media (max-width: 767px) {

  /* Mobile sticky CTA */
  .mobile-cta {
    display: flex;
  }

  /* Back to top position adjustment - above WhatsApp widget */
  .back-to-top {
    bottom: 9rem;
    right: 1rem;
  }

  /* Hero adjustments */
  .hero {
    min-height: auto;
  }

  .hero__container {
    gap: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .hero__content {
    padding-top: 1rem;
    text-align: center;
  }

  .hero__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__scroll-indicator {
    display: none;
  }

  .hero__visual {
    display: flex;
    justify-content: center;
  }

  .hero__card--main {
    max-width: 100%;
    width: 100%;
  }

  .framework__cta .btn {
    width: 100%;
  }

  .founder-spotlight__actions .btn {
    width: 100%;
  }

  .founder-spotlight__actions {
    margin-left: 0;
  }

  .founder-spotlight__award {
    text-align: left;
  }

  .founder-spotlight__award-logo-wrap {
    width: 100%;
    max-width: none;
  }

  .founder-spotlight__award-logo {
    max-width: 220px;
  }

  .trust__platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust__platform-wordmark {
    font-size: 2.4rem;
  }

  .trust__platform--dext .trust__platform-wordmark {
    font-size: 2.8rem;
  }

  .trust__platform-xero-circle {
    width: 60px;
    height: 60px;
    font-size: 1.45rem;
  }

  .trust__platform-xero-circle--advisor {
    font-size: 0.68rem;
  }

  /* Testimonial card */
  .testimonials__card {
    padding: 2rem 1.5rem;
  }

  .testimonials__text {
    font-size: 1rem;
  }

  .reviews__summary {
    justify-content: flex-start;
  }

  /* Pricing cards stack */
  .pricing__grid--vertical {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pricing__card--vertical {
    padding: 1.5rem;
  }

  .pricing__scope {
    padding: 1.25rem 1.25rem;
  }

  /* Process & framework timeline */
  .process__step,
  .framework__step {
    gap: 1.25rem;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom-actions {
    justify-content: flex-start;
  }

  /* Contact form */
  .contact__form {
    padding: 2rem 1.5rem;
  }

  .hero__card-actions {
    justify-content: center;
  }

  .whatsapp-widget {
    right: 1rem;
    left: auto;
    bottom: 5.35rem;
  }

  .whatsapp-widget__button {
    min-height: 50px;
    padding: 0.68rem 0.9rem 0.68rem 0.78rem;
  }

  .whatsapp-widget__label {
    font-size: 0.84rem;
  }

  .blog__card-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog__reader-close {
    white-space: nowrap;
  }
}

/* -------- SMALL MOBILE (below 400px) -------- */
@media (max-width: 399px) {

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .stats__grid {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .trust__platform-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-widget {
    right: 0.75rem;
    left: auto;
    bottom: 5.15rem;
  }

  .whatsapp-widget__button {
    width: 50px;
    min-height: 50px;
    border-radius: 50%;
    padding: 0;
  }

  .whatsapp-widget__label {
    display: none;
  }
}

/* -------- TALL VIEWPORTS -------- */
@media (min-height: 900px) and (min-width: 768px) {
  .hero__container {
    padding-top: 2rem;
  }
}

/* -------- SHORT VIEWPORTS -------- */
@media (max-height: 820px) and (min-width: 768px) {
  .hero__scroll-indicator {
    display: none;
  }
}

/* No hover (touch) - remove hover transforms */
@media (hover: none) {
  .services__card:hover,
  .pricing__card:hover,
  .why__card:hover,
  .pain__card:hover {
    transform: none;
  }

  .why__card:hover {
    padding-left: 4.6rem;
    background: transparent;
  }
}

/* -------- PRINT STYLES -------- */
@media print {
  .nav,
  .preloader,
  .mobile-menu,
  .mobile-cta,
  .back-to-top,
  .hero__scroll-indicator,
  .hero__shapes,
  .btn__shimmer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero__bg {
    display: none;
  }

  .hero__title,
  .hero__subtitle {
    color: black;
  }

  section {
    padding: 2rem 0;
    break-inside: avoid;
  }
}
