/* ============================================
   Edge Billing Solutions - Global Styles
   Color Scheme: Deep Emerald + Slate
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --primary: #0d7377;
    --primary-dark: #095a5d;
    --primary-light: #e8f6f3;
    --secondary: #14a085;
    --accent: #2ecc71;
    --dark: #1a1a2e;
    --text: #2c3e50;
    --text-light: #5a6a7a;
    --text-muted: #8a9aaa;
    --bg: #ffffff;
    --bg-alt: #f4f7f9;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(13, 115, 119, 0.08);
    --shadow-lg: 0 10px 40px rgba(13, 115, 119, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --max-width: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
    font-family: var(--font-body);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(13, 115, 119, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 115, 119, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-white:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* Cards */
.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 160px;
    height: auto;
    object-fit: contain;
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    position: relative;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-links .dropdown > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown {
    position: relative;
}

.dropdown:hover > .dropdown-menu,
.dropdown.open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #162a3a 50%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(13,115,119,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20,160,133,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.4rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-badges {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}

.hero-badge svg {
    width: 18px;
    height: 18px;
    color: var(--secondary);
}

.hero-form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.hero-form-card h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--dark);
}

.hero-form-card > p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.form-group .btn {
    width: 100%;
    justify-content: center;
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

/* ============================================
   About Snippet
   ============================================ */

.about-snippet {
    background: var(--bg);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-images .img-main {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-images .img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: #fff;
    padding: 24px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-images .img-badge .years {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.about-images .img-badge .label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 4px;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.about-checklist {
    margin: 24px 0;
}

.about-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
}

.about-checklist li svg {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    flex-shrink: 0;
}

/* ============================================
   Services Overview
   ============================================ */

.services-overview {
    background: var(--bg-alt);
}

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

.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.service-card:hover::before {
    height: 100%;
}

.service-card .icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .icon-wrap {
    background: var(--primary);
    color: #fff;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-card .read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-card .read-more:hover {
    gap: 10px;
}

/* ============================================
   Why Choose Us
   ============================================ */

.why-choose {
    background: var(--bg);
}

.why-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.why-content > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.why-features {
    display: grid;
    gap: 20px;
}

.why-feature {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.why-feature .f-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.why-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-weight: 600;
}

.why-feature p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.why-image {
    position: relative;
}

.why-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Cost Comparison
   ============================================ */

.cost-comparison {
    background: var(--bg-alt);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    border: 2px solid var(--border);
    position: relative;
}

.comparison-card.in-house {
    border-color: #e74c3c;
}

.comparison-card.outsourced {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.comparison-card .tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.comparison-card.in-house .tag {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.comparison-card.outsourced .tag {
    background: var(--primary-light);
    color: var(--primary);
}

.comparison-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.comparison-card .price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.comparison-card.in-house .price {
    color: #e74c3c;
}

.comparison-card.outsourced .price {
    color: var(--primary);
}

.comparison-card .price-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.comparison-card ul {
    text-align: left;
    margin-bottom: 24px;
}

.comparison-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.comparison-card ul li:last-child {
    border-bottom: none;
}

.comparison-card ul li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.comparison-card.in-house ul li svg {
    color: #e74c3c;
}

.comparison-card.outsourced ul li svg {
    color: var(--secondary);
}

/* ============================================
   Stats
   ============================================ */

.stats-section {
    background: var(--bg-dark);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

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

.stat-item .stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

/* ============================================
   Software / Partners
   ============================================ */

.software-section {
    background: var(--bg);
    padding: 60px 0;
}

.software-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.software-item {
    padding: 16px 32px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-light);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.software-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================
   Testimonials
   ============================================ */

.testimonials {
    background: var(--bg-alt);
}

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

.testimonial-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial-item .quote-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.testimonial-item blockquote {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-item .author {
    font-weight: 600;
    color: var(--dark);
}

.testimonial-item .role {
    font-size: 0.9rem;
    color: var(--text-light);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.testimonial-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.testimonial-nav button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   Specialties
   ============================================ */

.specialties-section {
    background: var(--bg);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.specialty-card {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 24px;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.specialty-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.specialty-card .s-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 14px;
    font-size: 1.3rem;
}

.specialty-card h4 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

/* ============================================
   FAQ
   ============================================ */

.faq-section {
    background: var(--bg-alt);
}

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

.faq-item {
    background: #fff;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--primary-light);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   Blog Section
   ============================================ */

.blog-section {
    background: var(--bg);
}

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

.blog-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-card .blog-img {
    height: 200px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
}

.blog-card .blog-content {
    padding: 24px;
}

.blog-card .blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 14px;
}

.blog-card .read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   Bottom CTA
   ============================================ */

.bottom-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 80px 0;
}

.bottom-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.bottom-cta-content h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 16px;
}

.bottom-cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 28px;
}

.bottom-cta-form {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px;
    color: var(--text);
}

.bottom-cta-form h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    display: inline-block;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 20px;
    line-height: 0;
}

.footer-brand .logo img {
    width: 180px;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-brand .logo span {
    color: #fff;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
    margin-left: 20px;
}

.footer-bottom a:hover {
    color: var(--secondary);
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    padding: 140px 0 70px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #162a3a 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13,115,119,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================
   Services Page
   ============================================ */

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-detail-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-detail-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.service-detail-card .s-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-detail-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-detail-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   States Page
   ============================================ */

.states-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.state-card {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.state-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.state-card .st-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.state-card span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* ============================================
   Contact Page
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 36px;
}

.contact-info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-item .ci-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-info-item a {
    color: var(--primary);
    font-weight: 500;
}

.contact-form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-form-card h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

/* ============================================
   Calculator Page
   ============================================ */

.calculator-section {
    background: var(--bg-alt);
}

.calculator-card {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.calculator-card h2 {
    text-align: center;
    margin-bottom: 8px;
}

.calculator-card > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.calc-result {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    margin-top: 24px;
}

.calc-result .result-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.calc-result .result-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.calc-result .result-sublabel {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.calc-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.calc-compare-item {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.calc-compare-item .cmp-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.calc-compare-item .cmp-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.calc-compare-item.in-house .cmp-value {
    color: #e74c3c;
}

.calc-compare-item.outsourced .cmp-value {
    color: var(--primary);
}

/* ============================================
   About Page
   ============================================ */

.about-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-hero-inner h1 {
    color: #fff;
    margin-bottom: 16px;
}

.about-hero-inner p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 36px 24px;
}

.value-card .v-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.value-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   Blog Page
   ============================================ */

.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ============================================
   Legal Pages (Privacy / Terms)
   ============================================ */

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 48px;
    border: 1px solid var(--border);
}

.legal-content h2 {
    font-size: 1.6rem;
    margin: 32px 0 16px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content ul li {
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .specialties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo img {
        width: 140px;
    }
    .section-padding {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .hero {
        padding: 120px 0 60px;
    }
    .hero-inner,
    .about-inner,
    .why-inner,
    .bottom-cta-inner,
    .contact-grid,
    .about-hero-inner {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .services-grid,
    .grid-3,
    .grid-2,
    .blog-grid,
    .blog-list-grid,
    .services-detail-grid,
    .states-grid,
    .values-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .form-row,
    .calc-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .mobile-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .nav-links > li > a {
        padding: 14px 0;
        width: 100%;
        border-radius: 0;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        display: none;
    }
    .dropdown.open .dropdown-menu {
        display: block;
    }
    .nav-cta {
        display: none;
    }
    .nav-links .nav-cta-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }
    .nav-links .nav-cta-mobile .btn {
        width: 100%;
        justify-content: center;
    }
    .about-images .img-badge {
        right: 10px;
        bottom: -10px;
        padding: 16px 20px;
    }
    .about-images .img-badge .years {
        font-size: 1.8rem;
    }
    .software-grid {
        gap: 16px;
    }
    .software-item {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .legal-content {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 120px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .section-header h2 {
        font-size: 1.5rem;
    }
    .stat-item .stat-number {
        font-size: 2.2rem;
    }
    .specialties-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .comparison-card .price {
        font-size: 2.2rem;
    }
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
