/* 
   ===============================================
   Seres Porcelán - Premium Design System
   ===============================================
*/

:root {
    /* Colors */
    --clr-bg: #FCFCFB;
    --clr-bg-light: #F4F3F0;
    --clr-bg-dark: #1A1F2B;
    
    --clr-text-main: #333333;
    --clr-text-light: #666666;
    --clr-white: #FFFFFF;
    
    --clr-primary: #1C355E; /* Cobalt/Porcelain Blue */
    --clr-primary-light: #2A4B82;
    --clr-accent: #CFA661; /* Soft Gold */
    --clr-accent-hover: #b89255;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Sizes */
    --nav-height: 80px;
    --section-padding: 100px 0;
    --border-radius: 4px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--clr-bg-light);
}

.bg-dark {
    background-color: var(--clr-bg-dark);
}

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

.text-white {
    color: var(--clr-white);
}

.section-subtitle, .subtitle {
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--clr-accent);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--clr-text-light);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(207, 166, 97, 0.2);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(252, 252, 251, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-normal);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.navbar.scrolled {
    height: 70px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--clr-text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--clr-accent);
    transition: var(--transition-normal);
}

.nav-links a:hover {
    color: var(--clr-primary);
}

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

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001; /* Ensure hamburger is above menu */
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger .line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--clr-primary);
    margin: 5px;
    transition: var(--transition-fast);
}

/* Hamburger active animation */
.hamburger.active .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active .line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(252, 252, 251, 0.4) 0%, rgba(26, 31, 43, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
    color: var(--clr-white);
}

.hero h1 {
    font-size: 4rem;
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero .subtitle {
    color: var(--clr-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.hero .description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.2);
    box-sizing: border-box;
    z-index: 1;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--clr-text-light);
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--clr-white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-bottom-color: var(--clr-accent);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--clr-text-light);
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transform: scale(1);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.gallery-item.hide {
    display: none;
}

.item-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(28, 53, 94, 0.9) 0%, rgba(28, 53, 94, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    color: var(--clr-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.overlay h3 {
    color: var(--clr-white);
    margin: 0;
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    transition-delay: 0.05s;
}

.gallery-item:hover .overlay span,
.gallery-item:hover .overlay h3 {
    transform: translateY(0);
}

/* Lightbox Slider */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 31, 43, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: opacity 0.2s ease-in-out;
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    transition: 0.3s;
    background: transparent;
    border: none;
}

.close-lightbox:hover {
    color: var(--clr-accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 3.5rem;
    cursor: pointer;
    padding: 20px;
    z-index: 10000;
    transition: var(--transition-fast);
}

.lightbox-nav:hover {
    color: var(--clr-white);
}

.lightbox-prev { left: 2%; }
.lightbox-next { right: 2%; }

.lightbox-counter {
    position: absolute;
    top: 35px;
    left: 40px;
    color: rgba(255,255,255,0.7);
    font-size: 1.125rem;
    font-family: var(--font-body);
    letter-spacing: 2px;
}

.lightbox-caption {
    margin-top: 25px;
    color: var(--clr-white);
    font-size: 1.25rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-align: center;
    min-height: 30px;
}

/* Quote/Form Section */
.minimal-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.minimal-form input,
.minimal-form textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--clr-text-main);
    transition: var(--transition-fast);
}

.minimal-form input:focus,
.minimal-form textarea:focus {
    outline: none;
    border-bottom-color: var(--clr-accent);
}

.minimal-form input::placeholder,
.minimal-form textarea::placeholder {
    color: var(--clr-text-light);
    font-weight: 300;
}

.minimal-form button {
    width: 100%;
    margin-top: 1rem;
    padding: 20px;
    font-size: 1rem;
}

/* Contact Section */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-item h4 {
    color: var(--clr-accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.contact-item p, .contact-item a {
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 1.125rem;
}

.contact-item a:hover {
    color: var(--clr-accent);
}

/* Footer */
footer {
    background-color: #12151c;
    padding: 2rem 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* Scroll Animations */
.js-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-scroll.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in {
    animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Highlight Sections & Parallax */
.highlight-section {
    padding: 120px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 31, 43, 0.8);
    z-index: 1;
}

.relative { position: relative; }
.z-10 { z-index: 10; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-accent { color: var(--clr-accent) !important; }

/* Large Reveal Text */
.huge-text {
    font-size: 3.5rem;
    line-height: 1.3;
    color: var(--clr-white);
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
}

/* Text Reveal Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse Button */
.pulse-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 0 0 rgba(207, 166, 97, 0.7);
    animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(207, 166, 97, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(207, 166, 97, 0); }
    100% { box-shadow: 0 0 0 0 rgba(207, 166, 97, 0); }
}

/* Animation Delays */
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 992px) {
    .huge-text {
        font-size: 2.5rem;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    /* Base spacing adjustments */
    .section-padding { padding: 80px 0; }
    .highlight-section { padding: 80px 0; }
    
    /* Typography adjustments */
    .section-title { font-size: 2rem; }
    .huge-text { font-size: 2rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero .description { font-size: 1.1rem; }
    
    /* Layout adjustments */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .gallery-grid, .services-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Hamburger Navigation */
    .hamburger {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background-color: var(--clr-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0), visibility 0s linear 0.4s;
        z-index: 1000;
        margin: 0;
        padding: 0;
        visibility: hidden;
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0), visibility 0s linear 0s;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
        display: block;
        padding: 10px;
    }

    .navbar.scrolled .nav-links {
        top: 0;
    }

    /* Lightbox fixes for Mobile */
    .lightbox-nav {
        font-size: 2rem;
        padding: 10px;
    }
    .lightbox-content {
        max-width: 95%;
    }
    .lightbox-counter {
        top: 20px;
        left: 20px;
    }
    .close-lightbox {
        top: 10px;
        right: 20px;
    }
}
