/* ============================================
   S Mago CPA, PC - Main Stylesheet
   Mobile-First Responsive Design
   ============================================ */

/* CSS Variables */
:root {
    --color-primary: #0F284B;
    --color-white: #FFFFFF;
    --color-light-gray: #E0E0E0;
    --color-accent: #0A84FF;
    --color-gold: #C49C36;
    
    --font-primary: 'Montserrat', Arial, sans-serif;
    
    --header-height: 64px;
    --header-height-sticky: 60px;
    
    --transition-base: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-primary);
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 20px;
    display: none;
}

.header-contact {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    font-size: 0.75rem;
    color: var(--color-light-gray);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    height: var(--header-height);
}

.logo {
    display: block;
    width: 140px;
}

.logo img {
    width: 100%;
    height: auto;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-base);
}

.nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 20px;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    overflow-y: auto;
}

.nav-menu.active {
    transform: translateX(0);
}

.nav-menu li {
    margin: 15px 0;
}

.nav-link {
    display: block;
    color: var(--color-white);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 10px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.header-cta {
    display: none;
}

/* ============================================
   CTA BUTTONS
   ============================================ */
.cta-button {
    display: inline-block;
    padding: 14px 28px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.cta-button:hover {
    background: #0070e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button.secondary-cta {
    background: var(--color-primary);
}

.cta-button.secondary-cta:hover {
    background: #1a3d6e;
    box-shadow: 0 4px 15px rgba(15, 40, 75, 0.3);
}

.cta-button.dark-cta {
    background: var(--color-primary);
    color: var(--color-white);
}

.cta-button.dark-cta:hover {
    background: #1a3d6e;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero,
.page-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 40, 75, 0.85) 0%, rgba(15, 40, 75, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
}

.hero h1,
.hero-headline {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.3;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtext {
    font-size: 1rem;
    color: var(--color-light-gray);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.4s forwards, pulse 2s infinite;
    opacity: 0;
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(10, 132, 255, 0);
    }
}

/* ============================================
   PROBLEM/SOLUTION SECTION
   ============================================ */
.problem-solution {
    padding: 60px 0;
    background: var(--color-white);
}

.split-layout {
    display: grid;
    gap: 40px;
}

.problem-column {
    background: var(--color-light-gray);
    padding: 30px;
    border-radius: 12px;
}

.solution-column {
    background: var(--color-white);
    padding: 30px;
    border: 2px solid var(--color-accent);
    border-radius: 12px;
}

.problem-column h2,
.solution-column h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.problem-list li,
.solution-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 40, 75, 0.1);
    font-size: 0.9rem;
}

.solution-list li {
    color: var(--color-accent);
    font-weight: 500;
}

/* ============================================
   SERVICES OVERVIEW
   ============================================ */
.services-overview {
    padding: 60px 0;
    background: var(--color-white);
}

.services-grid {
    display: grid;
    gap: 20px;
}

.service-card {
    display: block;
    padding: 30px;
    background: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 40, 75, 0.1);
    border-color: var(--color-accent);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.service-card p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-choose-us {
    padding: 60px 0;
    background: var(--color-primary);
}

.split-content {
    display: grid;
    gap: 40px;
}

.why-content h2 {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 25px;
}

.value-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--color-white);
}

.value-icon {
    color: var(--color-gold);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.why-image {
    border-radius: 12px;
    overflow: hidden;
}

.why-image img {
    width: 100%;
    height: auto;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 60px 0;
    background: var(--color-white);
}

.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-track {
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    pointer-events: auto;
}

.testimonial-quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.testimonial-author strong {
    display: block;
    color: var(--color-accent);
    font-size: 1rem;
}

.testimonial-author span {
    font-size: 0.875rem;
    color: #666;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-white);
    border: 2px solid var(--color-light-gray);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all var(--transition-base);
    z-index: 10;
}

.carousel-arrow:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-light-gray);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.carousel-dots button.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.process {
    padding: 60px 0;
    background: var(--color-light-gray);
}

.process-steps {
    display: grid;
    gap: 30px;
}

.process-step {
    text-align: center;
    padding: 25px;
    background: var(--color-white);
    border-radius: 12px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.process-step p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
}

/* ============================================
   ABOUT SNIPPET
   ============================================ */
.about-snippet {
    padding: 60px 0;
    background: var(--color-primary);
    text-align: center;
}

