/* ========================================
   1. NAVIGATION BAR - REFINED & FIXED
   ======================================== */
nav#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

nav#navbar.sticky {
    background-color: rgba(15, 23, 42, 0.98) !important; /* Deep Navy */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.nav-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-right: auto;
}

/* Navigation menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    position: relative;
    list-style: none;
}

.nav-menu li a {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none !important; /* FIXED: Removed underline */
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* FIX: CONTACT US NAV HIGHLIGHT */
.nav-menu li a.btn-nav-highlight {
    background: #1d4ed8 !important; /* Solid Blue */
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-left: 10px;
}

.nav-menu li a.btn-nav-highlight:hover {
    background-color: #0f172a !important; /* Navy Hover */
}

/* DROPDOWN LOGIC */
.dropdown {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: -15px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
	text-align: left;
    left: 0;
    background-color: #fff;
    min-width: 280px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 10px 0;
    z-index: 1001;
    margin: 0;
    list-style: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li a {
    color: #1e293b !important;
    padding: 12px 20px;
    text-transform: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    width: 100%;
    text-decoration: none !important;
}

.dropdown-content li a:hover {
    background-color: #f1f5f9;
    color: #1d4ed8 !important;
}

/* --- Desktop Settings --- */
#menu-icon {
    display: none; /* Hidden by default on desktop */
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* --- Mobile Settings (Screen smaller than 991px) --- */
@media (max-width: 991px) {
    #menu-icon {
        display: block !important;
        z-index: 1002;
        position: relative;
    }

    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100%; /* Hides it off-screen to the right */
        width: 280px !important;
        height: 100vh !important;
        background: #0f172a !important; /* Deep Navy */
        flex-direction: column !important;
        padding: 100px 30px !important;
        transition: 0.4s ease-in-out !important;
        z-index: 1001 !important;
        display: flex !important;
        visibility: hidden;
        opacity: 0;
    }

    /* This class is added by your JavaScript */
    .nav-menu.active {
        right: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-menu li {
        width: 100%;
        margin-bottom: 20px;
        text-align: left;
    }

    .nav-menu li a {
        font-size: 18px !important;
        width: 100%;
    }
}


/* ========================================
   2. GLOBAL THEME & BUTTONS
   ======================================== */
:root {
    --brand: #1d4ed8;
    --navy: #0f172a;
    --text: #0f172a;
    --muted: #475569;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text);
    background: #f9f9f9;
    line-height: 1.6;
    overflow-x: hidden;
}

/* FIX: FORMATTING FOR FREE CONSULTATION & PREMIUM BUTTONS */
.btn-premium, .header-btns .btn, .contact-form button, .btn { 
    background: #1d4ed8 !important; /* Solid Blue */
    background-image: none !important;
    color: #ffffff !important;
    padding: 14px 32px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer;
    transition: 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none !important; /* FIXED: Removed underline */
    text-align: center;
}

.btn-premium:hover, .btn:hover, .contact-form button:hover {
    background: #0f172a !important; /* Navy Hover */
    transform: translateY(-2px);
}

/* ========================================
   3. LAYOUT COMPONENTS (SLIDERS & CARDS)
   ======================================== */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: 0.4s;
}

/* Insights Slider Logic - UNTOUCHED */
.insights-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 140px;
}

.insights-wrapper { overflow: hidden; }

.insights-list {
    display: flex;
    gap: 40px;
    will-change: transform;
}

.insight-card {
    flex: 0 0 400px;
    background: #fff;
    padding: 28px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* ========================================
   4. CONTACT SECTION
   ======================================== */
#contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0e7ff 100%);
}

.contact {
    background: #fff;
    border-radius: 24px;
    padding: 48px 32px;
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
}

