/* Overrides for Secure Tax Files site (v23) */

/* Reduce topbar height and unify CTA styling */
.topbar .inner {
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/*
 * ------------------------------------------------------------------------
 *  Motion‑inspired enhancements (October 2025)
 *
 *  The following styles take inspiration from Zajno’s motion design site.
 *  They introduce subtle gradients, floating abstract shapes and enhanced
 *  animations that guide the eye across the page. The shapes float
 *  behind the hero slider, adding depth without distracting from the
 *  primary message. Alternating gradient backgrounds break up the
 *  monotony of long pages and make each section distinct. Buttons
 *  incorporate a light reflection sweep on hover to subtly entice
 *  interaction.
 */

/* Floating shapes for hero section */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #fafafa;
}
.hero .slides {
  position: relative;
  z-index: 1;
}
.hero .dots {
  z-index: 2;
}
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(40px);
}
.floating-shape.shape-1 {
  width: 320px;
  height: 320px;
  background: var(--brand, #f6682f);
  top: -120px;
  left: -120px;
  animation: float1 22s ease-in-out infinite;
}
.floating-shape.shape-2 {
  width: 420px;
  height: 420px;
  background: #0f172a;
  bottom: -200px;
  right: -150px;
  animation: float2 28s ease-in-out infinite;
}
.floating-shape.shape-3 {
  width: 260px;
  height: 260px;
  background: #f9ab5e;
  top: 60%;
  left: 65%;
  animation: float3 18s ease-in-out infinite;
}
@keyframes float1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 40px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes float2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, -60px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes float3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 90px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Alternating gradient backgrounds for sections (excluding hero) */
section:not(.hero):nth-of-type(odd) {
  background: linear-gradient(135deg, #fff5f0 0%, #ffefe7 100%);
}
section:not(.hero):nth-of-type(even) {
  background: linear-gradient(135deg, #f4f9ff 0%, #eef7ff 100%);
}

/* Enhanced buttons with reflection sweep */
a.btn.primary,
a.btn.primary:link,
a.btn.primary:visited {
  position: relative;
  overflow: hidden;
  color: #fff;
}
a.btn.primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
a.btn.primary:hover::after {
  left: 120%;
}

/* Gradient background for mobile nav overlay to echo hero colours */
@media (max-width: 768px) {
  nav.primary {
    background: linear-gradient(180deg, var(--brand, #f6682f) 0%, #fc8563 100%) !important;
    color: #fff;
  }
  nav.primary a {
    color: #fff !important;
  }
  nav.primary a.active {
    background: rgba(255, 255, 255, 0.15) !important;
  }
}
/* Style contact links (phone/email) */
.topbar .contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #fff;
}
/* Increase icon sizes for improved visibility on all devices */
.topbar .contact img,
.topbar .cta a img {
  height: 18px;
  width: 18px;
}
.topbar .contact .number {
  margin-right: 0.2rem;
}
/* CTA buttons and icons share secondary color with light white border */
.topbar .cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.topbar .cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  color: var(--secondary);
  background: transparent;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.topbar .cta a:hover {
  background: rgba(255,255,255,0.1);
}
/* Hide the text labels for login/register on smaller screens */
@media (max-width: 768px) {
  .topbar .contact {
    display: none !important;
  }
  .topbar .cta {
    justify-content: flex-end;
    width: 100%;
    gap: 0.45rem;
  }
  .topbar .cta a {
    padding: 0.3rem 0.45rem;
    font-size: 0.72rem;
  }
  .topbar .cta a span {
    display: none;
  }
}
/* Capitalize all primary navigation links and section titles */
nav.primary a {
  text-transform: capitalize;
}
.section-title,
h1 {
  text-transform: capitalize;
}

/* Remove the notification bar across all pages */
.notification-bar {
  display: none !important;
}

/* Popup modal styles (applied across all pages)
 * The popup is used to highlight our free preparation offer.  It
 * overlays the page content with a semi-transparent backdrop and
 * centers a card with logos, a headline, descriptive text and
 * call‑to‑action buttons.  These rules were adapted from the
 * original inline styles of the index page to ensure the popup
 * displays consistently on every page.
 */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 3000;
}
.popup-overlay.active {
  visibility: visible;
  opacity: 1;
}
.popup-content {
  background: #fff;
  border-radius: 0.6rem;
  padding: 1.5rem 2rem;
  max-width: 550px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--ink, #0f172a);
  font-size: 1.75rem;
  cursor: pointer;
}
.popup-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.popup-logos img {
  max-height: 48px;
}
.popup-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.popup-actions .btn-primary {
  background: var(--brand, #f6682f);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-size: 0.9rem;
}
.popup-actions .btn-ghost {
  border: 1px solid var(--brand, #f6682f);
  color: var(--brand, #f6682f);
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-size: 0.9rem;
}
.popup-actions .btn-primary:hover,
.popup-actions .btn-ghost:hover {
  opacity: 0.9;
}
@media (max-width: 540px) {
  .popup-content {
    padding: 1rem;
  }
  .popup-logos img {
    max-height: 36px;
  }
  .popup-actions .btn-primary,
  .popup-actions .btn-ghost {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}
/* Team grid styling for About page */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.team-grid .team-member {
  text-align: center;
}
.team-grid .team-member img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
}
.team-grid .team-member h3 {
  margin: 0.4rem 0 0.2rem;
  font-size: 1.1rem;
  color: var(--secondary);
}
.team-grid .team-member p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--secondary);
  opacity: 0.8;
}
/* Recent blog cards for home page */
.recent-blogs .blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.recent-blogs .blog-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.recent-blogs .blog-card .cover {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.recent-blogs .blog-card .body {
  padding: 1rem;
}
.recent-blogs .blog-card h3 {
  color: var(--secondary);
  margin: .2rem 0 .4rem;
}
.recent-blogs .blog-card .meta {
  font-size: .85rem;
  opacity: .7;
  margin-bottom: .4rem;
}

/* =========================================================================
 *  Customizations for October 2025 revamp
 *
 *  These rules unify the topbar, navigation, animations and footer across
 *  all pages. They also add floating icons and modernize the mobile
 *  experience.  Do not remove or override unless necessary.
 */

/* Unified topbar: orange background with contact links and CTA buttons */
.topbar {
  background: var(--brand, #f6682f);
  color: #fff;
  font-size: 0.875rem;
  padding: 0.35rem 0;
  /* Keep the topbar fixed at the very top of the viewport */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar .contact a {
  color: #fff;
  margin-right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}
.topbar .contact a img {
  width: 16px;
  height: 16px;
}
.topbar .cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.topbar .cta a {
  padding: 0.25rem 0.7rem;
  border: 1px solid #fff;
  border-radius: 4px;
  color: #fff;
  font-size: 0.8rem;
  text-decoration: none;
}
.topbar .cta a:hover {
  background: rgba(255, 255, 255, 0.15);
}
@media (max-width: 768px) {
  .topbar .contact a span {
    /* Hide labels on small screens to conserve space */
    display: none;
  }
  .topbar .cta a {
    padding: 0.25rem 0.5rem;
    font-size: 0.72rem;
  }
}

/* Modern responsive navigation */
header.main-header {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  /* Make the main header fixed so it can slide into and out of view via JS */
  position: fixed;
  left: 0;
  right: 0;
  z-index: 900;
  transition: transform 0.35s ease;
}
.main-header .head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}
nav.primary {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
nav.primary a {
  color: var(--ink, #0f172a);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
nav.primary a.active {
  color: var(--brand, #f6682f);
}
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    color: var(--ink, #0f172a);
  }
  nav.primary {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 75%;
    max-width: 320px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -3px 0 12px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 2000;
  }
  nav.primary.open {
    transform: translateX(0);
  }
  nav.primary a {
    margin: 0.4rem 0;
    font-size: 1rem;
  }
  /* Full-screen backdrop behind the mobile nav (added via body class) */
  body.nav-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
  }
}

/* Animate elements on scroll */
.pre-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.pre-animate.animate {
  opacity: 1;
  transform: none;
}

/*
 * Removed the floating WhatsApp icon from the layout.  A persistent
 * floating WhatsApp button was interfering with the mobile navigation
 * experience and is no longer injected by the site’s JavaScript.  If
 * future designs require a floating element, define it here with a
 * unique class name so it doesn’t conflict with the sticky header or
 * navigation.
 */

/* Unified footer styling */
footer {
  background: #fff;
  color: var(--ink, #0f172a);
  padding: 2rem 0 0;
  border-top: 1px solid #f3f3f3;
}
footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
footer .cols h4 {
  margin-bottom: 0.6rem;
  color: var(--ink, #0f172a);
  font-size: 1.05rem;
}
footer .cols a {
  display: block;
  color: var(--muted, #6b7280);
  margin: 0.35rem 0;
  font-size: 0.9rem;
  text-decoration: none;
}
footer .cols a:hover {
  color: var(--ink, #0f172a);
}
footer .cols p {
  color: var(--muted, #6b7280);
  font-size: 0.9rem;
  line-height: 1.5;
}
footer .cols .irs-auth {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
footer .cols .irs-auth img {
  height: 60px;
  margin-top: 0.5rem;
}
footer .copy {
  background: var(--brand, #f6682f);
  color: #fff;
  text-align: center;
  padding: 0.8rem 0;
  font-size: 0.85rem;
}

/* Hide any legacy topbars/headers marked as old to prevent duplicate UI */
.topbar.old,
header.main-header.old {
  display: none !important;
}

/* When the notification bar is hidden via JS, slide it out of view */
.notification-bar.hidden {
  transform: translateY(-100%);
}

/* -------------------------------------------------------------------
 *  October 2025 enhancements
 *
 *  These rules add improved navigation, animations, notification bar,
 *  sliders for testimonials and blogs, and a responsive footer.  They
 *  complement the existing unified topbar and hero slider styles.
 */

/* Notification bar between header and hero slider */
/* Notification bar styling
 * Use a high-contrast palette so the scrolling text is clearly visible
 * between the header and hero slider. The bar remains within normal
 * document flow (not fixed), so no additional padding adjustments are
 * required.  A simple top and bottom border separates it from
 * surrounding content.
 */
.notification-bar {
  background: var(--brand, #f6682f);
  color: #fff;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  min-height: 32px;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
/* Apply a smooth horizontal scroll animation to the notification text.
   The <marquee> tag has been replaced with a <div class="scrolling-text">.
   The text wraps in a single line and scrolls continuously from right to left. */
.notification-bar .scrolling-text {
  display: inline-block;
  white-space: nowrap;
  line-height: 1.4;
  animation: scroll-left 20s linear infinite;
}
@keyframes scroll-left {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* Orientation-specific animations for scroll appearance */
.animate-right.pre-animate {
  transform: translateX(60px);
}
.animate-left.pre-animate {
  transform: translateX(-60px);
}

/* When animated, remove orientation transform */
.pre-animate.animate {
  transform: none;
}

/* Mobile navigation opens from the top rather than the right */
@media (max-width: 768px) {
  nav.primary {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    overflow-y: auto;
    z-index: 2000;
  }
  nav.primary.open {
    transform: translateY(0);
  }
  nav.primary a {
    margin: 0.6rem 0;
    font-size: 1.05rem;
    font-weight: 500;
  }
  /* Adjust body overlay when nav is open */
  body.nav-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
  }
}

/*
 * Hide-on-scroll behaviour for the topbar and main header
 *
 * When the user scrolls down the page, both the orange topbar and the
 * white main-header should slide up and out of view. As soon as
 * scrolling reverses (the user scrolls upwards), these bars slide
 * back into view. The script toggles a `.hidden` class on each
 * element; these rules apply the translation. A smooth transition
 * ensures the motion feels natural on both mobile and desktop.
 */
.topbar.hidden,
header.main-header.hidden {
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

/* Hide the notification bar with the same animation as the header. */
.notification-bar.hidden {
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

/*
 * On mobile screens, display the contact icons and CTA icons in the
 * topbar rather than hiding them. Only the text labels are hidden to
 * conserve space. We use `!important` to override prior rules that
 * may set `.topbar .contact` to `display:none`.
 */
@media (max-width: 768px) {
  /* On small screens, display both contact and CTA icons in a single row. */
  .topbar .contact {
    display: flex !important;
    gap: 0.7rem;
  }
  .topbar .contact a span {
    display: none;
  }
  .topbar .cta {
    display: flex !important;
    gap: 0.7rem;
  }
  .topbar .cta a span {
    display: none;
  }
  /* Increase icon sizes on mobile for better legibility */
  .topbar .contact img,
  .topbar .cta a img {
    width: 32px !important;
    height: 32px !important;
  }
  /* Align contact icons on the left and CTA icons on the right */
  .topbar .container {
    justify-content: space-between;
  }
}

/* Slider shared styles (testimonials & blogs) */
.slider {
  position: relative;
  overflow: hidden;
}

/* === Final responsive header adjustments (Oct 2025) === */
/* Ensure contact and CTA icons are visible and clear on all devices */
.topbar .contact img,
.topbar .cta a img {
  width: 20px;
  height: 20px;
}
@media (max-width: 768px) {
  /* Show contact icons with hidden labels on mobile */
  .topbar .contact {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    margin-right: auto;
  }
  .topbar .contact a span {
    display: none !important;
  }
  .topbar .contact img {
    width: 22px !important;
    height: 22px !important;
  }
  /* Show CTA buttons as text buttons without icons */
  .topbar .cta {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
  }
  .topbar .cta a img {
    display: none !important;
  }
  .topbar .cta a span {
    display: inline !important;
    font-size: 0.85rem;
  }
  /* Increase icon sizes on mobile for better legibility */
  .topbar .contact img,
  .topbar .cta a img {
    width: 28px !important;
    height: 28px !important;
  }
}

/* ----------------------------------------------------------------------
 *  Final mobile navigation drop‑down override
 *
 *  To provide a smooth, professional dropdown menu on small screens,
 *  we override any previous mobile navigation styles.  The primary
 *  navigation is positioned below the combined topbar and header
 *  offset (via the --menu-top CSS variable).  It collapses to
 *  max-height: 0 when closed and expands to fill the remaining
 *  viewport height when open.  All links are displayed block with
 *  consistent padding and a dividing line.  This approach avoids
 *  horizontal slide‑out interactions, instead creating a simple
 *  vertical slide effect.
 */
@media (max-width: 768px) {
  nav.primary {
    position: fixed !important;
    top: var(--menu-top, 0) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #fff !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    z-index: 1200 !important;
  }
  nav.primary.open {
    max-height: calc(100vh - var(--menu-top, 0)) !important;
    transform: none !important;
  }
  nav.primary a {
    display: block !important;
    width: 100% !important;
    padding: 0.9rem 1rem !important;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem !important;
    color: var(--secondary) !important;
  }
  nav.primary a.active {
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--brand, #f6682f) !important;
  }
  /* Remove body overlay for nav open – we rely on body.menu-open to disable scroll */
  body.nav-open::after {
    display: none !important;
  }
}

/* Blog slider container overflow handling – hide overflow at container level
   but allow slides container to remain visible so transforms work correctly. */
.blog-slider {
  overflow: hidden;
}
.blog-slider .slides {
  overflow: visible !important;
}

/* Mobile navigation slides down from the top rather than from the side */
@media (max-width: 768px) {
  /* Override earlier nav definitions to use a vertical slide‑down menu via max‑height. */
  nav.primary {
    position: fixed !important;
    top: var(--menu-top, 0) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #fff !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    z-index: 1200 !important;
  }
  nav.primary.open {
    /* When the nav is open, expand to full remaining height and reset transform */
    max-height: calc(100vh - var(--menu-top, 0)) !important;
    transform: none !important;
  }
  nav.primary a {
    display: block !important;
    width: 100% !important;
    padding: 0.9rem 1rem !important;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem !important;
    color: var(--secondary) !important;
  }
  nav.primary a.active {
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--brand, #f6682f) !important;
  }
  /* Ensure any overlay from older designs is hidden */
  .mobile-menu-overlay,
  .mobile-menu {
    display: none !important;
  }
}

/* Hide overflowing slides in blog slider on all devices to prevent blank space */
.blog-slider .slides {
  overflow: hidden;
}

/* Section header layout for headings with action links */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.section-header .view-all {
  font-size: 0.9rem;
  color: var(--brand, #f6682f);
  text-decoration: none;
}
.section-header .view-all:hover {
  text-decoration: underline;
}

/* Stack footer columns on small screens for better readability */
@media (max-width: 768px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .site-footer .brand-desc,
  .site-footer .links-col,
  .site-footer .newsletter {
    align-items: center;
  }
  .site-footer .links-col a,
  .site-footer .newsletter p {
    text-align: center;
  }
  .site-footer .links-col h4,
  .site-footer .newsletter h4 {
    text-align: center;
  }
}
.slider .slides {
  display: flex;
  transition: transform 0.5s ease;
}
.slider .slide {
  min-width: 100%;
  box-sizing: border-box;
}
.slider .dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.slider .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5e7eb;
  cursor: pointer;
}
.slider .dot.active {
  background: var(--brand, #f6682f);
}

.testimonials {
  background: #fdeee3;
  padding: 2.4rem 1rem 2.7rem;
  overflow: hidden;
}

.testimonials .section-title {
  text-align: center;
  font-size: clamp(1.9rem, 2.1vw, 2.2rem);
  color: var(--ink, #0f172a);
  margin-bottom: 2rem;
}

.testimonials-slider {
  width: min(1180px, 100%);
  margin: 0 auto;
  position: relative;
}

/* the sliding track */
.testimonials-slider .slides {
  display: flex;
  transition: transform .4s ease;
  will-change: transform;
}

/* each PAGE */
.testimonials-slider .slide-page {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
  padding-bottom: .5rem;
}

/* each CARD */
.testimonials-slider .slide {
  background: #fff;
  border-radius: 1rem;
  padding: 1.2rem 1.1rem 1rem;
  text-align: left;
  box-shadow: 0 10px 25px rgba(247, 104, 47, 0.04);
}

.testimonials-slider .slide p {
  color: var(--ink, #0f172a);
  line-height: 1.5;
  margin-bottom: .7rem;
}

.testimonials-slider .slide strong {
  color: var(--brand, #f7682f);
  font-weight: 600;
  display: inline-block;
}

/* dots */
.testimonials-slider .dots {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 1.1rem;
}

.testimonials-slider .dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  cursor: pointer;
  transition: .2s;
}

.testimonials-slider .dots .dot.active {
  background: var(--brand, #f7682f);
  width: 22px;
}

/* tablet: 2 per page */
@media (max-width: 992px) {
  .testimonials-slider .slide-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* mobile: 1 per page */
@media (max-width: 600px) {
  .testimonials {
    padding: 1.6rem .6rem 2.1rem;
  }
  .testimonials-slider .slide-page {
    grid-template-columns: 1fr;
  }
  .testimonials-slider .slide {
    text-align: center;
  }
}


/* Blog slider cards reuse existing blog-card styles but adapt to slider */
.blog-slider .slide {
  padding: 0 0.5rem;
  box-sizing: border-box;
}

/* CTA section enhancements */
.cta-section {
  background: #fff6f1;
  padding: 3rem 0;
  text-align: center;
}
.cta-section h2 {
  color: var(--secondary);
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}
.cta-section p {
  color: var(--muted, #6b7280);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.cta-section .cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.cta-section .cta-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid var(--brand, #f6682f);
  color: var(--brand, #f6682f);
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}
.cta-section .cta-actions a.primary {
  background: var(--brand, #f6682f);
  color: #fff;
}
.cta-section .cta-actions a:hover {
  background: var(--brand, #f6682f);
  color: #fff;
}

/* Responsive footer improvements for mobile */
@media (max-width: 768px) {
  footer .cols {
    grid-template-columns: 1fr;
    text-align: center;
  }
  footer .cols > div {
    align-items: center;
  }
  footer .cols .irs-auth {
    align-items: center;
  }
  footer .cols .irs-auth img {
    margin: 0 auto;
  }
  footer .cols p, footer .cols a {
    margin-left: auto;
    margin-right: auto;
  }
}

/* -----------------------------------------------------------------
 * Mobile bottom navigation
 *
 * A sticky navigation bar at the bottom of the viewport provides
 * quick access to key pages on small screens. Links are evenly
 * distributed and highlight the active page. The bar slides out
 * of view when the user scrolls down and reappears when scrolling
 * up (controlled via JavaScript toggling the `.hidden` class).
 */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -1px 4px rgba(0,0,0,0.05);
  z-index: 1000;
  transition: transform 0.35s ease;
}
.bottom-nav a {
  flex: 1;
  padding: 0.5rem 0.3rem;
  font-size: 0.8rem;
  color: var(--ink, #0f172a);
  text-align: center;
  text-decoration: none;
}
.bottom-nav a.active {
  color: var(--brand, #f6682f);
  font-weight: 600;
}
.bottom-nav.hidden {
  transform: translateY(100%);
}
@media (min-width: 769px) {
  .bottom-nav {
    display: none;
  }
}

/* -----------------------------------------------------------------
 * Site footer redesign (October 2025)
 *
 * This new footer takes inspiration from high‑end consumer brands
 * while adhering to Secure Tax Files’ colour palette. A dark
 * background grounds the page and conveys trustworthiness, while
 * clearly separated columns organize navigation links, resources,
 * and a simple newsletter subscription form. Social media icons
 * are represented as minimalist letters within circles to avoid
 * external asset dependencies.
 */
.site-footer {
  background: #0f172a;
  color: #fff;
  padding: 3rem 0 0;
}
.site-footer .footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem;
}
.site-footer .brand-desc .brand img {
  height: 50px;
  margin-bottom: 0.6rem;
}
.site-footer .brand-desc p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.6rem;
  color: rgba(255,255,255,0.85);
}
.site-footer .brand-desc .irs-badge {
  height: 60px;
  margin-top: 0.4rem;
}
.site-footer .links-col h4,
.site-footer .newsletter h4 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: #fff;
}
.site-footer .links-col a {
  display: block;
  color: rgba(255,255,255,0.8);
  margin: 0.35rem 0;
  font-size: 0.9rem;
  text-decoration: none;
}
.site-footer .links-col a:hover {
  color: #fff;
}
.site-footer .newsletter p {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  color: rgba(255,255,255,0.8);
}
.site-footer .newsletter form {
  display: flex;
  margin-bottom: 0.8rem;
}
.site-footer .newsletter input {
  flex: 1;
  padding: 0.5rem 0.7rem;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 0.9rem;
}
.site-footer .newsletter button {
  padding: 0.5rem 0.9rem;
  border: none;
  background: var(--brand, #f6682f);
  color: #fff;
  font-weight: 600;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.site-footer .newsletter button:hover {
  filter: brightness(1.1);
}
.site-footer .social {
  display: flex;
  gap: 0.5rem;
}
.site-footer .social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.site-footer .social a:hover {
  background: var(--brand, #f6682f);
}
.site-footer .footer-bottom {
  margin-top: 2rem;
  background: var(--brand, #f6682f);
  color: #fff;
  text-align: center;
  padding: 0.7rem 0;
  font-size: 0.85rem;
}
@media (max-width: 768px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-footer .brand-desc,
  .site-footer .links-col,
  .site-footer .newsletter {
    align-items: center;
  }
  .site-footer .social {
    justify-content: center;
  }

/* -----------------------------------------------------------------
 * Mobile menu redesign (October 2025)
 *
 * The primary navigation transforms into a full‑screen overlay on
 * small screens. Inspired by contemporary mobile patterns, the
 * menu slides down from the top and lists each item on its own
 * line with generous spacing. A subtle divider separates links
 * for clarity. The burger icon toggles to a close (×) icon via
 * JavaScript, and the backdrop is provided by the existing
 * `body.nav-open::after` rule. These overrides are placed at the
 * end of the stylesheet to ensure they supersede earlier rules.
 */
@media (max-width: 768px) {
  nav.primary {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, var(--brand, #f6682f) 0%, #fc8563 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.4rem;
    padding: 6rem 2rem 2rem;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    box-shadow: none;
    overflow-y: auto;
    z-index: 2000;
  }
  nav.primary.open {
    transform: translateY(0);
  }
  nav.primary a {
    display: block;
    width: auto;
    padding: 0.8rem 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    border: none;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  nav.primary a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.4rem;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
    transform: translateX(-50%);
  }
  nav.primary a:hover::after,
  nav.primary a.active::after {
    width: 60%;
  }
  /* Larger burger icon for easy tapping */
  .menu-toggle {
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    position: relative;
    display: block;
    margin-left: auto;
    cursor: pointer;
  }
}

/* -----------------------------------------------------------------
 * Topbar mobile visibility tweaks
 *
 * On small screens, display both the contact icons (phone, email,
 * WhatsApp) and the CTA icons (login, register).  Hide only the
 * text labels to conserve space.  Ensure the left and right
 * sections are separated evenly.  These rules override earlier
 * definitions with higher specificity.
 */
@media (max-width: 768px) {
  .topbar .contact {
    display: flex !important;
    gap: 0.6rem;
  }
  .topbar .cta {
    display: flex !important;
    gap: 0.6rem;
  }
  .topbar .contact a span,
  .topbar .cta a span {
    display: none;
  }
  .topbar .container {
    justify-content: space-between;
  }
}

/* Round the corners of the Secure Tax Files logo in the footer */
.site-footer .brand-desc .brand img {
  border-radius: 0.5rem;
}

/* Hamburger bar elements and active state transforms */
.menu-toggle span {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ink, #0f172a);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle span:nth-child(1) {
  top: 0;
}
.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.menu-toggle span:nth-child(3) {
  bottom: 0;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Ensure topbar content stays on a single row on all devices */
.topbar .container {
  flex-wrap: nowrap !important;
}

/* Hide the desktop navigation on small screens in favour of the mobile overlay */
@media (max-width: 768px) {
  nav.primary {
    display: none !important;
  }
}

/* Styles for the mobile menu overlay that slides in from the left */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 2000;
}
.mobile-menu-overlay.is-open {
  display: block;
}
.mobile-menu {
  position: absolute;
  top: var(--menu-top, 0);
  left: 0;
  width: 100%;
  /* Occupy only the space below the header */
  height: calc(100vh - var(--menu-top, 0));
  /* Use a soft gradient that echoes the brand colours */
  background: linear-gradient(180deg, #ffffff 0%, #fff5f0 100%);
  /* Slide in from the top (relative to its own height) */
  transform: translateY(-100%);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* Rounded bottom corners and a subtle shadow for a modern feel */
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
.mobile-menu.is-open {
  transform: translateY(0);
}
.mobile-menu .close-menu {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--ink, #0f172a);
  align-self: flex-end;
  margin-bottom: 1rem;
  cursor: pointer;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.mobile-menu ul li {
  margin: 0.6rem 0;
}
.mobile-menu ul li a {
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--ink, #0f172a);
  font-weight: 500;
}
.mobile-menu ul li a.active {
  color: var(--brand, #f6682f);
}

/* Prevent body from scrolling when the mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/*
 * ===== FINAL overrides (October 2025) =====
 *
 * The following rules are placed at the very end of the stylesheet to
 * ensure they override any earlier definitions, including previous
 * mobile menu designs and topbar adjustments.  They enforce a
 * vertical drop‑down navigation on mobile, ensure contact and CTA
 * icons are visible and legible, and hide unused overlay elements.
 */
@media (max-width: 768px) {
  /* Vertical slide‑down navigation */
  nav.primary {
    position: fixed !important;
    top: var(--menu-top, 0) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: #fff !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0.5rem 1rem 1rem !important;
    transform: translateY(-100%) !important;
    transition: transform 0.4s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    z-index: 1200 !important;
  }
  nav.primary.open {
    transform: translateY(0) !important;
  }
  nav.primary a {
    width: 100% !important;
    padding: 0.9rem 1rem !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 1.05rem !important;
    color: var(--secondary) !important;
  }
  nav.primary a.active {
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--brand, #f6682f) !important;
  }
  /* Hide overlay components not used */
  .mobile-menu-overlay,
  .mobile-menu {
    display: none !important;
  }
  /* Show contact icons and hide labels on mobile */
  .topbar .contact {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    margin-right: auto;
  }
  .topbar .contact a span {
    display: none !important;
  }
  .topbar .contact img {
    width: 22px !important;
    height: 22px !important;
  }
  /* CTA buttons as text buttons without icons */
  .topbar .cta {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
  }
  .topbar .cta a img {
    display: none !important;
  }
  .topbar .cta a span {
    display: inline !important;
    font-size: 0.85rem;
  }
}

/* Ensure icons are legible on larger screens */
.topbar .contact img,
.topbar .cta a img {
  width: 20px;
  height: 20px;
}

/* Hide overflowing blog slides on all screens */
.blog-slider .slides {
  overflow: hidden;
}

/* Section header wrapper for headings with actions */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.section-header .view-all {
  font-size: 0.9rem;
  color: var(--brand, #f6682f);
  text-decoration: none;
}
.section-header .view-all:hover {
  text-decoration: underline;
}
}

/* === Final overrides (November 2025) ===
 * These overrides ensure that the mobile navigation menu, topbar icons and
 * footer layout behave consistently across all pages.  Placing
 * these definitions at the very end of the stylesheet ensures they
 * take precedence over earlier conflicting rules.
 */
@media (max-width: 768px) {
  /* Larger icons for phone, email, WhatsApp and CTA buttons */
  .topbar .contact img,
  .topbar .cta a img {
    width: 28px !important;
    height: 28px !important;
  }
  /* Final mobile navigation using a vertical slide‑down via max‑height */
  nav.primary {
    /* Override earlier rule that hid nav on mobile */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    position: fixed !important;
    top: var(--menu-top, 0) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #fff !important;
    padding: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    /* Reset any horizontal slide transform set by earlier rules */
    transform: none !important;
    transition: max-height 0.4s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    z-index: 1200 !important;
  }
  nav.primary.open {
    max-height: calc(100vh - var(--menu-top, 0)) !important;
  }
  nav.primary a {
    display: block !important;
    width: 100% !important;
    padding: 0.9rem 1rem !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 1.05rem !important;
    color: var(--secondary) !important;
  }
  nav.primary a.active {
    background: rgba(0,0,0,0.04) !important;
    color: var(--brand, #f6682f) !important;
  }
  /* Ensure any overlay components from old designs remain hidden */
  .mobile-menu-overlay,
  .mobile-menu {
    display: none !important;
  }
  /* Footer layout: brand and newsletter span full width, links columns appear side by side */
  .site-footer .footer-top {
    grid-template-columns: 1fr 1fr !important;
    row-gap: 1.5rem !important;
  }
  .site-footer .brand-desc {
    grid-column: 1 / -1 !important;
    text-align: center !important;
  }
  .site-footer .newsletter {
    grid-column: 1 / -1 !important;
  }
  .site-footer .links-col {
    text-align: left !important;
    align-items: flex-start !important;
  }
  .site-footer .links-col h4 {
    margin-top: 0.4rem !important;
  }
  .site-footer .social {
    justify-content: center !important;
  }
}

/* Final adjustments to blog slider overflow */
.blog-slider {
  /* Hide any overflow so only the active slide(s) are visible */
  overflow: hidden !important;
}
/* Allow overflow inside slides wrapper so transforms can slide content */
.blog-slider .slides {
  overflow: visible !important;
}
/* === RECENT BLOGS GRID === */
.recent-blogs {
  background: #fffaf8; /* soft peach-white background */
  padding: 2.5rem 1rem 2.75rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100%);
  margin: 0 auto 1.8rem;
}

.section-header .section-title {
  font-size: clamp(1.9rem, 2vw, 2.2rem);
  color: var(--ink, #0f172a);
  font-weight: 700;
}

.section-header .view-all {
  color: var(--brand, #f7682f);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.section-header .view-all:hover {
  color: #d55622;
}

/* === GRID LAYOUT === */
.recent-blogs .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  width: min(1180px, 100%);
  margin: 0 auto;
}

/* === CARD DESIGN === */
.blog-card {
  background: #ffffff;
  border-radius: 1.1rem;
  border: 1px solid rgba(255,255,255,0.8); /* subtle border */
  box-shadow: 0 8px 22px rgba(15,23,42,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.12);
}

/* === IMAGE COVER === */
.blog-card .cover {
  width: 100%;
  padding-top: 58%;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* === CARD BODY === */
.blog-card .body {
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
}

.blog-card h3 {
  font-size: 1.15rem;
  color: var(--ink, #0f172a);
  margin: 0 0 0.45rem;
  line-height: 1.3;
}

.blog-card .meta {
  font-size: 0.85rem;
  color: var(--muted, #475569);
  margin-bottom: 0.6rem;
}

.blog-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
  margin: 0;
}

/* Button inside cards */
.blog-card .btn.ghost {
  margin-top: 0.85rem;
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid var(--brand, #f7682f);
  color: var(--brand, #f7682f);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.25s ease;
}

.blog-card .btn.ghost:hover {
  background: var(--brand, #f7682f);
  color: #fff;
}

/* === ANIMATION ON SCROLL === */
.pre-animate {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.pre-animate.animate {
  opacity: 1;
  transform: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .recent-blogs {
    padding: 2rem .75rem;
  }
}

