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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #1a365d;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

a {
    color: #2b6cb0;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a365d;
}

/* Header and Navigation */
header {
    background-color: #1a365d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: #e2e8f0;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #2b6cb0;
    color: #fff;
}

/* Hero Sections */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.hero-content {
    flex: 1;
    padding: 2rem;
}

.hero-image {
    flex: 1;
    padding: 2rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-small {
    background: linear-gradient(135deg, #2b6cb0 0%, #3182ce 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.hero-small h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-small p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Buttons */
.cta-button,
.button,
.submit-button {
    display: inline-block;
    background-color: #4299e1;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover,
.button:hover,
.submit-button:hover {
    background-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.4);
    color: #fff;
}

/* Grid Layouts */
.services-grid,
.about-grid,
.expertise-grid,
.contact-grid,
.why-choose-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.about-grid,
.contact-grid,
.why-choose-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.expertise-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Content Sections */
.services-preview,
.about-content,
.services-content,
.contact-content,
.why-choose,
.legal-page {
    padding: 4rem 0;
}

.services-preview {
    background-color: #f7fafc;
}

.services-preview h2,
.about-content h2,
.services-content h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Service Items */
.service-preview,
.service-item,
.expertise-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-preview:hover,
.service-item:hover,
.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-preview img,
.service-item img,
.expertise-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
    align-items: center;
}

.service-image img {
    height: 250px;
}

.service-content ul {
    list-style: none;
    padding-left: 0;
}

.service-content li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 1.5rem;
}

.service-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4299e1;
    font-weight: bold;
}

/* About Section */
.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.about-text li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #4299e1;
    font-weight: bold;
}

.about-image img,
.why-choose-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Forms */
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a365d;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.contact-info {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 10px;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: #1a365d;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    margin-bottom: 0.5rem;
}

.office-image {
    margin-top: 2rem;
}

.office-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Messages */
.success-message,
.error-message {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.success-message {
    background-color: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.error-message {
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

/* CTA Sections */
.cta-section,
.services-cta {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
    color: #fff;
    border-radius: 10px;
    margin: 3rem 0;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Legal Pages */
.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.legal-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2b6cb0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.legal-page h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1a365d;
}

.legal-page ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: #1a365d;
    color: #e2e8f0;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.footer-section a {
    color: #cbd5e0;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4299e1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a365d;
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
}

#cookie-banner a {
    color: #4299e1;
    font-weight: 600;
    text-decoration: none;
}

#cookie-banner a:hover {
    color: #63b3ed;
    text-decoration: underline;
}

#cookie-banner button {
    background: #4299e1;
    color: white;
    border: none;
    padding: 12px 24px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
}

#cookie-banner button:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

/* Mobile cookie banner */
@media (max-width: 768px) {
    #cookie-banner {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    #cookie-banner button {
        margin-left: 5px;
        margin-top: 10px;
        padding: 10px 20px;
        display: block;
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    nav ul li a {
        padding: 0.75rem 1rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Fix two-column layouts for mobile */
    .about-grid,
    .contact-grid,
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .legal-page {
        padding: 2rem 0;
    }
    
    /* Improve form layout on mobile */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
    
    /* Better hero section spacing */
    .hero-content,
    .hero-image {
        padding: 1rem;
    }
    
    .services-preview,
    .about-content,
    .services-content,
    .contact-content,
    .why-choose {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .services-preview h2,
    .about-content h2,
    .services-content h2 {
        font-size: 2rem;
    }
    
    .cta-button,
    .button,
    .submit-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-preview,
    .service-item,
    .expertise-item {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .hero,
    nav,
    #cookie-banner,
    .cta-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}