.contact-info {
    flex: 1;
    background: linear-gradient(120deg, #e0e7ff 60%, #f0fdfa 100%);
    padding: 32px;
    border-radius: 18px;
}

.send-message {
    flex: 2;
    background: #f8fafc;
    padding: 32px;
    border-radius: 18px;
}

/* ========================================
   5. RESPONSIVE FIXES
   ======================================== */
@media (max-width: 1024px) {
    .nav-container { padding: 10px 20px; }
    .insights-container { padding: 0 20px; }
}

.copyright {
    background: #1a3c5a;
    color: #fff;
    text-align: center;
    padding: 20px;
}
/* ========================================
   TABLET RESPONSIVE (769px - 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 10px 16px;
    }
    
    .logo {
        height: 40px;
        max-width: 160px;
    }
    
    .nav-menu {
        gap: 6px;
    }
    
    .nav-menu li a {
        font-size: 13px;
        padding: 7px 10px;
    }
}

/* ========================================
   MOBILE RESPONSIVE (≤768px)
   ======================================== */
@media (max-width: 768px) {
    .nav-container {
        padding: 10px 16px;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .logo {
        height: 38px;
        max-width: 140px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: rgba(29, 78, 216, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li a {
        width: 100%;
        padding: 14px 20px;
        border-radius: 0;
        font-size: 15px;
    }
    
    .dropdown-content {
        position: static;
        background-color: rgba(59, 130, 246, 0.3);
        box-shadow: none;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }
    
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .dropdown::after {
        display: none;
    }
    
    .dropdown-content li a {
        color: #fff;
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .dropdown-content li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* ========================================
   EXTRA SMALL MOBILE (≤480px)
   ======================================== */
@media (max-width: 480px) {
    .nav-container {
        padding: 8px 12px;
    }
    
    .logo {
        height: 35px;
        max-width: 130px;
    }
    
    .menu-toggle {
        font-size: 22px;
    }
    
    .nav-menu li a {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ========================================
   REST OF YOUR EXISTING CSS
   ======================================== */

/* Smooth Scroll for the whole page */
html {
    scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
  overflow-x: hidden; /* prevents page going wider than screen */
}
:root{
  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-heading: "Plus Jakarta Sans", var(--font-body);

  /* Layout */
  --container: 1120px;
  --radius: 14px;

  /* Neutral palette (edit to match your brand) */
  --text: #0f172a;       /* slate-900 */
  --muted: #475569;      /* slate-600 */
  --border: #e2e8f0;     /* slate-200 */
  --bg: #ffffff;
  --bg-soft: #f8fafc;    /* slate-50 */

  /* Brand (adjust to your brand color) */
  --brand: #1d4ed8;      /* blue-700 */
  --brand-dark: #1e40af; /* blue-800 */
  --brand-soft: rgba(29,78,216,0.10);
}

/* Base */
html{ scroll-behavior: smooth; }
body{
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout helpers */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Headings */
h1,h2,h3{
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 10px;
}
h1{ font-size: clamp(32px, 3.2vw, 52px); }
h2{ font-size: clamp(24px, 2.2vw, 34px); }
h3{ font-size: 20px; }

p{
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 16px;
}

/* Sections: more whitespace = more "premium" */
section{
  padding: 72px 0;
}
section.alt{
  background: var(--bg-soft);
}

/* Buttons */
.btn-premium, .header-btns .btn { 
    background: #1d4ed8 !important; /* Solid Blue */
    background-image: none !important; /* Removes old gradients */
    color: #ffffff !important;
    border-radius: 8px !important;
    transition: 0.3s ease !important;
}

.btn-premium:hover, .header-btns .btn:hover {
    background: #0f172a !important; /* Navy Hover */
    transform: translateY(-2px);
}

/* Cards (services, features, testimonials, etc.) */
.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(2,6,23,0.10);
}

/* Links */
a{
  color: var(--brand);
  text-underline-offset: 3px;
}
a:hover{ color: var(--brand-dark); }

/* Forms */
input, select, textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
}
input:focus, textarea:focus, select:focus{
  outline: 3px solid rgba(29,78,216,0.18);
  border-color: rgba(29,78,216,0.35);
}

/* Mobile polish */
@media (max-width: 768px){
  section{ padding: 52px 0; }
}

  
/* ===== GENERAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
  
body {
    font-family: 'Poppins', sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
    cursor: default;
}
  
/* ===== HERO SECTION ===== */
#header {
    height: 100vh; /* full screen height */
    width: 100%; 
    background: linear-gradient(rgba(10, 25, 47, 0.65), rgba(10, 25, 47, 0.9)),
                url("picture and logo/accounting_firm_website_hero.jpg") no-repeat center center;
    background-size: cover; /* ensures image fills screen */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    text-align: center;
    position: relative;
    padding: 0;
    margin: 0;
}
  
.header-text {
    max-width: 850px;
    margin: auto;
    padding: 40px 30px;
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.10);
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(59,130,246,0.18), 0 1.5px 12px rgba(16,185,129,0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,0.22);
    margin-top: 140px;
}
  
.header-text .tagline {
    font-size: 1.1rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
    color: #fbbf24;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(59,130,246,0.10);
}
  
.header-text h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 24px rgba(59,130,246,0.18), 0 1.5px 12px rgba(16,185,129,0.10);
    letter-spacing: -1px;
}

.header-text h1::after {
    content: ' | AI-Driven Solutions';
    color: #10b981;
    font-size: 1.2rem;
    font-weight: 600;
    margin-left: 8px;
    animation: blink-cursor 1.2s steps(1) infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.header-text p {
    font-size: 1.18rem;
    color: #e0e7ff;
    margin-bottom: 32px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(16,185,129,0.10);
}

.btn {
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    color: #fff;
    font-size: 1.08rem;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 4px 24px rgba(16,185,129,0.16), 0 1.5px 12px rgba(59,130,246,0.10);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    border: none;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(236,72,153,0.18), rgba(16,185,129,0.12));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
    border-radius: 50px;
}

.btn:hover {
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
    transform: scale(1.07);
    box-shadow: 0 8px 32px rgba(59,130,246,0.22), 0 2px 16px rgba(16,185,129,0.16);
}

.btn:hover::after {
    opacity: 1;
}

/* ========================================
   MOBILE HEADLINE FIX
   Add this to your style.css
   ======================================== */

/* Desktop: Keep original inline animation */
@media (min-width: 769px) {
  .header-text h1::after {
    content: ' | AI-Driven Solutions';
    color: #10b981;
    font-size: 1.2rem;
    font-weight: 600;
    margin-left: 8px;
    animation: blink-cursor 1.2s steps(1) infinite;
  }
}

/* Mobile: Move to new line and center */
@media (max-width: 768px) {
  .header-text h1 {
    font-size: 22px !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .header-text h1::after {
    content: 'AI-Driven Solutions';
    color: #10b981;
    font-size: 16px !important;
    font-weight: 600;
    margin-left: 0 !important;
    animation: blink-cursor 1.2s steps(1) infinite;
    display: block !important;
    text-align: center !important;
  }
}

/* Extra small screens - slightly smaller */
@media (max-width: 420px) {
  .header-text h1 {
    font-size: 20px !important;
  }
  
  .header-text h1::after {
    font-size: 14px !important;
  }
}
  
/* ===== ABOUT SECTION ===== */
#about {
    padding: 60px 20px;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0fdfa 100%);
}

#about .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-col-1, 
.about-col-2 {
    flex: 1;
    min-width: 300px;
}
.action-btn-about {
  display: flex;
  justify-content: center;
}

.generic-tagline {
  font-style: italic;
  color: #3b82f6 !important;
}

.about-col-1 img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* ---- TEXT STYLING ---- */
.about-col-2 {
    text-align: left;
}
.about-col-2 h1 {
  border-left: 4px solid #00c6ff;
  padding-left: 12px;
  color: #222;
  font-size: 2rem;
}

.about-col-2 .sub-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a3c5a; /* deep navy blue */
    position: relative;
}

/* underline effect */
.about-col-2 .sub-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #3b82f6; /* bright blue accent */
    margin-top: 8px;
    border-radius: 2px;
}

.about-col-2 p {
    font-size: 20px;
    line-height: 2.0;
    color: #555; /* softer gray for readability */
    margin-top: 10px;
}

/* ---------- SERVICE CARDS INTERACTIVE STYLES ---------- */
#services {
    padding: 80px 0;
    background-color: #ffffff;
}

