:root {
    /* Colors */
    --clr-surface: #fbf9f8;
    --clr-white: #ffffff;
    --clr-primary: #ee7203;
    --clr-primary-hover: #d36402;
    --clr-text-heading: #2C2C2C;
    --clr-text-body: #666666;
    --clr-border: #E0E0E0;
    --clr-gray-light: #F9F9F9;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 80px;
    
    /* Shapes & Shadows */
    --radius-base: 8px;
    --shadow-level-1: 0px 4px 20px rgba(0,0,0,0.05);
    --shadow-level-2: 0px 8px 30px rgba(0,0,0,0.08);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-text-heading);
    font-weight: 700;
}

.text-muted { color: var(--clr-text-body); }
.text-white { color: var(--clr-white); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.text-center { text-align: center; }

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-items-center { align-items: center; }

/* Typography Scale */
.display-title { font-size: 48px; line-height: 1.2; letter-spacing: -0.02em; }
.headline-lg { font-size: 32px; line-height: 1.3; }
.headline-md { font-size: 24px; line-height: 1.4; }
.headline-sm { font-size: 20px; line-height: 1.4; }
.body-lg { font-size: 18px; }
.body-md { font-size: 16px; }

/* Header */
.header {
    background-color: var(--clr-white);
    border-bottom: 1px solid var(--clr-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo h1 {
    font-size: 24px;
    letter-spacing: -1px;
}
.logo h1 span {
    color: var(--clr-primary);
}
.logo a {
    text-decoration: none;
    color: var(--clr-text-heading);
}
.nav a {
    text-decoration: none;
    color: var(--clr-text-heading);
    font-weight: 600;
    margin-left: 24px;
    transition: color 0.2s;
}
.nav a:hover, .nav a.active {
    color: var(--clr-primary);
}

/* Sections */
.section {
    padding: var(--space-xl) 24px;
    animation: fadeIn 0.4s ease-out;
}

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

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: var(--space-xl);
}
.hero-content h2 { margin-bottom: 24px; }
.hero-content p { margin-bottom: 40px; }

.hero-image-placeholder {
    position: relative;
    height: 400px;
    background-color: var(--clr-gray-light);
    border-radius: var(--radius-base);
    background-image: url('documents/4af65645-02e9-471a-8213-607a70f5e0c5.jpeg');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-level-2);
}
.hero-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0));
    border-radius: var(--radius-base);
}

.cert-badge {
    position: absolute;
    background: var(--clr-white);
    padding: 12px 24px;
    border-radius: 99px;
    font-weight: 600;
    color: var(--clr-text-heading);
    box-shadow: var(--shadow-level-2);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cert-badge i { color: var(--clr-primary); }
.cert-badge:nth-child(1) { top: 40px; left: -20px; animation: float 4s ease-in-out infinite; }
.cert-badge:nth-child(2) { bottom: 80px; right: -20px; animation: float 5s ease-in-out infinite reverse; }
.cert-badge:nth-child(3) { top: 180px; right: 40px; animation: float 4.5s ease-in-out infinite 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-base);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    height: 56px;
}
.btn-full { width: 100%; }

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}
.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    box-shadow: 0 4px 12px rgba(238, 114, 3, 0.3);
}
.btn-secondary {
    background-color: transparent;
    color: var(--clr-text-heading);
    border: 1.5px solid var(--clr-text-heading);
}
.btn-secondary:hover {
    background-color: var(--clr-text-heading);
    color: var(--clr-white);
}
.btn-light {
    background-color: var(--clr-white);
    color: var(--clr-text-heading);
}
.btn-light:hover {
    background-color: #f0f0f0;
}
.btn-outline-light {
    background-color: transparent;
    color: var(--clr-white);
    border: 1.5px solid var(--clr-white);
}
.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Cards */
.card {
    background: var(--clr-white);
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-level-1);
    padding: 32px;
}
.form-card { max-width: 600px; margin: 0 auto; }
.large-card { max-width: 900px; margin: 0 auto; }

/* Forms */
.form-group {
    margin-bottom: 24px;
}
.form-row {
    display: flex;
    gap: 16px;
}
.form-group.half { flex: 1; }
label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--clr-text-heading);
}
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-base);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--clr-text-heading);
    transition: all 0.2s;
    background-color: var(--clr-white);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(238, 114, 3, 0.1);
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--clr-gray-light);
}

/* Products Grid (Home) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.product-item {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-base);
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-level-2);
}
.product-icon {
    font-size: 32px;
    color: var(--clr-primary);
    margin-bottom: 16px;
}
.product-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-text-heading);
    margin-bottom: 8px;
}

/* Industry Cards */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}
.industry-card {
    position: relative;
    background-color: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-base);
    padding: 40px 24px;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    text-decoration: none;
    color: inherit;
}
.industry-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.5s ease;
    z-index: -2;
    transform: scale(1.05);
}
.industry-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.industry-card:hover .industry-card-bg {
    opacity: 1;
    transform: scale(1);
}
.industry-card:hover .industry-card-overlay {
    opacity: 1;
}
.industry-card:hover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: var(--shadow-level-2);
}
.industry-icon {
    font-size: 40px;
    color: var(--clr-text-heading);
    margin-bottom: 16px;
    transition: color 0.3s ease;
}
.industry-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--clr-text-heading);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}
.industry-desc {
    font-size: 14px;
    color: var(--clr-text-body);
    transition: color 0.3s ease;
}
.industry-card:hover .industry-icon,
.industry-card:hover .industry-title,
.industry-card:hover .industry-desc {
    color: var(--clr-white);
}

