/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #ff8a00;
    --primary-dark: #e67e00;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --bg-light: #f3f4f6;
    /* Fallback */
    --footer-bg: #1f2937;
    --footer-text: #ffffff;
    --white: #ffffff;

    /* Gradients */
    --hero-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --orange-gradient: linear-gradient(135deg, #ff8a00 0%, #ff6a00 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    /* Gotham fallback */
    color: var(--text-primary);
    background: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.page-header {
    padding: 140px 0 50px;
    background: #e0e0e0;
}

.text-center {
    text-align: center;
}

.text-orange {
    color: var(--primary);
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-transform: capitalize;
}

.btn-primary {
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
    /* Warm orange gradient */
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.3), 0 2px 4px -1px rgba(217, 119, 6, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #b45309 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.4), 0 4px 6px -2px rgba(217, 119, 6, 0.2);
}

.btn-secondary {
    background: #fff;
    border-color: #f59e0b;
    color: #d97706;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #fff7ed;
    color: #b45309;
    border-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    /* Clean corners */
    box-shadow: var(--shadow-md);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.85);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, padding 0.3s ease;
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #e67e00;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Grid System */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

#footer-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-col,
.footer-links,
.footer-col p {
    max-width: 100%;
    word-wrap: break-word;
}

.footer .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    flex-wrap: wrap;
    /* Fix: Allow wrapping on mobile */
    word-break: break-word;
    /* Fix: Break long words */
    white-space: normal;
}

.footer .logo span {
    word-break: break-word;
    white-space: normal;
}

.footer .logo i {
    flex-shrink: 0;
    /* Fix: Prevent icon squishing */
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin-top: 8px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1d5db;
    /* Light gray */
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 1023px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* Fix footer grid and alignment */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
    }

    .footer .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-col h3::after {
        margin: 8px 0 0;
    }

    .social-links {
        justify-content: flex-start;
    }
}

.hidden {
    display: none !important;
}

/* Detail Page Layout */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Service Detail Layout */
.service-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    /* Vital for sticky */
}

.service-sidebar {
    position: sticky;
    top: calc(82px + 24px);
    /* Header height approx 82px + gap */
    align-self: flex-start;
    z-index: 10;
}

@media (max-width: 900px) {
    .service-layout {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
        margin-top: 40px;
    }
}

.content-block {
    margin-bottom: 40px;
}

.content-block h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.content-block h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.check-list li,
.doc-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Service Detail Specifics */
.doc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.summary-item .label {
    color: var(--text-secondary);
}

.summary-item .value {
    font-weight: 600;
    color: var(--text-primary);
}



/* Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 10px;
}

.old-price {
    font-size: 1.2rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
}

.sidebar-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.sidebar-features li:last-child {
    border-bottom: none;
}

/* Accordion */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.accordion-item.active .accordion-header {
    background: #fdfbfb;
    color: var(--primary);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-body {
    padding: 20px;
    max-height: 500px;
    /* Arbitrary large height */
}

/* Multi-Step Form styles */
.progress-bar-container {
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 4px;
    background: #e5e7eb;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-line-fill {
    height: 100%;
    background: var(--primary);
    width: 0;
    transition: width 0.4s ease;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 3px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #9ca3af;
    transition: all 0.4s ease;
}

.step.active {
    border-color: var(--primary);
    color: var(--primary);
}

.step.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-upload-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Payment Page */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.payment-option:hover {
    background: #f9fafb;
    border-color: var(--primary);
}

.payment-option.selected {
    border-color: var(--primary);
    background: rgba(255, 138, 0, 0.05);
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-option.selected .radio-circle {
    border-color: var(--primary);
}

.payment-option.selected .radio-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.secure-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #10b981;
    margin-top: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .sticky-sidebar {
        position: static;
    }
}

/* --- Refactored Form Styles --- */

.form-container-enhanced {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    padding: 40px;
    position: relative;
    overflow: hidden;
    /* For internal corner rounding */
}

/* Input Styles */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    top: 70%;
    left: 15px;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-group .form-control {
    padding-left: 45px;
    /* Space for icon */
    height: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    width: 100%;
    transition: all 0.3s ease;
}

.input-group .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.1);
}

