/* Tasboh Track - Professional Website Stylesheet
   Version 2.0
*/

/* --- PREVENT FLASH OF UNSTYLED CONTENT (FOUC) --- */
/* Preload critical styles - prevents page blink */
html {
  background-color: #0b1621; /* Match body background */
  overflow-x: hidden;
}

/* Hide body until styles load to prevent flash */
body {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

/* Show body after DOM is ready */
body.loaded {
  opacity: 1;
}

/* Smooth page transitions */
.page-transition {
  animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent logo flash - preload with skeleton */
.brand-mark {
  min-width: 40px;
  min-height: 40px;
  background: transparent;
  border-radius: 6px;
}

/* Smooth image loading */
img {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img.loaded {
  opacity: 1;
}

/* Logo specific - instant display with fade-in */
.brand-mark {
  opacity: 1 !important; /* Logo always visible */
}

/* --- Global Styles & Variables --- */
:root {
    --bg: #0b1621;              /* page background */
    --ink: #e8eef6;             /* text/foreground */
    --primary: #00A896;         /* brand teal */
    --logo-glow: rgba(0, 168, 150, 0.25);
    --primary-color: #0D1B2A;   /* Deep Navy Blue */
    --secondary-color: #1B263B; /* Richer Navy */
    --accent-color: #00A896;    /* Vibrant Teal */
    --text-color: #E0E1DD;      /* Off-white */
    --heading-color: #FFFFFF;
    --card-bg: #1B263B;
    --border-color: #415A77;
    --font-family: 'Inter', sans-serif; /* A clean, modern font */
    
    /* Logo theme variables */
    --tt-primary: #1f5ea1;        /* shield top */
    --tt-primary-dark: #0e3f77;   /* shield bottom */
    --tt-ink: #ffffff;            /* the "T" */
    --tt-glow: rgba(31,94,161,.28); /* outer halo */
    
    /* New compact logo variables */
    --tt-primary-top: #36a3ff;   /* bright top */
    --tt-primary-btm: #0e4a86;   /* deep bottom */
}

/* Light mode example */
@media (prefers-color-scheme: light){
  :root{
    --tt-ink:#0f172a;
    --tt-primary:#2a78b8;
    --tt-primary-dark:#1a5a8f;
  }
}

/* Logo sizing and effects */
.tt-logo{ height:40px; width:auto; filter: drop-shadow(0 10px 24px rgba(14,74,134,.28)); }

/* === NEW HEADER STYLES === */
/* Layout row for header */
.nav-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-block:10px; /* comfortable height */
}

/* Brand area */
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--ink); /* uses your existing color */
  margin-right: auto; /* Push nav to the right, brand stays on left */
}

/* Logo size tuned for mobile & desktop */
.brand-mark{
  width:40px; height:40px;
  display:block;
  border-radius:6px; /* softens PNG edges if any */
  margin: 0; /* Remove any default margins */
}

/* Wordmark – modern, crisp, accessible */
.brand-name{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue",
               "Noto Sans", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight:800;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem);
  letter-spacing:.2px;
  line-height:1;
  color: #36a3ff;      /* Different color - bright blue */
  text-rendering: optimizeLegibility;
  margin: 0; /* Remove any default margins */
}

/* Keep nav collapse working with your current JS */
.site-nav{ margin-left:auto; }           /* pushes menu to the right */
.nav-cta{ margin-left:12px; }            /* space before CTA */

/* On small screens: tighter layout */
@media (max-width: 768px){
  .brand-mark{ width:36px; height:36px; }
  .brand-name{ font-size:1.05rem; }
  .nav-cta{ display:none; }              /* optional: hide CTA on tiny widths */
}
/* === END NEW HEADER STYLES === */

/* --- Base & Typography --- */
body {
    font-family: var(--font-family);
    background-color: var(--primary-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    /* Removed duplicate opacity rule - handled above */
}

h1, h2, h3 {
    color: var(--heading-color);
    font-weight: 700;
    margin-top: 0;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFFFFF;
}

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

/* Adjust container for navbar to remove side padding */
.navbar .container {
    padding: 0 1rem; /* Reduced padding */
}

/* Ensure brand is flush left */
.navbar .nav-row {
    width: 100%;
}

/* --- Navbar --- */
/* Base container spacing */
.navbar { position: sticky; top: 0; z-index: 50; background: #0b1621; }
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
  margin: 0;
  padding: 12px clamp(12px, 3vw, 32px);
  padding-left: clamp(16px, 4vw, 48px);
}

/* Logo breathing room */
.logo { display: flex; align-items: center; }
.logo img { height: 48px; width: auto; display: block; }
.site-nav { margin-left: 8px; }              /* space between logo and menu */
.site-nav ul { display: flex; gap: clamp(16px, 4vw, 40px); align-items: center; }
.site-nav a { white-space: nowrap; }

/* Keep the CTA tidy beside the menu on desktop */
.nav-cta { margin-left: clamp(8px, 2vw, 20px); }

/* Hamburger (hidden on desktop) */
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: #e8eef6; margin: 5px 0; border-radius: 2px;
}