.about-snippet h2 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.about-snippet p {
    color: var(--color-light-gray);
    margin-bottom: 15px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about-snippet .cta-button {
    margin-top: 20px;
}

/* ============================================
   INDUSTRIES FOCUS
   ============================================ */
.industries-focus {
    padding: 60px 0;
    background: var(--color-white);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.industry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: 12px;
    transition: all var(--transition-base);
    text-align: center;
}

.industry-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(15, 40, 75, 0.1);
}

.industry-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.industry-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* ============================================
   BLOG INSIGHTS
   ============================================ */
.blog-insights {
    padding: 60px 0;
    background: var(--color-light-gray);
}

.blog-grid {
    display: grid;
    gap: 25px;
}

.blog-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(15, 40, 75, 0.08);
}

.blog-image {
    height: 180px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-date {
    font-size: 0.75rem;
    color: #888;
}

.blog-content h3 {
    font-size: 1rem;
    margin: 10px 0;
    color: var(--color-primary);
    line-height: 1.4;
}

.blog-content p {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.read-more:hover::after {
    width: 100%;
}

/* ============================================
   FINAL CTA
   ============================================ */
.cta-final,
.cta-section {
    padding: 60px 0;
    background: var(--color-primary);
    text-align: center;
}

.cta-final h2,
.cta-section h2 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 15px;
}

.cta-final p,
.cta-section p {
    color: var(--color-light-gray);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section.accent-cta {
    background: var(--color-accent);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

@keyframes pulse-cta {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(15, 40, 75, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(15, 40, 75, 0);
    }
}

.pulse-cta {
    animation: pulse-cta 2s infinite;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 40px 0 0;
}

.footer-grid {
    display: grid;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--color-light-gray);
    margin: 15px 0;
    line-height: 1.6;
}

.footer-logo {
    width: 150px;
    filter: brightness(0) invert(1);
}

.trust-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(196, 156, 54, 0.2);
    border: 1px solid var(--color-gold);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--color-gold);
    margin-top: 10px;
}

.footer h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-light-gray);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-contact address {
    font-style: normal;
}

.contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.875rem;
}

.contact-icon {
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--color-accent);
}

.footer-contact a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.social-icon:hover {
    background: var(--color-gold);
    color: var(--color-primary);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-light-gray);
}

/* ============================================
   PAGE SPECIFIC STYLES
   ============================================ */

/* About Page */
.intro-section {
    padding: 60px 0;
    text-align: center;
}

.intro-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.intro-section p {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
    line-height: 1.7;
}

.story-section {
    padding: 60px 0;
    background: var(--color-white);
}

.story-content h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.story-content p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.7;
}

.story-image {
    border-radius: 12px;
    overflow: hidden;
}

.values-section {
    padding: 60px 0;
    background: var(--color-light-gray);
}

.values-grid {
    display: grid;
    gap: 20px;
}

.value-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.value-card .value-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.value-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.value-card p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.6;
}

.team-section {
    padding: 60px 0;
    background: var(--color-white);
}

.team-grid {
    display: grid;
    gap: 30px;
}

.team-card {
    text-align: center;
    padding: 20px;
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--color-light-gray);
}

.team-card h3 {
    font-size: 1.125rem;
    color: var(--color-primary);
}

.team-title {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 12px;
}

.team-card p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.6;
}

.certifications-section {
    padding: 60px 0;
    background: var(--color-white);
}

.certifications-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.certification-badge {
    padding: 15px 30px;
    background: var(--color-primary);
    color: var(--color-gold);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--color-gold);
}

.mission-section {
    padding: 60px 0;
    background: var(--color-primary);
    text-align: center;
}

.mission-section h2 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 30px;
}

.mission-content {
    display: grid;
    gap: 30px;
}

.mission-block h3 {
    color: var(--color-accent);
    font-size: 1.125rem;
    margin-bottom: 15px;
}

.mission-block p {
    color: var(--color-light-gray);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Page */
.services-detail-section {
    padding: 60px 0;
    background: var(--color-white);
}

.services-detail-section.alt-bg {
    background: var(--color-light-gray);
}

.services-detail-section .services-grid {
    grid-template-columns: 1fr;
}

.service-card.detailed h3 {
    font-size: 1rem;
    margin-bottom: 15px;
}

.service-card.detailed ul {
    margin-top: 10px;
}

.service-card.detailed li {
    font-size: 0.85rem;
    color: #555;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.service-card.detailed li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.why-partner-section {
    padding: 60px 0;
    background: var(--color-primary);
    text-align: center;
}

.why-partner-section h2 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 15px;
}

