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

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

/* Container styles */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Content box styles */
.content-box {
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    color: #fff;
}

.content-box h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: normal;
}

.content-box p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Welcome box - Anthracite */
.welcome {
    background-color: #393d48;
    padding: 0;
}

.welcome-content {
    display: flex;
    flex-direction: column;
}

.welcome-text {
    padding: 2rem;
    order: 2;
}

.welcome-image {
    order: 1;
    width: 100%;
    overflow: hidden;
    border: 20px solid #393d48;
    box-sizing: border-box;
    position: relative;
}

.responsive-image {
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Desktop styles */
@media screen and (min-width: 769px) {
    .welcome-image {
        height: 50vh;
        min-height: 600px;
    }
}

/* Tablet styles */
@media screen and (max-width: 768px) {
    .welcome-image {
        height: 40vh;
        min-height: 250px;
        border-width: 10px;
    }
}

/* Mobile styles */
@media screen and (max-width: 480px) {
    .welcome-image {
        height: 35vh;
        min-height: 200px;
        border-width: 8px;
    }
    
    .welcome-text {
        padding: 1.5rem;
    }
}

/* Small mobile devices */
@media screen and (max-width: 360px) {
    .welcome-image {
        height: 30vh;
        min-height: 180px;
        border-width: 6px;
    }
    
    .welcome-text {
        padding: 1.25rem;
    }
}

/* About box - Gray */
.about {
    background-color: #393d48;
}

/* Services Section */
.services {
    background-color: #393d48;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1 1 60%;
    min-width: 300px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-image {
    flex: 1 1 30%;
    min-width: 300px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 768px) {
    .services-container {
        flex-direction: column;
    }
    
    .service-image {
        margin-top: 1.5rem;
        order: 2;
    }
    
    .services-list {
        order: 1;
    }
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    background-color: #4a4f5a;
    color: #fff;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
    padding-top: 0.2rem;
}

.service-text {
    color: #e0e0e0;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Contact Form Styles */
.contact-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-container h1 {
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 300;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #4a6fa5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    min-height: 1.25rem;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

button[type="submit"] {
    background-color: #4a6fa5;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #3a5a80;
}

button[type="submit"]:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

#form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    display: none;
}

#form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        padding: 0.6rem;
    }
    
    button[type="submit"] {
        width: 100%;
        padding: 0.8rem;
    }
}

/* Focus styles for accessibility */
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 2px solid #4a6fa5;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .contact-container {
        box-shadow: none;
        padding: 0;
    }
    
    button[type="submit"] {
        display: none;
    }
}

/* Map Container */
.map-container {
    background-color: #393d48;
    padding: 1.5rem;
}

.map-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media screen and (max-width: 480px) {
    .map-container {
        padding: 1rem;
    }
}

/* Quote styles */
.quote {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
}

.quote .author {
    margin-top: 0.5rem;
    text-align: right;
    font-style: normal;
    opacity: 0.8;
}

/* Popover Styles */
.popover {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popover.active {
    display: flex;
    opacity: 1;
}

.popover-content {
    background-color: #393d48; /* Match header background */
    border-radius: 0; /* Remove border radius to match header */
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    box-shadow: none; /* Remove shadow to match header */
    transform: translateY(0);
    transition: transform 0.3s ease;
    color: #fff; /* Match header text color */
}

.popover-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2a2d34; /* Slightly darker than content for contrast */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popover-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: normal;
    color: #fff;
}

.close-popover {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.close-popover:hover {
    opacity: 1;
}

.popover-body {
    padding: 2rem;
    color: #fff;
    line-height: 1.6;
}

.popover-body h4 {
    color: #fff;
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
    font-weight: normal;
}

.popover-body h4:first-child {
    margin-top: 0;
}

.popover-body p,
.popover-body ul,
.popover-body li {
    color: #eee;
    margin-bottom: 1rem;
}

.popover-body ul {
    padding-left: 1.5rem;
}

.popover-body li {
    margin-bottom: 0.5rem;
}

.popover-body a {
    color: #fff;
    text-decoration: underline;
}

.popover-body a:hover {
    color: #ddd;
    text-decoration: none;
}

/* Responsive adjustments */
@media screen and (min-width: 768px) {
    .popover-content {
        width: 90%;
        max-width: 800px;
        height: auto;
        max-height: 90vh;
        border-radius: 4px;
    }
    
    .popover-header {
        padding: 1.5rem 2.5rem;
    }
    
    .popover-body {
        padding: 2.5rem;
    }
}

@media screen and (min-width: 1024px) {
    .popover-content {
        max-width: 1000px;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 1020px) {
    .container {
        margin: 0 1rem;
        padding: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        margin: 1rem 0 0;
        max-width: 80px;
    }
    .container {
        margin: 0;
        padding: 1rem;
        width: 100%;
    }
}

/* Header and Logo */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-container {
    max-width: 100px;
    margin-left: 1.5rem;
}

.logo {
    width: 100%;
    height: auto;
    display: block;
}

/* WhatsApp Contact Box */
.whatsapp-contact {
    background-color: #f5f5f5;
    text-align: center;
    padding: 2rem 1rem;
}

.whatsapp-contact h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

.whatsapp-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.whatsapp-icon {
    margin-right: 10px;
    color: white;
}

.whatsapp-link span {
    margin-left: 5px;
}

/* Typography */
h1 {
    font-size: 2rem;
    margin: 0;
    flex-grow: 1;
}

p {
    line-height: 1.6;
    font-size: 1rem;
}

/* Mobile first approach */
@media screen and (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    p {
        font-size: 1.1rem;
    }
}

/* Footer styles */
.site-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    color: #2a2a2a;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: #2a2a2a;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #2a2a2a;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Instagram link */
.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2a2a2a;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.03);
}

.instagram-link:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.instagram-icon {
    width: 1.2rem;
    height: 1.2rem;
    transition: transform 0.2s ease;
}

.instagram-link:hover .instagram-icon {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem 2rem;
    }
    
    .instagram-link {
        margin-top: 0.5rem;
    }
}
