/* 
   Aitor Dorronsoro - Exact Clone Styling
*/

:root {
    --primary: #0F374A;
    --accent: #5db9db;
    --text: #222222;
    --text-muted: #666666;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --ticker-bg: #035266;
    --transition: all 0.4s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    padding: 10px 0;
}

.top-bar-container {
    display: flex;
    justify-content: center;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons img {
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Header */
header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

.desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.desktop-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: none;
    color: var(--primary);
}

.desktop-nav a:hover {
    opacity: 0.7;
}

/* Hero */
.hero {
    height: 70vh;
    background-image: url('https://images.gestionaweb.cat/6374/pwimg-2560/foto-personal-6.jpg');
    background-size: cover;
    background-position: center 20%;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

/* Bio Section */
.bio-section {
    padding: 100px 0;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.bio-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

.overlap-image {
    position: relative;
    top: -50px;
    border: 5px solid var(--white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.bio-text h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.bio-text .intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.bio-text p {
    margin-bottom: 30px;
}

/* Buttons */
.btn-outline {
    border: 1px solid var(--primary);
    padding: 12px 30px;
    font-weight: 600;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-white {
    border: 1px solid var(--white);
    color: var(--white);
    padding: 15px 40px;
    font-weight: 600;
    display: inline-block;
}

/* Ticker */
.marquee-ticker {
    background: var(--ticker-bg);
    color: var(--white);
    padding: 20px 0;
    overflow: hidden;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Section Spacing */
.section-sm { padding: 80px 0; }
.title-medium { font-size: 2rem; margin-bottom: 20px; }
.subtitle-text { font-size: 1.1rem; color: var(--text-muted); max-width: 800px; margin: 0 auto; }

/* Grid Services */
.grid-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.service-card {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--white);
    text-transform: uppercase;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.service-card-content {
    position: relative;
    z-index: 10;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.service-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service-card p { font-size: 0.85rem; opacity: 0.9; text-transform: none; }

/* CTA Banner */
.cta-banner {
    background: #000;
    color: var(--white);
    padding: 80px 0;
}

.cta-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Split */
.contact-section {
    background: var(--bg-light);
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 { font-size: 2rem; margin-bottom: 20px; }
.contact-meta { margin-top: 30px; }
.contact-meta p { margin-bottom: 10px; font-size: 0.95rem; }

.contact-form {
    background: var(--white);
    padding: 40px;
}

.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
.form-row input, .form-row textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd;
}

.btn-form {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    cursor: pointer;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-social, .footer-legal {
    display: flex;
    gap: 30px;
}

.footer-social a, .footer-legal a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.copyright { font-size: 0.8rem; color: #999; }

/* Internal Pages Styles */
.hero-short {
    height: 40vh;
    background-image: url('https://images.gestionaweb.cat/6374/pwimg-2560/foto-personal-6.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-bottom: 0; /* Changed from 60px */
}

.section-padding {
    padding: 80px 0;
}

.bg-primary-banner {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.bg-primary-banner h2, .bg-primary-banner p {
    color: var(--white);
    margin: 0;
}

.banner-text {
    font-size: 1.8rem;
    font-weight: 500;
    max-width: 900px;
    margin: 0 auto !important;
}

.vision-text {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.4;
}

.bio-grid-internal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

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

.bio-text-content {
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bio-text-content h1, .bio-text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.bio-text-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.achievement-list {
    margin-top: 30px;
    padding-left: 20px;
}

.achievement-list li {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Gallery */
.gallery-section {
    padding: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-4-col {
    grid-template-columns: repeat(4, 1fr);
}

/* Category Boxes */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0 60px;
}

.category-box {
    background-color: var(--primary);
    padding: 25px;
    text-align: center;
    border: 1px solid var(--primary);
    transition: var(--transition);
}

.category-box a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    display: block;
}

.category-box:hover {
    background-color: transparent;
}

.category-box:hover a {
    color: var(--primary);
}

.bg-dark-blue {
    background-color: var(--primary);
    color: var(--white);
}

/* Business Cards */
.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.business-card {
    background-color: var(--primary);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.business-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.business-card-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.business-card-content {
    padding: 30px 20px;
}

.business-card-content h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.business-card-content p {
    color: var(--white);
    opacity: 0.8;
    font-size: 1rem;
}

.subtitle-hero {
    font-size: 1.4rem;
    font-weight: 300;
    margin-top: 10px;
    opacity: 0.9;
}

/* Mobile */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .bio-grid, .grid-services, .contact-split, .bio-grid-internal, .business-grid {
        grid-template-columns: 1fr;
    }
    .bio-text-content {
        padding: 40px 20px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-4-col {
        grid-template-columns: repeat(1, 1fr);
    }
    .hero h1 { font-size: 2rem; }
    .overlap-image { top: 0; border-radius: 0; }
    .banner-text { font-size: 1.4rem; }
}