.services-list {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; /* This is the key fix for centering the last row */
    gap: 30px;
    margin-top: 50px;
    padding: 0 20px;
}

.service-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    flex: 1 1 320px; /* Allows cards to be flexible */
    max-width: 380px; /* Prevents them from getting too wide when centered */
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #1d4ed8;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.service-card i {
    font-size: 40px;
    margin-bottom: 20px;
    color: #1d4ed8;
}

.service-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0f172a;
    text-align: left;
}

.service-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    flex-grow: 1;
    text-align: left;
}

.service-link {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* ===== PRICING SECTION - FORCED ROW & NAVY BUTTONS ===== */
.pricing {
    background: #f8fafc;
    padding: 80px 0;
    width: 100%;
}

.pricing-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* Forces one row */
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1; /* Makes cards equal width */
    min-width: 0; /* Allows cards to shrink to fit the row */
    display: flex;
    flex-direction: column;
}

/* Dynamic Hover for Cards */
.pricing-card:hover {
    transform: translateY(-10px);
    border-color: #1d4ed8;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.plan-title {
    font-size: 1.2rem;
    font-weight: 700;
    min-height: 3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 10px 0;
    color: #0f172a;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
    flex-grow: 1;
}

.plan-features li {
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 1. More Professional Price Font */
.price {
    font-family: 'Plus Jakarta Sans', sans-serif; /* Matches your high-end headings */
    font-size: 2.8rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px; /* Tighter spacing looks more professional */
    margin: 10px 0;
}

.price span {
    font-family: 'Inter', sans-serif; /* Keep the /mo in a cleaner font */
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
}

/* 2. Change Color of the Shield Icon (No Hidden Fees) */
/* Using a nice Gold/Amber to signal "Guarantee/Security" */
.icon-shield {
    color: #f59e0b !important; 
}

/* 3. Refined Pricing Title for consistency */
.plan-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #0f172a;
}

/* 4. Ensure Bold text in lists stands out */
.plan-features li strong {
    color: #1e293b;
    font-weight: 600;
}

/* UPDATED PREMIUM BUTTONS (Blue to Deep Navy) */
.pricing .btn-pricing {
    background: #1d4ed8; /* Corporate Blue */
    color: #ffffff !important;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.pricing .btn-pricing:hover {
    background: #0f172a; /* The Deep Navy you liked */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

/* Mobile: Stack cards only when the screen gets too small */
@media (max-width: 900px) {
    .pricing-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    .pricing-card {
        flex: 1 1 300px;
        max-width: 400px;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr); /* Stay in 3 cols on small laptops */
        gap: 10px;
    }
    .plan-title { font-size: 1.1rem; }
}

@media (max-width: 850px) {
    .pricing-grid {
        grid-template-columns: 1fr; /* Stack only on tablet/mobile */
        gap: 30px;
    }
    .pricing-card {
        max-width: 450px;
        margin: 0 auto;
    }
}

/* ========================================
   INSIGHTS SECTION - COMPLETE REPLACEMENT
   Find and REPLACE the entire #insights section in your style.css
   Search for "/* ===== INSIGHTS SECTION =====" and replace everything 
   from there until the next major section comment
   ======================================== */

/* ===== INSIGHTS SECTION ===== */
#insights {
  padding: 80px 0;
  background: #fff;
  text-align: center;
  overflow: hidden;
}

#insights .section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 50px;
  color: #2c3e50;
}

/* Container for scrollable insights */
.insights-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 0 140px;
}

/* Wrapper to hide overflow */
.insights-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 15px 0;
}

