/* Odosdesign inspired style for Fernandez Cervera */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap');

.titlesection {
    font-family: 'Fraunces', serif;
    font-weight: 400;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
body > header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f2f2f2;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

body > header .logo a {
    text-decoration: none;
    color: #000;
}

body > header .logo img {
    max-height: 35px;
    display: block;
}

.nav-menu {
    /* Menu styles */
}

body > header nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

body > header nav ul li a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.02em;
    transition: opacity 0.3s;
}

body > header nav ul li a:hover {
    opacity: 0.5;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}

/* Main */
main {
    flex: 1;
}

/* Video Section */
.home-video {
    width: 100%;
    background-color: #fff;
}

.home-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    text-align: left;
}

.hero h2 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: #000;
}

.hero .tagline {
    font-size: 1.5rem;
    max-width: 800px;
    color: #b9ce31;
    font-weight: 300;
}

/* Content Sections */
.content-section {
    padding: 8rem 0;
}

.content-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: left;
    text-transform: none;
    letter-spacing: -0.01em;
}

/* Contact Themes */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-intro-block {
    background-color: #f6f6f6;
    padding: 10rem 0 6rem;
    color: #000;
    text-align: center;
}

.contact-intro-block h2 {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

.contact-intro-block .light-text {
    font-weight: 300;
}

/* Map Section */
.google-map {
    width: 100%;
    margin: 0 0 4rem 0;
}

.google-map iframe,
.google-map #map {
    width: 100%;
    border: none;
    display: block;
}

.google-map iframe {
    filter: grayscale(1) contrast(1.2) opacity(0.8);
}

/* Hide Google Maps InfoWindow close button */
.gm-ui-hover-effect {
    display: none !important;
}

.gm-style-iw-c {
    padding: 0 !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
}

.contact-theme-index {
    background-color: #000;
    color: #fff;
}

.contact-theme-index h1,
.contact-theme-index h2,
.contact-theme-index h3,
.contact-theme-index p,
.contact-theme-index strong {
    color: #fff !important;
}

.contact-theme-page {
    background-color: #C3E0B1;
    color: #000;
    /*padding-bottom: 0;*/
}

.contact-theme-page h1,
.contact-theme-page h2,
.contact-theme-page h3,
.contact-theme-page p,
.contact-theme-page strong,
.contact-theme-page a {
    color: #000 !important;
}

.content-section p {
    font-size: 1.2rem;
    max-width: 900px;
    margin-bottom: 1.5rem;
    color: #000;
    font-weight: 400;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem 4rem;
}

.blog-card {
    text-decoration: none;
    color: #000;
    display: block;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.02);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f7f7f7;
    margin-bottom: 1.5rem;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card-content {
    padding: 0;
}

.blog-card-content .date {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #000;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.blog-card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-card-content p {
    font-size: 1rem;
    color: #000;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    display: none; /* Odosdesign style is usually direct click on card */
}

/* News Header Detail */
.news-header {
    padding: 6rem 0 3rem;
}

.news-header .date {
    color: #000;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.news-header h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: #fff;
    color: #000;
    padding: 8rem 0 4rem;
    margin: 4rem auto 0;
    max-width: 1200px;
    border-top: 1px solid #000;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-column h3 {
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    font-weight: 600;
}

.footer-column p, .footer-column li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 300;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul.news-list {
    column-count: 2;
    column-gap: 2rem;
}

.footer-column a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 0.6;
}

.footer-contact-big {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    /*border-top: 1px solid #333;*/
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

#contactanos a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}
/* Buttons */
.btn {
    background: #000;
    color: #fff;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    display: inline-block;
    transition: background 0.3s;
}

.btn:hover {
    background: #333;
}

.video-grid {
    margin-bottom: 60px;
}

.video-grid video {
    max-width: 1200px;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container, .header-container, .footer-container, .footer-bottom {
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero {
        padding-top: 6rem;
    }
    .content-section {
        padding: 4rem 0;
    }

    .video-grid video {
        max-width: calc(100vw - 40px);
        width: 100%;
        height: auto;
    }
    
    /* Mobile Menu Logic */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: auto;
        background-color: #000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 0;
        transform: translateY(-200%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: -1;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    body > header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        display: flex;
        background-color: transparent;
        padding: 0;
        border-radius: 0;
    }

    body > header nav ul li a {
        font-size: 1.5rem;
        color: #fff;
    }

    /* Hamburger Animation */
    .menu-toggle.active span {
        background-color: #000;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }
}