.input-group .form-control:focus+i {
    color: var(--primary);
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Enhanced Step Indicator */
.step-indicator-wrapper {
    margin-bottom: 50px;
    position: relative;
    padding: 0 20px;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 20;
    width: 80px;
}

.step-circle {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #9ca3af;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #9ca3af;
    transition: all 0.3s ease;
    text-align: center;
}

.step-item.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 138, 0, 0.3);
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step-item.completed .step-circle {
    background: #10b981;
    /* Success Green */
    border-color: #10b981;
    color: #fff;
}

.step-item.completed .step-label {
    color: #10b981;
}

.progress-track {
    position: absolute;
    top: 20px;
    /* Center of circle (40px/2) */
    left: 40px;
    /* Half of first item width approx */
    right: 40px;
    height: 3px;
    background: #f3f4f6;
    z-index: 1;
    transform: translateY(-50%);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8a00, #ff6a00);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* Enhanced File Upload */
.upload-card {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
    position: relative;
}

.upload-card:hover {
    border-color: var(--primary);
    background: rgba(255, 138, 0, 0.02);
}

.upload-icon-large {
    font-size: 2.5rem;
    color: #d1d5db;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.upload-card:hover .upload-icon-large {
    transform: scale(1.1);
    color: var(--primary);
}

.file-info-list {
    margin-top: 15px;
    text-align: left;
}

.file-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 8px;
}

.btn-remove-file {
    color: #ef4444;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.9rem;
}

/* Form Actions Footer */
.form-footer {
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Service Card Fixes - Equal Height & Clickability */
.grid-4,
.grid-3,
.grid-2 {
    align-items: stretch;
}

.glass-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.glass-card p {
    flex-grow: 1;
}

/* Card Link Overlay */
.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

/* Ensure buttons are clickable over the overlay */
.glass-card a.btn,
.glass-card a.btn-link,
.glass-card a.btn-link-sm {
    position: relative;
    z-index: 2;
}

/* Truncation Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 
========================================
   Legal & Policy Page Styling 
========================================
*/
.page-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 10px;
    /* Comfortable padding */
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    /* #4b5563 */
}

/* Page Title */
.page-content-wrapper h1 {
    font-size: 2.2rem;
    color: var(--text-primary);
    /* #1f2937 */
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

/* Headings */
.page-content-wrapper h2 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
    /* Subtle divider */
}

.page-content-wrapper h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 12px;
}

.page-content-wrapper h4 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Paragraphs */
.page-content-wrapper p {
    margin-bottom: 1.2rem;
    color: #4b5563;
}

/* Lists */
.page-content-wrapper ul,
.page-content-wrapper ol {
    margin-bottom: 1.5rem;
    padding-left: 25px;
}

.page-content-wrapper ul li,
.page-content-wrapper ol li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 5px;
}

.page-content-wrapper ul li::marker {
    color: var(--primary);
    /* Orange bullets */
}

/* Links */
.page-content-wrapper a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-content-wrapper a:hover {
    color: var(--primary-dark);
}

/* Horizontal Rule */
.page-content-wrapper hr {
    margin: 40px 0;
    border: 0;
    height: 1px;
    background: #e5e7eb;
}

/* Table styling if any */
.page-content-wrapper table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.page-content-wrapper th,
.page-content-wrapper td {
    padding: 12px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.page-content-wrapper th {
    background: #f9fafb;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-content-wrapper {
        padding: 10px 0;
        font-size: 15px;
    }

    .page-content-wrapper h1 {
        font-size: 1.8rem;
    }

    .page-content-wrapper h2 {
        font-size: 1.4rem;
        margin-top: 30px;
    }
}