/* layout */
.insights-list {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  overflow: visible;
  position: relative;
  will-change: transform;
  padding-left: 30px;
}

/* card */
.insight-card {
  background: #fff;
  padding: 28px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex: 0 0 400px;
  min-width: 400px;
  min-height: 300px;
}

.insight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* content */
.insight-title {
  font-size: 1.125rem;
  color: #1a3c5a;
  margin-bottom: 8px;
  line-height: 1.35;
}

.insight-meta {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 12px;
  font-weight: 600;
}

.insight-excerpt {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: #3b82f6;
  transition: transform 0.12s ease;
}

.card-link:hover {
  transform: translateX(4px);
  text-decoration: underline;
}

/* DESKTOP ONLY - Carousel buttons */
.insights-btn-prev,
.insights-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  background: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.insights-btn-prev {
  left: 40px;
}

.insights-btn-next {
  right: 40px;
}

.insights-btn-prev i,
.insights-btn-next i {
  font-size: 20px;
  color: #1d4ed8;
}

.insights-btn-prev:hover,
.insights-btn-next:hover {
  background: #3b82f6;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.insights-btn-prev:hover i,
.insights-btn-next:hover i {
  color: #fff;
}

/* Mobile Responsive for Insights */
@media (max-width: 768px) {
  #insights {
    padding: 60px 0;
  }

  .insights-container {
    padding: 0 20px;
    position: relative;
  }
  
  .insights-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 10px;
  }
  
  .insights-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 15px 0;
    margin-top: 30px;
  }
  
  .insight-card {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
    min-height: 280px;
  }
  
  /* Hide carousel buttons on mobile */
  .insights-btn-prev,
  .insights-btn-next {
    display: none;
  }
  
  /* Add swipe indicator */
  .insights-wrapper::after {
    content: '← Swipe to see more →';
    display: block;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    margin-top: 10px;
    font-style: italic;
  }
}

/* ===== WHY HUBBLE SECTION ===== */
#why-hubble {
  padding: 60px 0;
  background: #fff;
  text-align: center;
}

#why-hubble .section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #2c3e50;
}

.why-list {
  display: flex;
  justify-content: space-between; /* spread across screen */
  align-items: center;
  gap: 20px;
}

.why-item {
  flex: 1;
  text-align: center;
}

.why-item img {
  width: 80px;   /* small so all fit in one row */
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
  transition: transform 0.3s;
}

.why-item:hover img {
  transform: scale(1.1);
}

.why-item p {
  font-size: 14px;
  color: #34495e;
  font-weight: 500;
  line-height: 1.3;
  max-width: 140px;
  margin: 0 auto;
}
/* ===== WHY HUBBLE CARDS ===== */
.why-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.why-card {
  flex: 1 1 200px;
  max-width: 220px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.why-card:hover {
  transform: translateY(-8px);
}

.why-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 12px;
}