.why-partner-section p {
    color: var(--color-light-gray);
    max-width: 700px;
    margin: 0 auto;
}

.faq-section {
    padding: 60px 0;
    background: var(--color-light-gray);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: #555;
    line-height: 1.6;
}

/* Industries Page */
.industries-detail-section {
    padding: 60px 0;
    background: var(--color-light-gray);
}

.industries-grid-detail {
    display: grid;
    gap: 20px;
}

.industry-card-detail {
    background: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-base);
}

.industry-card-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 40, 75, 0.1);
}

.industry-icon-large {
    font-size: 3rem;
    margin-bottom: 15px;
}

.industry-card-detail h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.industry-card-detail p {
    font-size: 0.875rem;
    color: #555;
}

.insights-section {
    padding: 60px 0;
    background: var(--color-white);
}

.insights-content h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.insights-content p {
    color: #555;
    line-height: 1.7;
}

.insights-image {
    border-radius: 12px;
    overflow: hidden;
}

/* Contact Page */
.contact-form-section {
    padding: 60px 0;
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    gap: 40px;
}

.form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-base);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
}

.form-success {
    display: none;
    padding: 30px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.form-success.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.form-success h3 {
    color: #155724;
    margin-bottom: 10px;
}

.form-success p {
    color: #155724;
}

.contact-info-wrapper p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.contact-details-section {
    padding: 60px 0;
    background: var(--color-light-gray);
}

.contact-details-grid {
    display: grid;
    gap: 25px;
}

.contact-detail-item {
    background: var(--color-white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.detail-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-detail-item h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.contact-detail-item p {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 5px;
}

.detail-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
}

.map-section {
    padding: 60px 0;
    background: var(--color-white);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(15, 40, 75, 0.1);
}

/* ============================================
   RESPONSIVE STYLES - TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .header-top {
        display: block;
    }

    .header-main {
        padding: 10px 40px;
    }

    .logo {
        width: 160px;
    }

    .hero h1,
    .hero-headline {
        font-size: 2.25rem;
    }

    .hero-subtext {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .problem-solution,
    .services-overview,
    .why-choose-us,
    .testimonials,
    .process,
    .about-snippet,
    .industries-focus,
    .blog-insights,
    .cta-final {
        padding: 80px 0;
    }

    .split-layout {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .split-content {
        grid-template-columns: 1fr 1fr;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .certifications-grid {
        gap: 30px;
    }

    .mission-content {
        grid-template-columns: 1fr 1fr;
    }

    .services-detail-section .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid-detail {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1.5fr 1fr;
    }

    .contact-details-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ============================================
   RESPONSIVE STYLES - DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    :root {
        --header-height: 80px;
    }

    .header-main {
        padding: 10px 60px;
    }

    .header.scrolled .header-main {
        height: var(--header-height-sticky);
    }

    .nav-toggle {
        display: none;
    }

    .nav {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .nav-menu {
        position: static;
        transform: none;
        background: none;
        display: flex;
        flex-direction: row;
        padding: 0;
        gap: 10px;
        overflow: visible;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-link {
        font-size: 0.875rem;
        padding: 8px 12px;
    }

    .header-cta {
        display: inline-block;
    }

    .hero h1,
    .hero-headline {
        font-size: 3rem;
    }

    .hero-content {
        padding: 60px 40px;
    }

    .problem-column h2,
    .solution-column h2 {
        font-size: 1.5rem;
    }

    .problem-list li,
    .solution-list li {
        font-size: 1rem;
    }

    .service-card {
        padding: 40px 30px;
    }

    .why-content h2 {
        font-size: 1.75rem;
    }

    .value-list li {
        font-size: 1rem;
    }

    .testimonial-quote {
        font-size: 1.25rem;
    }

    .process-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }

    .about-snippet h2 {
        font-size: 2rem;
    }

    .industries-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .blog-card {
        padding-bottom: 25px;
    }

    .blog-image {
        height: 200px;
    }

    .cta-final h2,
    .cta-section h2 {
        font-size: 2rem;
    }

    .footer {
        padding: 60px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.2fr 0.8fr;
        gap: 40px;
    }

    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-detail-section .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .industries-grid-detail {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-form-section,
    .contact-details-section,
    .map-section {
        padding: 80px 0;
    }

    .faq-question {
        font-size: 1.125rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-headline,
    .hero-subtext,
    .hero-cta {
        animation: none;
        opacity: 1;
    }

    .cta-button {
        animation: none;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}
