/* 
 * Main stylesheet for Optiandriaos website
 * Color palette:
 * - Main background: #fef6e4 (milk)
 * - Accent: #f582ae (coral-pink)
 * - Secondary accent: #8bd3dd (light blue)
 * - Headings: #001858 (indigo)
 * - Text: #172c66 (dark blue)
 */

/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-background: #fef6e4;
    --color-accent: #f582ae;
    --color-secondary: #8bd3dd;
    --color-heading: #001858;
    --color-text: #172c66;
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    --border-radius-2xl: 25px;
    --shadow-sm: 0 2px 5px rgba(0, 24, 88, 0.1);
    --shadow-md: 0 4px 10px rgba(0, 24, 88, 0.15);
    --shadow-lg: 0 8px 20px rgba(0, 24, 88, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-heading);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-heading);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-heading);
}

.btn-secondary:hover {
    background-color: var(--color-heading);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.text-center {
    text-align: center;
}

/* Scroll padding for anchor links */
html {
    scroll-padding-top: 100px; /* Provides space for fixed header */
    scroll-behavior: smooth;
}

/* Header styles */
header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--color-heading);
}

.logo img {
    max-height: 50px;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 600;
    position: relative;
}

.main-nav a:hover, .main-nav li.active a {
    color: var(--color-accent);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.main-nav a:hover::after, .main-nav li.active a::after {
    width: 100%;
}

.header-contact {
    font-weight: 700;
}

.phone-link {
    color: var(--color-heading);
    font-family: 'Montserrat', sans-serif;
}

.phone-link:hover {
    color: var(--color-accent);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-heading);
    transition: var(--transition);
}

/* Hero section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-background), white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 70%;
    background-color: rgba(139, 211, 221, 0.2);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-lg);
}

/* About section */
.about {
    background-color: white;
}

.about-main-title {
    margin-bottom: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    padding-right: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-title {
    margin-bottom: 1rem;
    color: var(--color-heading);
}

/* Advantages section */
.advantages {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.advantages::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 30%;
    height: 50%;
    background-color: rgba(245, 130, 174, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.advantage-card {
    background-color: var(--color-background);
    border-radius: var(--border-radius-2xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: scale(1.05);
}

.advantage-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* Testimonials section */
.testimonials {
    background-color: var(--color-background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-position {
    font-size: 0.9rem;
    color: #666;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 5rem;
    color: rgba(139, 211, 221, 0.3);
    font-family: serif;
    line-height: 1;
}

/* Contact section */
.contact-info {
    background-color: white;
    border-radius: var(--border-radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Form styles */
.form-section {
    padding-bottom: 5rem;
}

.form-container {
    background-color: white;
    border-radius: var(--border-radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 200px;
    height: 200px;
    background-color: rgba(139, 211, 221, 0.1);
    border-radius: 50%;
}

.form-container::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 200px;
    height: 200px;
    background-color: rgba(245, 130, 174, 0.1);
    border-radius: 50%;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-lg);
    border: 2px solid #eee;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--color-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 211, 221, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
}

/* Map section */
.map-section img {
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-md);
}

/* Footer styles */
footer {
    background-color: var(--color-heading);
    color: white;
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.text-logo-footer {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: white;
    display: block;
    margin-bottom: 1rem;
}

.footer-tagline {
    opacity: 0.8;
}

.footer-contact h4, .footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-contact h4::after, .footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
}

.footer-contact ul, .footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact a {
    color: white;
    opacity: 0.8;
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-links a {
    color: white;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-hours {
    margin-top: 1.5rem;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    z-index: 1000;
    max-width: 90%;
    width: 500px;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.5s forwards;
}

.cookie-content p {
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-link {
    font-size: 0.9rem;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Legal pages styles */
.legal-content {
    background-color: white;
    border-radius: var(--border-radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin: 3rem 0;
}

.legal-content h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p, .legal-content ul {
    margin-bottom: 1.5rem;
}

.legal-content ul {
    list-style-type: disc;
    padding-left: 2rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* Thank you page */
.thank-you {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
}

.thank-you-content {
    background-color: white;
    border-radius: var(--border-radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 3rem;
    color: white;
}

.thank-you h1 {
    margin-bottom: 1.5rem;
}

.thank-you p {
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Responsive styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
} 