/* Responsive: stack for small screens */
@media (max-width: 900px) {
  .why-list {
    flex-wrap: wrap;
    justify-content: center;
  }
  .why-item {
    flex: 0 0 30%;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .why-item {
    flex: 0 0 45%;
  }
}
/* Logo Carousel Styles */
.logo-carousel {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 120px;
}

/* Logo carousel buttons - specific positioning */
.carousel-container .carousel-btn-prev,
.carousel-container .carousel-btn-next {
  position: absolute;
  bottom: 50px;
  z-index: 20;
}

.carousel-container .carousel-btn-prev {
  left: 30px;
}

.carousel-container .carousel-btn-next {
  right: 30px;
}

.carousel-title {
    margin-bottom: 40px;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.carousel-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
}

.carousel-track {
  display: block;
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 10px 0;
}

.carousel-slide {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.carousel-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  padding: 20px 0;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  padding-left: 20px;
}

.carousel-logo {
  flex: 0 0 auto;        /* prevent flex shrink/grow */
  width: 160px;          /* explicit width */
  height: 90px;          /* explicit height */
  object-fit: contain;
  margin: 0;             /* spacing handled by gap */
  filter: grayscale(100%);
  opacity: 0.9;
  transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease;
  padding: 12px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.carousel-logo img, .carousel-logo {
  display: block;
}

.carousel-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.carousel-btn i {
    font-size: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: #95a5a6;
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #3498db;
    transform: scale(1.2);
}

/* Animation for carousel */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-carousel {
    animation: fadeIn 1s ease;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .carousel-logo {
        max-width: 140px;
        margin: 0 15px;
    }
    
    .carousel-container {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .logo-carousel {
        padding: 40px 0;
    }
    
    .carousel-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .carousel-logo {
        max-width: 120px;
        margin: 0 10px;
        padding: 10px;
    }
    
    .carousel-container {
        padding: 0 40px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn i {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .carousel-logo {
        max-width: 100px;
    }
    
    .carousel-logos {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .carousel-logo {
        margin: 10px 15px;
        flex: 0 0 calc(33.333% - 30px);
        max-width: calc(33.333% - 30px);
    }
    
    .carousel-container {
        padding: 0 30px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-dots {
        margin-top: 20px;
    }
}

@media (max-width: 400px) {
    .carousel-logo {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
    
    .carousel-title {
        font-size: 22px;
    }
}

/* ===== CONTACT SECTION ===== */

/* Contact Section - Center title */
#contact .sub-title {
  text-align: center;
}

/* Ensure contact items are properly formatted */
.contact-item-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #2563eb;
  font-size: 1.1rem;
}

.contact-item-container i {
  font-size: 1.2rem;
  color: #10b981;
}

.contact-item-container a {
  color: #1e293b;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-item-container a:hover {
  color: #3b82f6;
}
<div id="contact">
    <div class="container">
      <h1 class="sub-title" style="text-align: center;">Contact Us</h1>
        <div class="contact">
          <div class="contact-info">
            <div class="get-in-touch">
              <h2>Contact Info</h2>
              <div class="contact-item-container">
                <i class="fa-solid fa-phone"></i>
                <a href="tel:01172449110" class="contact-item">0117 244 9110</a>
              </div>
              <div class="contact-item-container"><i class="fa-solid fa-envelope"></i><a href="mailto:info@hubbleaccountancy.com" class="contact-item">info@hubbleaccountancy.com</a></div>
            </div>
            <div class="office-hours">
              <h2>Office Hours</h2>
              <p><strong>Mon – Fri:</strong> 9:00 AM – 5:00 PM</p>
              <p class="info-message">&ast; Evening appointments available on request.</p>
            </div>
            <div class="office-hours">
              <h2>Location</h2>
              <p>Based in Bristol, Supporting clients all over UK.</p>
            </div>
          </div>
          <div class="send-message">
            <h2>Let's start a conversation</h2>
            <form class="contact-form" id="contactForm">
              <input type="text" name="name" placeholder="Your Name" required>
              <input type="email" name="email" placeholder="Your Email" required>
              <input
                type="tel"
                name="phone"
                placeholder="Your Phone Number"
                inputmode="tel"
                required
                pattern="^\+?[0-9\s\(\)\-]{7,20}$"
                title="Enter a valid phone number (digits, optional +, spaces, - or parentheses)."
              />
              <textarea name="message" rows="5" placeholder="Your Message" required></textarea>
              <button id="sendButton" type="submit" class="btn  btn-enabled bounce-in"><i class="fa-solid fa-paper-plane"></i>Get in Touch</button>
            </form>
            <p class="reassurance">We respect your privacy – your details are never shared with third parties.</p>
            <p class="info-message">** We aim to respond within 24 hours.</p>
          </div>
      </div>
    </div>
  </div>

.contact-form input,
.contact-form textarea,
.contact-form button {
  font-family: inherit; /* ensures it matches your page's font */
}

#contact {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0fdfa 0%, #e0e7ff 100%);
}

#contact .row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.contact {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(59,130,246,0.10), 0 1.5px 12px rgba(16,185,129,0.08);
  padding: 48px 32px;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.contact-info {
  background: linear-gradient(120deg, #e0e7ff 60%, #f0fdfa 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(59,130,246,0.07);
  padding: 32px 24px;
  max-width: 350px;
  min-width: 260px;
  margin-right: 40px;
  text-align: left;
  font-size: 1.08rem;
}

.contact-info h2 {
  color: #1d4ed8;
  font-size: 1.5rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.contact-item-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #2563eb;
  font-size: 1.1rem;
}

.contact-item-container i {
  font-size: 1.2rem;
  color: #10b981;
}

.contact-item-container a {
  color: #1e293b;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-item-container a:hover {
  color: #3b82f6;
}

.info-message {
  font-size: 0.95rem;
  color: #64748b;
  margin-top: 10px;
  font-style: italic;
}

.send-message, .contact-form {
  background: #f8fafc;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(59,130,246,0.07);
  padding: 32px 28px;
  max-width: 600px;
  margin-left: 40px;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 18px;
  background: #fff;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #3b82f6;
  outline: none;
}

.contact-form button {
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
  color: #fff;
  font-size: 1.08rem;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(16,185,129,0.12);
  border: none;
  letter-spacing: 1px;
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}

.contact-form button:hover {
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
  transform: scale(1.04);
}

@media (max-width: 991px) {
  .contact {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
    padding: 32px 8px !important;
  }
  .contact-info, .send-message, .contact-form {
    margin: 0 !important;
    max-width: 100% !important;
    text-align: center !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 12px rgba(59,130,246,0.07) !important;
    padding: 24px 10px !important;
  }
}
  
/* ===== FOOTER ===== */
.copyright {
    background: #1a3c5a;
    color: #fff;
    text-align: center;
    padding: 18px;
    font-size: 14px;
    margin-top: 40px;
    position: relative;
}
  
.copyright i {
    color: #f9b233;
    margin-left: 5px;
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {

  /* HERO TEXT */
  .header-text h1 {
    font-size: 20px;
    line-height: 1.4;
    padding: 0 10px;
  }

  .header-text .tagline {
    font-size: 13px;
  }

  .btn {
    font-size: 13px;
    padding: 8px 16px;
  }

  /* ABOUT SECTION */
  #about .row {
    flex-direction: column;
    text-align: center;
  }

  .about-col-1 img {
    max-width: 90%;
    margin-bottom: 20px;
  }

  .about-col-2 .sub-title {
    font-size: 22px;
  }

  .about-col-2 p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* SERVICES */
  .services-list {
    grid-template-columns: 1fr;
  }

  /* WHY HUBBLE */
  .why-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    justify-items: center;
  }

  .why-list img {
    max-width: 70px;
  }

  .why-list div {
    font-size: 13px;
    text-align: center;
  }

  /* CONTACT */
  .contact-left .company-name {
    font-size: 18px;
  }

  /* FOOTER */
  .copyright {
    font-size: 12px;
    padding: 12px;
  }
  }

/* ========================================
   COMPLETE MOBILE FIXES - FINAL VERSION
   Add these to the END of your style.css
   ======================================== */

/* ===== FIX 1: REMOVE "WHO WE ARE" UNDERLINE ===== */
.about-col-2 .sub-title::after {
    content: none !important;
    display: none !important;
}

/* ===== FIX 2: WHY HUBBLE - CENTER LAST ITEM ===== */
@media (max-width: 768px) {
  .why-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    justify-items: center !important;
  }
  
  /* Center the last item when odd number */
  .why-item:nth-child(5) {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
  }
}

/* ===== FIX 3: INSIGHTS SECTION - MOBILE SWIPE ===== */
@media (max-width: 768px) {
  #insights {
    padding: 60px 0 !important;
  }

  .insights-container {
    padding: 0 20px !important;
    position: relative !important;
  }
  
  .insights-wrapper {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    padding-bottom: 10px !important;
  }
  
  .insights-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    padding: 15px 0 !important;
    margin-top: 30px !important;
  }
  
  .insight-card {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    min-height: 280px !important;
  }
  
  /* Hide carousel buttons on mobile */
  .insights-btn-prev,
  .insights-btn-next {
    display: none !important;
  }
  
  /* Add swipe indicator */
  .insights-wrapper::after {
    content: '← Swipe to see more →';
    display: block;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    margin-top: 10px;
    font-style: italic;
  }
}


/* ===== FIX 4: CONTACT SECTION - PROFESSIONAL LAYOUT ===== */
@media (max-width: 768px) {
  #contact {
    padding: 60px 16px !important;
  }
  
  .contact {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
    padding: 32px 20px !important;
    margin: 0 auto !important;
    max-width: 100% !important;
  }
  
  /* Contact Info Section */
  .contact-info {
    margin: 0 !important;
    padding: 24px 20px !important;
    max-width: 100% !important;
    text-align: left !important;
  }
  
  .get-in-touch,
  .office-hours {
    margin-bottom: 20px !important;
  }
  
  .contact-info h2 {
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
    text-align: left !important;
  }
  
  .contact-item-container {
    justify-content: flex-start !important;
    text-align: left !important;
  }
  
  .office-hours p {
    text-align: left !important;
    margin-bottom: 8px !important;
  }
  
  /* Message Form Section */
  .send-message {
    margin: 0 !important;
    padding: 24px 20px !important;
    max-width: 100% !important;
  }
  
  .send-message h2 {
    font-size: 1.3rem !important;
    margin-bottom: 16px !important;
    text-align: left !important;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100% !important;
    margin-bottom: 14px !important;
    padding: 12px !important;
    font-size: 16px !important;
  }
  
  .contact-form button {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 1rem !important;
  }
  
  .reassurance,
  .info-message {
    text-align: left !important;
    font-size: 0.85rem !important;
    margin-top: 12px !important;
  }
}

/* ===== FIX 5: NORMALIZE LOGO SIZE ===== */
@media (max-width: 768px) {
  .logo {
    height: 35px !important;
    max-width: 140px !important;
  }
  
  .nav-container {
    padding: 10px 16px !important;
  }
}

@media (max-width: 420px) {
  .logo {
    height: 32px !important;
    max-width: 130px !important;
  }
}

/* ===== ADDITIONAL MOBILE IMPROVEMENTS ===== */

/* Better touch targets */
@media (max-width: 768px) {
  .nav-menu li a {
    padding: 16px 20px !important;
    font-size: 16px !important;
  }
  
  .nav-menu {
    transition: right 0.35s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
  }
  
  .btn, .btn-premium {
    min-height: 44px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
  }
}

/* Services section mobile */
@media (max-width: 768px) {
  #services {
    padding: 60px 16px !important;
  }
  
  .services-list {
    gap: 20px !important;
    margin-top: 30px !important;
  }
  
  .service-card {
    padding: 28px 20px !important;
  }
  
  .service-card h2 {
    font-size: 1.25rem !important;
  }
  
  .service-card p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }
}

