/* Main Stylesheet for TailorFit */

/* ===== Variables ===== */
:root {
    /* Colors */
    --primary-color: #6366f1;
    --secondary-color: #4a6b5c;
    --accent-color: #fbbf24;
    --light-green: #d4f582;
    --dark-bg: #ffffff;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --border-color: #e0e0e0;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .7s cubic-bezier(.22,.68,0,1.2);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all .7s cubic-bezier(.22,.68,0,1.2);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all .7s cubic-bezier(.22,.68,0,1.2);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(.9);
  transition: all .6s cubic-bezier(.22,.68,0,1.2);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* stagger */
.stagger > * {
  transition-delay: var(--delay, 0s);
}

/* ===============================
   Back To Top Button (Mobile Safe)
================================ */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 999;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  cursor: pointer;

  /* 🔥 CRITICAL FIX */
  max-width: calc(100vw - 20px);
  box-sizing: border-box;
}

/* Mobile tweak */
@media (max-width: 576px) {
  .back-to-top {
    right: 12px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}


html {
    scroll-behavior: smooth;
}

/* ===============================
   HARD STOP horizontal scroll (mobile)
================================ */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip; /* modern browsers */
}

/* fallback */
@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}


body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Pro', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

/* ===== Utility Classes ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.tailorfit-features .shadow-sm:hover {
    transform: translateY(-6px);
    transition: 0.2s ease;
}



/* ===== Navigation ===== */
.navbar {
    background: transparent;        /* outer navbar transparent */
    box-shadow: none;
    padding: 14px 0;
}

.navbar-logo {
    height: 22px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0); /* GPU fix */
}

/* Brand text beside logo */
.brand-text {
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    line-height: 1;
}

/* Gradient TailorFit */
.logo-main {
    background: linear-gradient(90deg, #4f8cff, #6a5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* .app suffix */
.logo-suffix {
    color: #fbbf24;
    margin-left: 2px;
    font-weight: 700;
}


.nav-pill {
    background: #ffffff;
    border-radius: 999px;
    padding: 8px 20px;          /* ⬅ smaller height */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
}

.navbar-nav {
    gap: 28px;
}

.navbar-brand {
    font-family: 'Crimson Pro', serif;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* ===== TailorFit Logo Styling ===== */
.logo {
    font-family: 'DM Sans', sans-serif;
    font-size: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
}   

.logo-text {
    color: var(--primary-color);
}

.logo-dot {
    color: var(--light-green);
    background-color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
    font-size: 22px;
}

.navbar-nav {
    gap: var(--space-xl);
}

.nav-link {
    font-weight: 500;
    padding: 6px 0 !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    margin-left: var(--space-xl);
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    color: var(--primary-color);
}

.hero-title .highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: var(--space-xl);
    color: var(--text-light);
}

.hero-subtitle strong {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.hero-image {
    position: relative;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: var(--white);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef3 100%);
    border-radius: 32px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.app-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.app-header h4 {
    color: var(--primary-color);
    font-family: 'Crimson Pro', serif;
    font-size: 24px;
    font-weight: 600;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.feature-item {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 36px;
    height: 36px;
    background: var(--light-green);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color);
}

/* ===== Features Section ===== */
.features-section {
    padding: var(--space-xxl) 0;
    background-color: var(--white);
}

.feature-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
    display: inline-block;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.feature-card.detailed {
    text-align: left;
}

.feature-card.detailed .feature-icon {
    margin-bottom: var(--space-md);
}

/* ===== How It Works ===== */
.how-it-works {
    padding: var(--space-xxl) 0;
    background-color: var(--light-bg);
}

.step-card {
    text-align: center;
    padding: var(--space-xl);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto var(--space-lg);
}

.step-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

/* ===== Testimonials ===== */
.testimonials-section {
    padding: var(--space-xxl) 0;
    background-color: var(--white);
}

.testimonial-card {
    background: var(--light-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
}

.author-info h5 {
    margin-bottom: 4px;
    color: var(--primary-color);
}

.author-info p {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--text-lighter);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: var(--space-xxl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Page Hero ===== */
.page-hero {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.page-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.page-hero.tailor-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a594d 100%);
}

.page-hero.customer-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a594d 100%);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-bg);
    color: black;
    padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-content {
    margin-bottom: var(--space-xl);
}

.footer-brand h3 {
    color: black;
    font-size: 28px;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.692);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4,
.newsletter h4 {
    color: black;
    margin-bottom: var(--space-lg);
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(0, 0, 0, 0.7);
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: rgb(0, 0, 0);
    padding-left: 4px;
}

.footer-contact p {
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 4px;
}

.newsletter form {
    display: flex;
    margin-top: var(--space-md);
}

.newsletter input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    background: rgba(0, 0, 0, 0.1);
    color: var(--white);
}

.newsletter input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.newsletter button {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.241);
    padding-top: var(--space-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Tabs ===== */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 12px 32px !important;
    position: relative;
    margin-bottom: -2px;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: none;
    border-bottom: 2px solid var(--primary-color);
}

/* ===== Accordion ===== */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--light-bg);
    padding: var(--space-lg);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--light-bg);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.accordion-body {
    padding: var(--space-lg);
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Pricing Cards ===== */
.pricing-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    height: 100%;
    transition: var(--transition-normal);
}