/* Prevent accidental horizontal scrollbars on small screens */
html, body { overflow-x: hidden; }

/* --- Mobile layout --- */
@media (max-width: 980px) {
  /* Hide the big CTA on very small screens to avoid crowding;
     it will appear inside the drawer menu */
  .nav-cta { display: none; }

  /* Show hamburger */
  .nav-toggle { display: inline-block; }

  /* Turn nav into a slide-in drawer */
  .site-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(78vw, 360px);
    background: #0b1621; border-left: 1px solid rgba(255,255,255,.06);
    transform: translateX(100%); transition: transform .28s ease;
    padding: 88px 22px 22px; box-shadow: -24px 0 40px rgba(0,0,0,.35);
  }

  .site-nav ul { 
    display: flex;
    flex-direction: column; 
    align-items: flex-start; 
    gap: 18px; 
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .site-nav a { 
    font-size: 1.05rem;
    color: #e8eef6;
    text-decoration: none;
    display: block;
    padding: 8px 0;
  }

  /* Make header tighter so logo and burger aren't cramped */
  .navbar .container { padding: 10px 16px; padding-left: clamp(14px, 6vw, 32px); }
}

/* If you want a CTA button appearing at the end of the drawer: */
@media (max-width: 980px) {
  .menu-cta,
  .site-nav .menu-cta {
    display: none;
  }
}

/* --- Buttons --- */
.cta-button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.cta-button.primary, .nav-cta {
    background-color: var(--accent-color);
    color: #FFF;
}
.cta-button.primary:hover, .nav-cta:hover {
    background-color: #00C2A8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 168, 150, 0.3);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--heading-color);
    border: 2px solid var(--border-color);
}
.cta-button.secondary:hover {
    background-color: var(--border-color);
    color: #FFF;
}


/* --- Hero Section --- */
.hero {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--primary-color) 0%, #081018 100%);
}

.hero .subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-image {
    margin-top: 4rem;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* --- Core Features Section --- */
.core-features {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}
.feature-card img {
    height: 50px;
    margin-bottom: 1rem;
}

/* --- Why Choose Us Section --- */
.why-choose-us {
    padding: 5rem 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.why-card {
    padding: 2rem;
    text-align: center;
}
.why-icon {
    height: 60px;
    margin-bottom: 1.5rem;
}

/* --- Testimonials Section --- */
.testimonials {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.testimonial-card blockquote {
    font-size: 1.25rem;
    font-style: italic;
    margin: 0 0 1.5rem 0;
    border: none;
    padding: 0;
}

.testimonial-card cite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 600;
}

.testimonial-card cite img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}


/* --- Footer --- */
.footer {
    padding: 2rem 0;
    background-color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.text-center {
    text-align: center;
}

/* --- Additional Styles for Features & Pricing Pages --- */

/* --- Page Hero --- */
.page-hero {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--secondary-color);
}
.page-hero h1 {
    font-size: 2.8rem;
}
.page-hero .subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* --- Feature Showcase (Features Page) --- */
.feature-detail-section {
    padding: 5rem 0;
}
.feature-showcase {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}
.feature-showcase.reverse {
    flex-direction: row-reverse;
}
.feature-text, .feature-image {
    flex: 1;
}
.feature-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.feature-text ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}
.feature-text li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}
.feature-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--secondary-color);
    padding: 4rem 0;
}
.cta-section h2 {
    font-size: 2.2rem;
}
.cta-section p {
    margin: 1rem 0 2rem;
}

/* --- Pricing Table --- */
.pricing-table-section {
    padding: 5rem 0;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}
.pricing-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.pricing-card.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    position: relative;
}
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}
.pricing-card h3 { font-size: 1.5rem; }
.price { font-size: 2.5rem; font-weight: 700; margin: 1rem 0 0.5rem; }
.billing-info { font-size: 0.9rem; color: var(--text-color); margin-bottom: 2rem; }
.plan-features { list-style: none; padding: 0; margin-bottom: 2rem; }
.plan-features li { margin-bottom: 0.75rem; }

