/* ============================================
   ASA - Style CSS - Design Luxe & Science
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --color-black: #0a0a0a;
    --color-black-deep: #050505;
    --color-gold: #C9A84C;
    --color-gold-light: #E8D5A3;
    --color-gold-dark: #9A7B2F;
    --color-cream: #F5F0E8;
    --color-cream-dark: #E5DDD0;
    --color-anthracite: #1a1a2e;
    --color-anthracite-light: #2a2a3e;
    --color-text: #F5F0E8;
    --color-text-muted: #A0A0A0;
    --color-glass: rgba(255, 255, 255, 0.03);
    --color-glass-border: rgba(201, 168, 76, 0.2);
    --color-error: #e74c3c;
    --color-success: #2ecc71;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', sans-serif;

    --shadow-gold: 0 20px 60px rgba(201, 168, 76, 0.15);
    --shadow-gold-intense: 0 30px 80px rgba(201, 168, 76, 0.25);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);

    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ---------- 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);
    font-weight: 400;
    background-color: var(--color-black);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Noise Overlay ---------- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ---------- Fixed Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--color-glass-border);
    backdrop-filter: blur(10px);
}

.header-logo-link {
    display: block;
}

.header-logo-link:hover {
    opacity: 0.8;
}

.header-logo-img {
    max-height: 140px;
    max-width: 420px;
    object-fit: contain;
}

.header-nav {
    display: flex;
    gap: 30px;
}

.header-nav a {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: var(--color-gold);
}

/* ---------- Particles Canvas ---------- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 5%;
    background: linear-gradient(
        180deg,
        var(--color-black) 0%,
        var(--color-anthracite) 50%,
        var(--color-black) 100%
    );
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    text-shadow: 0 0 80px rgba(201, 168, 76, 0.5);
    margin: 0;
    line-height: 1;
    animation: logoReveal 1.5s var(--transition-smooth) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes logoReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tagline {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-cream);
    letter-spacing: 0.15em;
    margin-top: 10px;
    animation: fadeInUp 1s var(--transition-smooth) 0.5s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 50px;
    animation: fadeInUp 1s var(--transition-smooth) 0.8s forwards;
    opacity: 0;
}

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

/* ---------- CTA Button ---------- */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
    background-size: 200% 200%;
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    animation: fadeInUp 1s var(--transition-smooth) 1.2s forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s var(--transition-smooth);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-intense);
    background-position: 100% 100%;
}

.cta-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--transition-smooth);
}

.cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 1s var(--transition-smooth) 1.5s forwards;
    opacity: 0;
}

.scroll-indicator .scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scaleY(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ---------- Section Divider ---------- */
.section-divider {
    position: relative;
    z-index: 1;
    margin-top: -1px;
}

.section-divider svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* ---------- Content Sections ---------- */
.content-section {
    position: relative;
    padding: 100px 5%;
    background-color: var(--color-black);
}

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

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 15px;
    padding: 8px 20px;
    border: 1px solid var(--color-glass-border);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 300;
    color: var(--color-cream);
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.section-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-gold-light);
    letter-spacing: 0.1em;
}

.section-description {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.9;
}

/* ---------- Cards Grid ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.cards-grid.four-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ---------- Service Card ---------- */
.service-card {
    position: relative;
    padding: 40px 30px;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 4px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s var(--transition-smooth);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: var(--color-gold);
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
    color: var(--color-gold);
}

.card-icon.large {
    width: 70px;
    height: 70px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.card-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ---------- Gold Divider ---------- */
.gold-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-gold) 20%,
        var(--color-gold) 80%,
        transparent 100%
    );
    opacity: 0.5;
}

/* ---------- Fade-in Animation ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Contact Section ---------- */
.contact-section {
    position: relative;
    padding: 100px 5%;
    background: linear-gradient(
        180deg,
        var(--color-black) 0%,
        var(--color-anthracite) 100%
    );
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px 20px;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 2px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s var(--transition-smooth);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C9A84C' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.form-group select option {
    background-color: var(--color-black);
    color: var(--color-text);
}

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

/* ---------- Submit Button ---------- */
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    margin-top: 15px;
    background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
    background-size: 200% 200%;
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s var(--transition-smooth);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-intense);
    background-position: 100% 100%;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-icon {
    width: 18px;
    height: 18px;
}