/* Pricing section mobile */
@media (max-width: 768px) {
  .pricing {
    padding: 60px 16px !important;
  }
  
  .pricing-row {
    gap: 20px !important;
    padding: 0 !important;
  }
  
  .pricing-card {
    padding: 28px 20px !important;
  }
  
  .plan-title {
    font-size: 1.15rem !important;
    min-height: auto !important;
  }
  
  .price {
    font-size: 2.2rem !important;
  }
  
  .plan-features li {
    font-size: 0.875rem !important;
    padding: 8px 0 !important;
  }
  
  .btn-pricing {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
  }
}

/* Hero section mobile */
@media (max-width: 768px) {
  #header {
    padding-top: 70px !important;
  }
  
  .header-text {
    padding: 24px 20px !important;
  }
  
  .header-text p {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
  }
  
  .header-text .tagline {
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
  }
}

/* Logo carousel mobile */
@media (max-width: 768px) {
  .logo-carousel {
    padding: 50px 16px !important;
  }
  
  .carousel-title {
    font-size: 20px !important;
    margin-bottom: 30px !important;
  }
  
  .carousel-logos {
    justify-content: center !important;
    gap: 16px !important;
  }
  
  .carousel-logo {
    width: 140px !important;
    height: 80px !important;
  }
}

/* About section mobile */
@media (max-width: 768px) {
  #about {
    padding: 60px 16px !important;
  }
  
  .about-col-2 {
    padding: 20px 16px !important;
  }
  
  .about-col-2 .sub-title {
    font-size: 1.5rem !important;
    text-align: center !important;
  }
  
  .about-col-2 .generic-tagline {
    font-size: 1rem !important;
    text-align: center !important;
  }
  
  .about-col-2 p {
    font-size: 0.95rem !important;
    text-align: left !important;
  }
  
  .action-btn-about {
    margin-top: 20px !important;
  }
  
  .about-col-1 {
    padding: 0 !important;
    flex: 0 0 auto !important;
  }
  
  .about-col-1 > div {
    grid-template-columns: 120px 120px !important;
    grid-template-rows: 120px 120px !important;
    gap: 16px !important;
  }
  
  .pillar-card {
    padding: 12px !important;
  }
  
  .pillar-card i {
    font-size: 28px !important;
  }
  
  .pillar-card span {
    font-size: 11px !important;
  }
}