/* --- Feature Comparison Table --- */
.feature-comparison {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}
.comparison-table-wrapper {
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.comparison-table th, .comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.comparison-table th { font-size: 1.1rem; }
.comparison-table td:not(:first-child) { text-align: center; }

/* --- FAQ Section --- */
.faq-section {
    padding: 5rem 0;
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.faq-item h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .feature-showcase, .feature-showcase.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Additional Styles for About & Contact Pages --- */

/* --- Our Story Section (About Page) --- */
.our-story-section {
    padding: 5rem 0;
}

/* --- Team Section (About Page) --- */
.team-section {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.team-member-card {
    text-align: center;
}
.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    border: 3px solid var(--border-color);
}
.team-member-card h3 {
    margin-bottom: 0.25rem;
}
.team-member-card .role {
    color: var(--accent-color);
    font-weight: 500;
}

/* --- Contact Section --- */
.contact-section {
    padding: 5rem 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}
.contact-details ul {
    list-style: none;
    padding: 0;
}
.contact-details li {
    margin-bottom: 1.5rem;
}
.contact-details strong {
    color: var(--heading-color);
}
.social-links {
    margin-top: 2rem;
}
.social-links img {
    height: 30px;
    margin-right: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.social-links img:hover {
    opacity: 1;
}

/* --- Contact Form --- */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- Process Steps (Tax Page) --- */
.process-steps {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}
.process-steps li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.process-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 700;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Additional Styles for Use Cases Page --- */

/* --- Case Studies Section --- */
.case-studies-section {
    padding: 5rem 0;
}
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.case-study-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: all 0.3s ease;
}
.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.case-study-header {
    margin-bottom: 1.5rem;
}
.industry-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.industry-tag.retail {
    background-color: rgba(0, 168, 150, 0.2);
    color: var(--accent-color);
}
.industry-tag.manufacturing {
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--accent-color);
}
.industry-tag.field-service {
    background-color: rgba(46, 134, 171, 0.2);
    color: #2E86AB;
}
.case-study-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.case-study-content p {
    margin-bottom: 1rem;
}
.case-study-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.case-study-content li {
    margin-bottom: 0.5rem;
}

/* --- Additional Styles for Download Section --- */
#app-download {
    padding: 5rem 0;
    background-color: var(--secondary-color);
    text-align: center;
}
#app-download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
#app-download p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}
.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.web-version {
    margin-top: 1.5rem;
    font-size: 1rem;
}
.web-version a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Solo founder layout */
.solo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.solo-card {
  background: var(--card-bg, #0f172a); /* respects dark theme if you use CSS vars */
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.25rem;
}
.solo-card h3 { margin-top: .25rem; }
.solo-card ul { margin: .5rem 0 0 1.15rem; }
.solo-logo {
  width: 56px; height: 56px; border-radius: 12px; display:block; margin-bottom:.5rem;
}
.solo-cta { margin-top: 1.25rem; display:flex; gap:.75rem; flex-wrap:wrap; }
.cta-button.ghost { background: transparent; border: 1px solid currentColor; }

/* Social links */
.social-links{ display:flex; gap:10px; margin-top:12px }
.social-links img,
.social-links svg{ width:28px; height:28px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
.social-links a{ transition: transform 0.2s ease; }
.social-links a:hover{ transform: translateY(-3px); }

/* Footer social links */
.footer-content{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:2rem; }
.footer-section{ flex:1; min-width:200px; }
.footer-social h4{ color:var(--text-color); margin-bottom:1rem; }
.footer-social .social-links{ margin-top:0; }
.footer-links{ list-style:none; padding:0; margin:0; display:flex; gap:1.5rem; }

/* ===== Mobile nav system (safe colors; only layout/behavior) ===== */
.navbar{position:sticky; top:0; z-index:1200;}

/* desktop nav behaves as you already have */
@media (max-width: 980px){
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; width:44px;height:44px; }

  /* optional: hide the top-right CTA inside the header on small screens */
  .nav-cta{ display:none !important; }
}

/* keep main content from sliding under a fixed header on small screens */
@media (max-width: 980px){
  main{ padding-top: 8px; }
}

/* --- Standardize brand logo --- */
.brand { display:flex; align-items:center; gap:10px; min-width:0; }
.brand-mark { height:44px; width:auto; object-fit:contain; image-rendering:auto; display:block; }
@media (max-width: 640px){ .brand-mark { height:36px; } }
.navbar .nav-row { display:flex; align-items:center; }