/* ---------- Form Success ---------- */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 60px 40px;
    text-align: center;
    animation: successReveal 0.6s var(--transition-smooth) forwards;
}

.form-success.show {
    display: flex;
}

@keyframes successReveal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    color: var(--color-gold);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.form-success p {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-cream);
    letter-spacing: 0.05em;
}

.success-dot {
    display: inline-block;
    animation: dotBounce 1s ease-in-out infinite;
}

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

/* ---------- Footer ---------- */
.site-footer {
    padding: 40px 5%;
    background-color: var(--color-black-deep);
    border-top: 1px solid var(--color-glass-border);
}

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

.footer-phone {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-cream);
}

.brand-divider {
    color: var(--color-gold);
    font-size: 1.2rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* ---------- Products Section ---------- */
.products-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--color-glass-border);
}

.products-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-cream);
    text-align: center;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.products-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    display: block;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: var(--color-gold);
}

.product-card-image {
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    width: 60px;
    height: 60px;
    color: var(--color-text-muted);
    opacity: 0.3;
}

.product-placeholder svg {
    width: 100%;
    height: 100%;
}

.product-card-info {
    padding: 20px;
    text-align: center;
}

.product-card-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-cream);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card-price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-gold);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-muted);
    padding: 40px;
    font-size: 1.1rem;
}

/* ============================================
   Responsive Design
   ============================================ */

/* ---------- Tablet & Mobile (≤768px) ---------- */
@media (max-width: 768px) {

    /* Header */
    .site-header {
        padding: 10px 4%;
    }

    .header-logo-img {
        max-height: 105px;
        max-width: 315px;
    }

    .header-nav {
        gap: 15px;
    }

    .header-nav a {
        font-size: 0.7rem;
    }

    /* Hero */
    .hero-section {
        padding: 60px 5%;
    }

    .logo {
        letter-spacing: 0.2em;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 0.85rem;
    }

    /* Content & Contact */
    .content-section,
    .contact-section {
        padding: 80px 5%;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Service Cards */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cards-grid.four-cards {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px 25px;
    }

    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
    }

    .submit-button {
        padding: 15px 30px;
        width: 100%;
    }

    /* Products */
    .products-section {
        margin-top: 50px;
        padding-top: 40px;
    }

    .products-title {
        font-size: 1.6rem;
        letter-spacing: 0.06em;
    }

    .products-subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-card-image {
        aspect-ratio: 1 / 1;
    }

    .product-card-info {
        padding: 12px 10px;
    }

    .product-card-name {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .product-card-price {
        font-size: 1rem;
    }

    .product-placeholder {
        width: 48px;
        height: 48px;
    }

    /* Footer */
    .footer-brand {
        gap: 10px;
    }

    .brand-name {
        font-size: 1.1rem;
    }
}

/* ---------- Small Mobile (≤480px) ---------- */
@media (max-width: 480px) {

    .section-title {
        letter-spacing: 0.1em;
    }

    /* Header */
    .site-header {
        padding: 8px 3%;
    }

    .header-logo-img {
        max-height: 84px;
        max-width: 252px;
    }

    .header-nav {
        gap: 10px;
    }

    .header-nav a {
        font-size: 0.6rem;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card-image {
        aspect-ratio: 1 / 1;
    }

    .product-card-info {
        padding: 10px 8px;
    }

    .product-card-name {
        font-size: 0.88rem;
    }

    .product-card-price {
        font-size: 0.95rem;
    }
}

/* ---------- Extra Small Mobile (≤360px) ---------- */
@media (max-width: 360px) {

    /* Products: single column on very small screens */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-card-image {
        aspect-ratio: 16 / 9;
    }

    .product-card-info {
        padding: 15px;
    }

    .product-card-name {
        font-size: 1rem;
    }

    .product-card-price {
        font-size: 1.1rem;
    }
}

/* ---------- Stagger Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
    .service-card:nth-child(1) { transition-delay: 0.1s; }
    .service-card:nth-child(2) { transition-delay: 0.2s; }
    .service-card:nth-child(3) { transition-delay: 0.3s; }
    .service-card:nth-child(4) { transition-delay: 0.4s; }
}