/* Section titles consistency */
@media (max-width: 768px) {
  .sub-title, .section-title {
    font-size: 1.6rem !important;
    text-align: center !important;
    margin-bottom: 16px !important;
  }
  
  .generic-tagline {
    font-size: 0.95rem !important;
    text-align: center !important;
    margin-bottom: 24px !important;
  }
  
  .pricing-subtitle {
    font-size: 0.95rem !important;
    text-align: center !important;
    margin-bottom: 30px !important;
  }
}

/* Footer mobile */
@media (max-width: 768px) {
  .copyright {
    padding: 20px 16px !important;
    font-size: 13px !important;
  }
  
  .policies {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }
  
  .policies a {
    font-size: 13px !important;
  }
}

/* Back to top button */
@media (max-width: 768px) {
  #backToTop {
    right: 16px !important;
    bottom: 80px !important;
    top: auto !important;
    padding: 12px 14px !important;
    font-size: 18px !important;
  }
}

/* Performance optimizations */
@media (max-width: 768px) {
  * {
    -webkit-overflow-scrolling: touch;
  }
  
  .service-card:hover,
  .pricing-card:hover,
  .insight-card:hover,
  .pillar-card:hover {
    transform: none !important;
  }
  
  .service-card:active,
  .pricing-card:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
  }
}

