/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Custom CSS Variables */
:root {
    --opti-blue: #2563eb;
    --opti-green: #10b981;
    --opti-green-hover: #059669;
    --dark-grey: #374151;
    --medium-grey: #6b7280;
    --light-grey: #f3f4f6;
    --yellow-400: #fbbf24;
}

/* Typography */
.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.font-lato {
    font-family: 'Lato', sans-serif;
}

/* Colors */
.text-opti-blue {
    color: var(--opti-blue);
}

.text-opti-green {
    color: var(--opti-green);
}

.text-dark-grey {
    color: var(--dark-grey);
}

.text-medium-grey {
    color: var(--medium-grey);
}

.text-yellow-400 {
    color: var(--yellow-400);
}

.bg-opti-blue {
    background-color: var(--opti-blue);
}

.bg-opti-green {
    background-color: var(--opti-green);
}

.bg-light-grey {
    background-color: var(--light-grey);
}

.bg-white {
    background-color: white;
}

.bg-dark-grey {
    background-color: var(--dark-grey);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.min-h-screen {
    min-height: 100vh;
}

/* Gradients */
.bg-gradient-to-b {
    background: linear-gradient(to bottom, var(--color-from), var(--color-to));
}

.bg-gradient-to-b.from-white.to-light-grey {
    background: linear-gradient(to bottom, white, var(--light-grey));
}

.bg-gradient-to-b.from-light-grey.to-white {
    background: linear-gradient(to bottom, var(--light-grey), white);
}

.bg-gradient-to-r.from-opti-blue.to-blue-600 {
    background: linear-gradient(to right, var(--opti-blue), #2563eb);
}

.bg-gradient-to-br.from-opti-blue.to-blue-600 {
    background: linear-gradient(to bottom right, var(--opti-blue), #2563eb);
}

.bg-gradient-to-br.from-opti-green.to-green-600 {
    background: linear-gradient(to bottom right, var(--opti-green), #059669);
}

.bg-gradient-to-br.from-purple-500.to-purple-600 {
    background: linear-gradient(to bottom right, #8b5cf6, #7c3aed);
}

.bg-gradient-to-br.from-orange-500.to-orange-600 {
    background: linear-gradient(to bottom right, #f97316, #ea580c);
}

.bg-gradient-to-br.from-emerald-500.to-emerald-600 {
    background: linear-gradient(to bottom right, #10b981, #059669);
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

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

.text-left {
    text-align: left;
}

/* Grid */
.grid {
    display: grid;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* Spacing */
.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mr-4 {
    margin-right: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Sizing */
.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-20 {
    width: 5rem;
}

.h-0\.5 {
    height: 0.125rem;
}

.h-1 {
    height: 0.25rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-6xl {
    max-width: 72rem;
}

/* Typography Sizes */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

/* Font Weights */
.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Border Radius */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Shadows */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.-top-2 {
    top: -0.5rem;
}

.-top-4 {
    top: -1rem;
}

.-right-2 {
    right: -0.5rem;
}

.-right-4 {
    right: -1rem;
}

.-bottom-4 {
    bottom: -1rem;
}

.-left-4 {
    left: -1rem;
}

.top-4 {
    top: 1rem;
}

.right-4 {
    right: 1rem;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

/* Opacity */
.opacity-10 {
    opacity: 0.1;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-90 {
    opacity: 0.9;
}

/* Transitions */
.transition-all {
    transition: all 0.3s ease;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Transforms */
.hover\:transform:hover {
    transform: translateZ(0);
}

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.hover\:-translate-y-2:hover {
    transform: translateY(-0.5rem);
}

/* Hover Effects */
.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:bg-opti-green-hover:hover {
    background-color: var(--opti-green-hover);
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    background-color: var(--opti-green);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--opti-green-hover);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
}

.white-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border: 1px solid white;
    background: transparent;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.white-outline-button:hover {
    background-color: white;
    color: var(--opti-blue);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes scale-in {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scale-in 0.6s ease-out forwards;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
}

/* Star Rating */
.fill-current {
    fill: currentColor;
}

/* Responsive Design */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:text-4xl {
        font-size: 2.25rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
    }
    
    .md\:text-xl {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .lg\:flex-row {
        flex-direction: row;
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:text-left {
        text-align: left;
    }
    
    .lg\:text-6xl {
        font-size: 3.75rem;
    }
    
    .lg\:mx-0 {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Leading (Line Height) */
.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Space Between */
.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Border */
.border-2 {
    border-width: 2px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-opti-green {
    border-color: var(--opti-green);
}

.border-yellow-400 {
    border-color: var(--yellow-400);
}

.border-none {
    border: none;
}

/* Background Opacity */
.bg-opacity-10 {
    background-color: rgba(16, 185, 129, 0.1);
}

/* Text Colors for Special Cases */
.text-yellow-800 {
    color: #92400e;
}

.text-yellow-300 {
    color: #fcd34d;
}

.text-purple-600 {
    color: #9333ea;
}

/* Background Colors for Special Cases */
.bg-yellow-50 {
    background-color: #fffbeb;
}

/* Italic */
.italic {
    font-style: italic;
}

/* Flex Shrink */
.flex-shrink-0 {
    flex-shrink: 0;
}

/* Items Start */
.items-start {
    align-items: flex-start;
}

/* Width Full */
.w-full {
    width: 100%;
}

/* Flex Wrap */
.flex-wrap {
    flex-wrap: wrap;
}

/* Hidden */
.hidden {
    display: none;
}

/* Accordion Styles */
.accordion-item {
    border-bottom: 1px solid #e5e7eb;
    background-color: var(--light-grey);
    border-radius: 0.5rem;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.accordion-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-button:hover {
    text-decoration: none;
}

.accordion-content {
    overflow: hidden;
    transition: all 0.3s ease;
    padding-bottom: 1.5rem;
    color: var(--medium-grey);
    line-height: 1.625;
}

.accordion-content.hidden {
    max-height: 0;
    padding-bottom: 0;
}

.accordion-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.accordion-button[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

/* Footer Styles */
footer {
    background-color: var(--dark-grey);
    color: white;
    padding: 2rem 0;
}

footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--opti-green);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .py-16 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .gap-12 {
        gap: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .text-center {
        text-align: center;
    }
}