/* 
 * PortraitKart Standalone - Main Styles
 * Optimized CSS replacing Tailwind.
 */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

:root {
    --primary: #1C1917;
    --secondary: #44403C;
    --cta: #CA8A04;
    --background: #FAFAF9;
    --text: #0C0A09;
    --white: #FFFFFF;

    --font-heading: 'Rubik', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utility Classes */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .grid-cols-sm-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flex-row-sm {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .grid-cols-lg-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-cols-lg-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .flex-row-lg {
        flex-direction: row;
    }

    .lg-1-2 {
        width: 50%;
    }

    .lg-1-3 {
        width: 33.333333%;
    }

    .lg-2-3 {
        width: 66.666667%;
    }
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.font-light {
    font-weight: 300;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.z-10 {
    z-index: 10;
}

.overflow-hidden {
    overflow: hidden;
}

/* Section Styling */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--secondary);
    max-width: 48rem;
    margin: 0 auto;
}

.text-cta {
    color: var(--cta);
}

.bg-stone-50 {
    background-color: #F5F5F4;
}

.bg-stone-900 {
    background-color: #1C1917;
}

.text-white {
    color: white;
}

/* Components */
.btn-primary {
    background-color: var(--cta);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.125rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(202, 138, 4, 0.3);
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(202, 138, 4, 0.1);
    color: var(--cta);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    border: 1px solid rgba(202, 138, 4, 0.2);
    margin-bottom: 1.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1280px;
    z-index: 50;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    top: 0.5rem;
}

.navbar-inner {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(231, 229, 228, 0.5);
    border-radius: 1.5rem;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-xl);
}

.navbar.scrolled .navbar-inner {
    padding: 0.75rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--primary);
}

.logo span {
    color: var(--cta);
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cta);
    transition: transform 0.3s ease;
    font-size: 1.25rem;
}

.logo:hover .logo-icon {
    transform: rotate(12deg);
}

/* Hero */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 6rem;
}

.hero-accent-1 {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -50%);
    width: 600px;
    height: 600px;
    background: rgba(202, 138, 4, 0.05);
    filter: blur(120px);
    border-radius: 50%;
}

.hero-accent-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translate(-25%, 50%);
    width: 600px;
    height: 600px;
    background: rgba(28, 25, 23, 0.05);
    filter: blur(120px);
    border-radius: 50%;
}

.hero-image-container {
    position: relative;
    aspect-ratio: 4/5;
    background: #e7e5e4;
    border-radius: 2.5rem;
    overflow: hidden;
    border: 12px solid var(--white);
    box-shadow: var(--shadow-2xl);
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-image-container:hover img {
    transform: scale(1.03);
}

/* Portrait Cards */
.portrait-card {
    background: white;
    padding: 2.5rem;
    border-radius: 2.5rem;
    border: 1px solid rgba(231, 229, 228, 0.5);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    height: 100%;
}

.portrait-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-2xl);
}

.portrait-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.portrait-card:hover .portrait-icon {
    transform: scale(1.1) rotate(6deg);
}

/* Gallery */
.gallery-item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid #E7E5E4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(28, 25, 23, 0.9));
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Pricing */
.pricing-card {
    background: rgba(68, 64, 60, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid #44403C;
    border-radius: 2.5rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.pricing-card.recommended {
    border-color: var(--cta);
    background: rgba(41, 37, 36, 0.8);
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(202, 138, 4, 0.2);
}

.pricing-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: rgba(28, 25, 23, 0.6);
    border-radius: 1.25rem;
    border: 1px solid rgba(68, 64, 60, 0.5);
    margin-bottom: 1rem;
}

/* FAQ */
.faq-item {
    background: var(--white);
    border-radius: 1.5rem;
    border: 1px solid #E7E5E4;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.faq-question:hover {
    background: #FAFAF9;
}

.faq-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid #E7E5E4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    background: var(--cta);
    border-color: var(--cta);
    color: white;
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 2.5rem;
    color: var(--secondary);
    font-weight: 300;
}

.faq-item.active .faq-answer {
    max-height: 20rem;
    padding-bottom: 1.5rem;
}

/* Footer Control */
.footer-social a {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    background: var(--cta);
    border-color: var(--cta);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-8px);
    }

    50% {
        transform: translateY(0);
    }
}

.animate-bounce-slow {
    animation: bounce 3s ease-in-out infinite;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

/* Mobile Adjustments */
@media (max-width: 1023px) {
    .sm-hidden {
        display: none;
    }

    .hero {
        text-align: center;
    }

    .hero p {
        margin-inline: auto;
    }

    .hero .justify-start {
        justify-content: center;
    }
}