/* Wizard Steps (For Get Certified Flow) */
.wizard-step {
    display: none;
}
.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* Certificate Selection Grid */
.cert-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.cert-checkbox-wrapper {
    position: relative;
}
.cert-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.cert-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-base);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--clr-white);
    font-weight: 500;
}
.cert-checkbox-wrapper input:checked ~ .cert-label {
    border-color: var(--clr-primary);
    background-color: rgba(238, 114, 3, 0.05);
}
.cert-checkbox-wrapper input:checked ~ .cert-label .custom-check {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}
.cert-checkbox-wrapper input:checked ~ .cert-label .custom-check::after {
    display: block;
}
.custom-check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--clr-border);
    border-radius: 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.2s;
}
.custom-check::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 14px;
    display: none;
}

/* Offer Layout */
.offer-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}
.offer-items-list {
    list-style: none;
}
.offer-items-list li {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--clr-gray-light);
}
.offer-items-list li:last-child {
    border-bottom: none;
}
.offer-total {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--clr-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--clr-text-heading);
}
.total-price {
    color: var(--clr-primary);
}

.upsell-card {
    background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
    color: var(--clr-white);
    border: none;
    position: relative;
    overflow: hidden;
}
.upsell-badge {
    position: absolute;
    top: 24px;
    right: -30px;
    background: var(--clr-primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 40px;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.upsell-price-box {
    background: rgba(255,255,255,0.1);
    padding: 24px;
    border-radius: var(--radius-base);
    margin: 24px 0;
    text-align: center;
}
.old-price {
    display: block;
    text-decoration: line-through;
    color: #a0a0a0;
    font-size: 18px;
    margin-bottom: 8px;
}
.new-price {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--clr-white);
}

/* Payment & Success */
.payment-amount-text {
    font-size: 28px;
    color: var(--clr-primary);
    margin-left: 8px;
}
.success-icon {
    font-size: 80px;
    color: #4CAF50;
    margin-bottom: 24px;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--clr-gray-light);
}
.table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--clr-text-heading);
    background-color: var(--clr-gray-light);
}

/* Page Header */
.page-header {
    background-color: var(--clr-gray-light);
    padding: 60px 24px;
    text-align: center;
    border-bottom: 1px solid var(--clr-border);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-image-placeholder {
        height: 300px;
    }
    .offer-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        justify-content: center;
        height: auto;
        padding: 16px 0;
        gap: 16px;
    }
    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .nav a {
        margin-left: 0;
        font-size: 14px;
    }
    
    /* Typography adjustments */
    .display-title { font-size: 36px; }
    .headline-lg { font-size: 28px; }
    .headline-md { font-size: 24px; }
    
    /* Spacing adjustments */
    .mb-xl { margin-bottom: 40px; }
    .mt-xl { margin-top: 40px; }
    
    /* Card padding */
    .card { padding: 24px 16px; }
    .industry-card { padding: 32px 16px; min-height: 180px; }
    
    /* Utility blocks */
    .d-flex.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    /* specific overrides */
    .product-grid {
        grid-template-columns: 1fr;
    }
    .industry-grid {
        grid-template-columns: 1fr;
    }
}

/* Certificate Preview Modal */
.modal { display: flex; }
.certificate-preview {
    width: 100%;
    max-width: 700px;
    background: #fff;
    border: 15px solid #eaeaea;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    font-family: 'Times New Roman', Times, serif;
    text-align: center;
    color: #333;
}
.cert-inner {
    border: 2px solid var(--clr-primary);
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.cert-inner::before {
    content: "PREVIEW";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 130px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
    z-index: 10;
    letter-spacing: 20px;
    font-family: var(--font-heading);
}
.cert-header {
    font-size: 36px;
    font-weight: bold;
    color: var(--clr-primary);
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.cert-text {
    font-size: 18px;
    margin-bottom: 16px;
    font-style: italic;
}
.cert-company {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}
.cert-address {
    font-size: 16px;
    margin-bottom: 32px;
    color: #555;
}
.certificate-preview .cert-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--clr-primary);
    margin: 24px 0;
}
.cert-validity {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 40px;
}
.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 60px;
}
.cert-signature {
    border-top: 1px solid #333;
    padding-top: 8px;
    width: 200px;
    font-style: italic;
}
.cert-seal {
    width: 100px;
    height: 100px;
    background-color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-align: center;
    border: 3px dashed #fff;
    box-shadow: 0 0 0 4px var(--clr-primary);
}
.cert-logo {
    max-height: 80px;
    margin-bottom: 20px;
    max-width: 200px;
    object-fit: contain;
}