.pricing-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    position: relative;
    transform: scale(1.05);
}

.pricing-header {
    margin-bottom: var(--space-xl);
}

.pricing-header h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.price span {
    font-size: 16px;
    color: var(--text-light);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: var(--space-xl) 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.pricing-features i {
    color: var(--primary-color);
}

/* ===== Forms ===== */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.form-control,
.form-select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 74, 62, 0.25);
}

.contact-form-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-section {
        padding: 140px 0 80px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .nav-pill {
        margin: 0 15px;
        width: calc(100% - 30px);
    }

    .nav-buttons {
        margin-left: 0;
        margin-top: var(--space-lg);
    }
    
    .phone-mockup {
        width: 280px;
        height: 560px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-pill {
        border-radius: 20px;
        padding: 16px;
    }

    .navbar-nav {
        gap: 12px;
        margin-top: 16px;
    }

    .nav-buttons {
        margin-top: 16px;
    }
    
    .feature-card,
    .testimonial-card,
    .pricing-card {
        padding: var(--space-lg);
    }
    
    .footer-links,
    .footer-contact {
        margin-bottom: var(--space-xl);
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .section-header {
        margin-bottom: var(--space-xxl);
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input,
    .newsletter button {
        border-radius: var(--radius-full);
        width: 100%;
    }
    
    .newsletter button {
        margin-top: var(--space-sm);
    }
    /* ===============================
   MOBILE FOOTER COMPACT MODE
================================ */
@media (max-width: 576px) {

  .footer {
    padding: 28px 0 16px !important;
  }

  .footer-content {
    margin-bottom: 12px !important;
  }

  /* Brand */
  .footer-brand h3 {
    font-size: 20px !important;
    margin-bottom: 8px !important;
  }

  .footer-brand p {
    font-size: 0.85rem !important;
    line-height: 1.45;
    margin-bottom: 12px !important;
  }

  /* Section titles */
  .footer-links h4,
  .footer-contact h4 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  /* Links */
  .footer-links li {
    margin-bottom: 4px !important;
  }

  .footer-links a {
    font-size: 0.85rem !important;
  }

  /* Contact text */
  .footer-contact p {
    font-size: 0.85rem !important;
    margin-bottom: 6px !important;
    gap: 6px;
  }

  /* Social icons smaller */
  .social-links {
    gap: 8px !important;
  }

  .social-links a {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }

  /* Footer bottom */
  .footer-bottom {
    margin-top: 10px !important;
    padding-top: 10px !important;
    font-size: 0.75rem !important;
  }
}

}