/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
    /* Colors based on provided images and aesthetic */
    --clr-bg: #FCFBF9;
    /* Very light warm off-white */
    --clr-bg-alt: #F4EFEA;
    /* Slightly darker warm tone for contrast */
    --clr-dark: #1A1A1A;
    /* Near black */
    --clr-text: #333333;
    /* Dark gray for body text */
    --clr-brown-dark: #5C3A21;
    /* Dark brown from the welcome note */
    --clr-brown-light: #8A5A3B;
    --clr-accent: #C4A484;
    /* Soft gold/brown accent */

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-script: 'Dancing Script', cursive;

    /* Transitions & Spacing */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --section-pad: 100px 0;
}

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

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

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

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

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

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

/* Typography elements */
h1,
h2,
h3,
h4,
.logo,
.footer-logo {
    font-family: var(--font-serif);
    color: var(--clr-dark);
    font-weight: 500;
    line-height: 1.2;
}

.bg-dark h2,
.bg-dark h3 {
    color: var(--clr-bg);
}

h1 {
    font-size: clamp(3rem, 5vw, 5.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 2rem;
}

h1 em {
    font-style: italic;
    color: var(--clr-brown-dark);
}

.subtitle {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--clr-brown-light);
    display: block;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--clr-brown-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--clr-dark);
    color: var(--clr-dark);
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    color: white;
    /* Make header text white for transparent background */
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    display: block;
    text-align: center;
}

.logo img {
    height: 210px;
    /* Bigger logo size */
    width: auto;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    justify-content: flex-start;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset for navbar */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('image1.png');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    /* Changed to 1fr since image is removed */
    gap: 4rem;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.hero h1,
.hero .subtitle,
.hero h1 em {
    color: white;
}

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

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

.hero-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-image:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   Welcome Section (Replicating the Welcome note image)
   ========================================================================== */
.welcome-section {
    position: relative;
    background-color: white;
    /* Clean white for the note */
    text-align: center;
    border-top: 1px solid var(--clr-bg-alt);
    border-bottom: 1px solid var(--clr-bg-alt);
}

.welcome-container {
    max-width: 800px;
    position: relative;
    padding: 4rem 2rem;
}

.welcome-content {
    color: var(--clr-brown-dark);
}

.welcome-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--clr-brown-dark);
}

.welcome-content p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.welcome-content .signature {
    margin-top: 3rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
}

/* Decorative florals could be added via CSS pseudoelements or backgrounds */
.floral-decor {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%235C3A21" d="M50 0 C60 30, 80 40, 100 50 C80 60, 60 70, 50 100 C40 70, 20 60, 0 50 C20 40, 40 30, 50 0 Z" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.floral-decor.top-left {
    top: 0;
    left: 0;
    transform: rotate(-45deg);
}

.floral-decor.bottom-right {
    bottom: 0;
    right: 0;
    transform: rotate(135deg);
}


/* ==========================================================================
   Lamination Section
   ========================================================================== */
.lamination-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.lamination-text h2 {
    text-transform: uppercase;
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    line-height: 1;
    margin-bottom: 3rem;
    letter-spacing: -1px;
}

.feature-list li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1.5rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list strong {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--clr-dark);
    margin-right: 0.5rem;
}

.lamination-image img {
    box-shadow: 20px 20px 0 var(--clr-accent);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: box-shadow 0.4s ease;
    will-change: transform;
}

.lamination-image img:hover {
    box-shadow: 30px 30px 0 var(--clr-accent);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
    text-align: center;
}

.pricing-header {
    margin-bottom: 4rem;
}

.pricing-header h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.pricing-header .subtitle {
    font-size: 1.2rem;
    color: var(--clr-text);
    text-transform: none;
    letter-spacing: 0;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.pricing-card {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    text-align: left;
    position: relative;
    border: 1px solid var(--clr-bg-alt);
    transition: box-shadow 0.4s ease;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    will-change: transform;
}

.pricing-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.pricing-card.highlighted {
    border: 2px solid var(--clr-brown-light);
}

.card-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--clr-bg-alt);
    padding-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    background: var(--clr-brown-light);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.price-list .price {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--clr-brown-dark);
}

.pricing-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* ==========================================================================
   Checkout / UPI Section
   ========================================================================== */
.checkout-container {
    max-width: 800px;
}

.checkout-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 4rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-content h2 {
    margin-bottom: 1rem;
}

.checkout-content>p {
    margin-bottom: 3rem;
    color: #AAA;
}

.order-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #DDD;
}

input,
select,
textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    background: rgba(255, 255, 255, 0.1);
}

select option {
    background: var(--clr-dark);
    color: white;
}

.payment-box {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-info h3 {
    margin-bottom: 0.2rem;
}

#total-amount {
    color: var(--clr-accent);
}

.delivery-text {
    font-size: 0.85rem;
    color: #888;
}

.btn-upi {
    background: #00B15A;
    color: white;
    font-weight: 600;
}

.btn-upi:hover {
    background: #00934A;
}

.qr-container {
    margin-top: 3rem;
    text-align: center;
    background: white;
    color: var(--clr-dark);
    padding: 3rem;
    border-radius: 8px;
    animation: fadeIn 0.5s ease forwards;
}

.qr-container.hidden {
    display: none;
}

.qr-container h3 {
    color: var(--clr-dark);
    margin-bottom: 1.5rem;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.qr-instructions {
    margin: 1.5rem 0;
    font-weight: 500;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 4rem 0 2rem;
    background: var(--clr-bg-alt);
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer p {
    color: #666;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-links a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 500;
}

.social-links a:hover {
    color: var(--clr-brown-light);
}

.copyright {
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {

    .hero-container,
    .lamination-container,
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-content {
        order: 2;
        text-align: center;
        margin: 0 auto;
    }

    .hero-image {
        order: 1;
    }

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

    .feature-list {
        text-align: left;
    }

    .nav-container {
        grid-template-columns: auto 1fr;
    }

    .logo {
        grid-column: 1;
        text-align: left;
    }

    .nav-right {
        grid-column: 2;
    }

    .nav-links {
        display: none;
        /* In a real app, add a hamburger menu */
    }

    .payment-box {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .checkout-content {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .section-padding {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .logo img {
        height: 80px;
        /* Bigger logo on mobile */
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
    }

    .nav-container {
        grid-template-columns: 1fr auto;
        /* Adjust header layout */
    }

    .nav-right {
        justify-content: flex-end;
    }

    .hero {
        padding-top: 100px;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .checkout-content {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        gap: 1rem;
    }
}