/* 
========================================
   Hero Section Design Update (Screenshot Match)
========================================
*/
.hero {
    /* Soft radial light/warm gradient */
    background: radial-gradient(circle at 50% 30%, #fffdf5 0%, #fff3d6 50%, #ffecc2 100%);
    padding: 200px 0 140px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Badge Style */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #ea580c;
    /* Deep orange text */
    padding: 0;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: none;
    /* As per screenshot */
    letter-spacing: normal;
}

.badge i {
    color: #f97316;
    /* Lighter orange icon */
}

/* Hero Heading */
.hero h1 {
    font-size: 4rem;
    /* Larger size */
    margin-bottom: 24px;
    line-height: 1.1;
    color: #d97706;
    /* Fallback */
    font-weight: 800;
}

/* Specific styling for the second line/span to match gradient */
.hero h1 .text-orange {
    display: block;
    /* Force new line logic from PHP if needed, but break is there */
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    color: #d97706;
    /* Fallback */
}

/* Hero Description */
.hero p {
    font-size: 1.25rem;
    margin-bottom: 50px;
    color: #4b5563;
    /* Slate 600 */
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons Container */
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Remove any potential pseudo elements from previous fixes if they conflict */
.hero-btns::after,
.hero-btns::before {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 150px 0 100px;
        background: radial-gradient(circle at 50% 30%, #fffdf5 0%, #ffecc2 100%);
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* 
========================================
   Service Icon System (Shortform Text)
========================================
*/
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.8rem;
    color: #fff;
    margin: 0 auto 20px;
    background: #ccc;
    /* Default Fallback only */
}

/* Fix: Ensure icon is visible */
.service-icon i {
    display: inline-block;
}

/* 
========================================
   Icon Visibility Safety Fix 
   (Fixes missing icons if library.css 404s)
========================================
*/
i,
.fa,
.fas,
.far,
.fab {
    display: inline-block;
    visibility: visible;
    opacity: 1;
}

/* =========================
   HEADER UTILS
========================= */

.header .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-wrapper {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .custom-logo {
        max-width: 150px !important;
        height: auto;
    }
}

/* =========================
   HEADER LOGIN BUTTON STYLE
========================= */

/* Target only Login menu item */
.nav-links .menu-login-btn>a {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
}

/* Hover effect */
.nav-links .menu-login-btn>a:hover {
    background: linear-gradient(135deg, #ea580c, #f97316);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.45);
}

/* Remove underline */
.nav-links .menu-login-btn>a::after {
    display: none;
}

@media (max-width: 768px) {
    .nav-links .menu-login-btn>a {
        display: inline-block;
        margin-top: 10px;
        text-align: center;
    }
}

/* ================= HEADER MOBILE MENU ================= */

/* fix: header container alignment */
.header .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
}

.logo-wrapper {
    position: relative;
    z-index: 1;
    max-width: calc(100% - 60px);
    /* Leave space for toggle */
    pointer-events: auto;
    flex: 0 0 auto;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    z-index: 10001;
    /* Above everything */
    pointer-events: auto;
    margin-left: auto;
}

/* Desktop */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

/* Tablet & Mobile (850px as requested) */
@media (max-width: 850px) {

    /* CRITICAL: Ensure nav is never hidden */
    nav {
        display: block !important;
        width: 100%;
    }

    .mobile-toggle {
        display: block;
        padding: 8px;
        /* Alignment Fix: Force right alignment as absolute */
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        display: none;
        /* Hidden by default */
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        /* Shown when toggled */
    }

    .nav-links li {
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 14px 20px;
    }

    .nav-links a::after {
        display: none;
    }
}

/* --- Ultimate Member Font Awesome 6 Compatibility --- */
.um .um-icon,
.um i[class^="fa-"],
.um i[class*=" fa-"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}