/* ===================================
   Ultramarinos Idoia - Stylesheet
   Midnight Blue + Mint Palette
   =================================== */

/* --- CSS Variables --- */
:root {
    --color-midnight: #0d1b2a;
    --color-midnight-light: #1b3a4b;
    --color-mint: #a8e6cf;
    --color-mint-light: #d4f5e5;
    --color-mint-dark: #7bc8a8;
    --color-cream: #f8f6f3;
    --color-warm-gray: #e8e4df;
    --color-text: #2c3e50;
    --color-text-light: #5a6c7d;
    --color-white: #ffffff;
    --color-shadow: rgba(13, 27, 42, 0.08);
    --color-shadow-md: rgba(13, 27, 42, 0.12);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px var(--color-shadow);
    --shadow-md: 0 4px 20px var(--color-shadow-md);
    --shadow-lg: 0 8px 40px var(--color-shadow-md);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* --- Typography --- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-mint-dark);
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.2), rgba(168, 230, 207, 0.05));
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-midnight);
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-mint-dark), var(--color-mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 560px;
    line-height: 1.8;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-midnight);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(13, 27, 42, 0.3);
}

.btn-primary:hover {
    background: var(--color-midnight-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(13, 27, 42, 0.4);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-midnight);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-midnight);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-midnight);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 246, 243, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(13, 27, 42, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(248, 246, 243, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-midnight);
}

.logo-accent {
    color: var(--color-mint-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(168, 230, 207, 0.2);
    color: var(--color-midnight);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-midnight);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        #0d1b2a 0%, 
        #1b3a4b 35%, 
        #234e63 60%, 
        #1b3a4b 85%, 
        #0d1b2a 100%
    );
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(168, 230, 207, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 230, 207, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(168, 230, 207, 0.05) 0%, transparent 40%);
}

.hero-content {
    flex: 1;
    max-width: 560px;
    padding: 0 24px;
    margin: 0 auto;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 230, 207, 0.15);
    border: 1px solid rgba(168, 230, 207, 0.3);
    color: var(--color-mint);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.title-gradient {
    background: linear-gradient(135deg, var(--color-mint), #c8f5d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-mint);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-image {
    flex-shrink: 0;
    position: relative;
}

.hero-image img {
    width: 420px;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-image-float {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: var(--color-white);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-midnight);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--color-cream);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-cream);
}

.about-img-secondary img {
    width: 320px;
    height: 280px;
    object-fit: cover;
}

.about-decoration {
    position: absolute;
    top: -20px;
    right: 40px;
    width: 100px;
    height: 100px;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
}

.deco-circle-1 {
    width: 80px;
    height: 80px;
    background: rgba(168, 230, 207, 0.3);
    top: 0;
    left: 0;
}

.deco-circle-2 {
    width: 50px;
    height: 50px;
    background: rgba(13, 27, 42, 0.08);
    bottom: 0;
    right: 0;
}

.deco-dot {
    width: 12px;
    height: 12px;
    background: var(--color-mint);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.3), rgba(168, 230, 207, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-midnight);
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Products --- */
.products {
    padding: 100px 0;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    overflow: hidden;
    height: 200px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-midnight);
    margin-bottom: 8px;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-midnight) 0%, var(--color-midnight-light) 100%);
}

.cta-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(168, 230, 207, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.cta-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-text {
    flex: 1;
    max-width: 560px;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.3;
    margin-bottom: 16px;
}

.cta-accent {
    color: var(--color-mint);
}

.cta-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--color-cream);
}

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

.contact-description {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.3), rgba(168, 230, 207, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--color-midnight);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--color-mint-dark);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* --- Form --- */
.form-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-midnight);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-midnight);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-warm-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-cream);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-mint);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(168, 230, 207, 0.2);
}

.form-input::placeholder {
    color: var(--color-text-light);
    opacity: 0.6;
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.3), rgba(168, 230, 207, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form-success h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-midnight);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Footer --- */
.footer {
    background: var(--color-midnight);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
}

.footer-links h4,
.footer-hours h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-links ul,
.footer-hours ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--color-mint);
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9rem;
}

.footer-hours span:last-child {
    color: var(--color-mint);
    font-weight: 600;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.6;
}

.footer-contact a:hover {
    color: var(--color-mint);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(248, 246, 243, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    .hero {
        padding: 120px 0 80px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .cta-actions .btn {
        justify-content: center;
    }
    
    .form-card {
        padding: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .about,
    .products,
    .contact {
        padding: 60px 0;
    }
    
    .about-img-secondary {
        right: -10px;
        bottom: -20px;
    }
    
    .about-img-secondary img {
        width: 220px;
        height: 200px;
    }
}