/* Fix overflow issues */
@media (max-width: 768px) {
  body, html {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
  }
  
  .container {
    max-width: 100% !important;
    padding: 0 16px !important;
  }
  
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Form input optimization */
@media (max-width: 768px) {
  input, textarea, select {
    font-size: 16px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
  }
  
  textarea {
    min-height: 120px !important;
  }
}

/* Button states */
.btn-disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.btn-enabled {
  opacity: 1 !important;
  cursor: pointer !important;
}

/* Readability improvements */
@media (max-width: 768px) {
  .about-col-2 p,
  .service-card p,
  .insight-excerpt {
    max-width: 65ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

  h1, h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  #backToTop {
    position: fixed;
    right: 20px;
    top: 90%;
    background-color: rgba(59, 130, 246, 0.85);
    color: #fff;
    font-size: 20px;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    display: none;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s, opacity 0.3s;
  }

  #backToTop:hover {
    background-color: #2563eb;
  }

/* Center the last pricing card if odd/even number of cards */
.pricing-card:last-child {
  justify-self: center;
}

@media (min-width: 992px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pricing-card:last-child {
    grid-column: 2 / 3;
  }
}
#about .sub-title,
.pricing .section-title {
  color: #111 !important;
}

/* ===============================
   MOBILE ONLY CSS
   =============================== */
@media (max-width: 768px) {

  /* ---------- GLOBAL MOBILE BASE ---------- */
  html, body { overflow-x: hidden; }
  section { padding: 52px 0 !important; }

  /* ---------- HERO (MOBILE) ---------- */
  #header{
    min-height: 100vh !important;
    height: 100vh !important;
    position: relative !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Center hero text block perfectly */
  .header-text{
    position: absolute !important;
    left: 50% !important;
    top: calc(50% + 35px) !important;
    transform: translate(-50%, -50%) !important;
    width: min(92%, 850px) !important;
    max-width: 850px !important;
    text-align: center !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .header-text .tagline{
    font-size: 13px !important;
  }

  .header-text h1{
    font-size: 22px !important;
    line-height: 1.3 !important;
    padding: 0 !important;
  }

  .btn{
    font-size: 13px !important;
    padding: 10px 16px !important;
  }

  /* ---------- ABOUT (MOBILE) ---------- */
  #about{ padding: 52px 16px !important; }
  #about .row{
    flex-direction: column !important;
    text-align: center !important;
    gap: 22px !important;
  }
  .about-col-1, .about-col-2{
    min-width: 0 !important;
  }
  .about-col-1 img{
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  .about-col-2{
    text-align: center !important;
  }
  .about-col-2 .sub-title{
    font-size: 22px !important;
  }
  .about-col-2 p{
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  /* ---------- SERVICES (MOBILE) ---------- */
  #services{ padding: 52px 16px !important; }
  .services-list{
    flex-direction: column !important;
    gap: 16px !important;
  }
  .service-card{
    max-width: 100% !important;
    min-height: auto !important;
  }

  /* ---------- PRICING (MOBILE) ---------- */
  .pricing{ padding: 52px 0 !important; }
  .pricing-grid{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .pricing-card{
    min-height: auto !important;
  }

  /* ---------- INSIGHTS (MOBILE) ---------- */
  .insights-list{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* ---------- WHY HUBBLE (MOBILE) ---------- */
  .why-list{
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    justify-items: center !important;
  }
  .why-card{
    max-width: 100% !important;
  }

  /* ---------- LOGO CAROUSEL (MOBILE) ---------- */
  .logo-carousel{ padding: 40px 0 !important; }
  .carousel-container{ padding: 0 20px !important; }
  .carousel-logos{
    flex-wrap: wrap !important;
    gap: 14px !important;
  }
  .carousel-logo{
    width: calc(50% - 14px) !important;
    height: 75px !important;
  }
  .carousel-btn{
    width: 38px !important;
    height: 38px !important;
  }
  .carousel-btn i{ font-size: 16px !important; }

  /* ---------- CONTACT (MOBILE) ---------- */
  #contact{ padding: 52px 0 !important; }

  .contact{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
    margin: 0 6% !important;
  }

  .office-hours, .get-in-touch{
    max-width: 100% !important;
  }

  .send-message{
    width: 100% !important;
    max-width: 100% !important;
  }

  /* If Google Form iframe is used */
  .send-message iframe{
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ---------- FOOTER (MOBILE) ---------- */
  .copyright{
    font-size: 12px !important;
    padding: 12px !important;
  }
}

/* Extra small screens */
@media (max-width: 420px){
  .logo{
    width: 135px !important;
    max-width: 135px !important;
  }

  .header-text h1{
    font-size: 20px !important;
  }
}

@media (min-width: 992px) {
  .contact {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
  }
  .contact-info {
    order: 1;
    flex: 1 1 320px;
    max-width: 350px;
    margin-right: 40px;
    text-align: left;
  }
  .send-message, .contact-form {
    order: 2;
    flex: 2 1 500px;
    max-width: 600px;
    margin-left: 40px;
    text-align: left;
  }
}

@media (max-width: 991px) {
  .contact {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }
  .contact-info, .send-message, .contact-form {
    margin: 0 !important;
    max-width: 100% !important;
    text-align: center !important;
  }
}

@media (max-width: 991px) {
    #menu-icon {
        display: block !important;
        z-index: 1002;
        position: relative;
    }

    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100%; /* Hides it off-screen */
        width: 280px !important;
        height: 100vh !important;
        background: #0f172a !important;
        flex-direction: column !important;
        padding: 80px 20px !important;
        transition: 0.4s ease-in-out !important;
        z-index: 1001 !important;
        display: flex; /* Remove !important here */
        visibility: hidden; /* Extra safety to keep it hidden */
    }

    .nav-menu.active {
        right: 0 !important; /* Slides in */
        visibility: visible !important;
    }

    .nav-menu li {
        width: 100%;
        margin-bottom: 15px;
    }
}
/* --- REVIEWS CAROUSEL STYLES --- */
.reviews-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden; /* Keeps the buttons from scrolling with the list */
    padding: 20px 0;
}

.reviews-list {
    display: flex;
    gap: 30px;
    overflow-x: auto; /* Enables the scrolling ability */
    scroll-behavior: smooth;
    padding: 20px 10px;
    list-style: none;
    
    /* Hides scrollbar for a clean look */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.reviews-list::-webkit-scrollbar {
    display: none; /* Hides scrollbar for Chrome/Safari */
}

.review-card {
    flex: 0 0 380px; /* Ensures cards don't shrink and stay at 380px wide */
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

/* --- CAROUSEL BUTTONS --- */
.reviews-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.reviews-btn-prev, .reviews-btn-next {
    background: #1d4ed8;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 1.2rem;
}

.reviews-btn-prev:hover, .reviews-btn-next:hover {
    background: #2563eb;
    transform: scale(1.1);
}

/* ===========================================
   UNIVERSAL CAROUSEL FIX (Add to bottom)
   =========================================== */
.reviews-list, 
.insights-list, 
.carousel-logos {
    display: flex;
    gap: 30px;
    overflow-x: auto;      /* Enables the scrolling magic */
    scroll-behavior: smooth;
    padding: 20px 0;
    width: 100%;
    
    /* Hide scrollbar for a clean look */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome/Safari */
.reviews-list::-webkit-scrollbar, 
.insights-list::-webkit-scrollbar, 
.carousel-logos::-webkit-scrollbar {
    display: none;
}

/* Ensure Logo Container allows scrolling */
.carousel-track {
    overflow: hidden; 
    width: 100%;
}