/* 
   Nandan Papad - Bespoke Design System
   Copyright 2026 Nandan Papad. All Rights Reserved.
   This CSS is custom-built and does not use third-party templates.
*/

:root {
    /* Color Palette */
    --primary: #1B4332;
    --secondary: #E29F3D;
    --accent: #BC4749;
    --bg-light: #FDFCF0;
    --bg-white: #FFFFFF;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Josefin Slab', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing & Borders */
    --spacer: 1rem;
    --radius: 12px;
    --shadow-soft: 0 10px 30px rgba(27, 67, 50, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

section {
    padding: 100px 0;
}

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

/* --- Top Bar --- */
.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-text {
    display: none;
}

.top-socials {
    display: flex;
    gap: 15px;
}

/* --- Navigation --- */
.nav-wrapper {
    background: var(--bg-white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    object-fit: contain;
}

.nav-group-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
}

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

.mobile-cta-li {
    display: none;
}

@media (max-width: 992px) {
    .nav-links {
        gap: 15px;
    }

    .nav-link {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: inline;
    }

    .nav-toggle {
        display: block;
    }

    .nav-cta-desktop {
        display: none !important;
    }

    .logo img {
        height: 50px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 40px 24px;
        gap: 25px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        text-align: center;
    }

    #navMenu.active .nav-links {
        display: flex;
    }

    .mobile-cta-li {
        display: block;
        margin-top: 10px;
    }

    .mobile-cta {
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.2rem;
    }
}

.nav-link {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

@media (max-width: 992px) {
    .hero {
        min-height: 60vh;
        padding: 80px 0;
    }
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    color: var(--white);
}

.hero h1 {
    color: var(--white);
    font-size: 4.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* --- Buttons --- */
.btn-custom {
    display: inline-block;
    padding: 16px 40px;
    background: var(--secondary);
    color: var(--white);
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid var(--secondary);
}

.btn-custom:hover {
    background: transparent;
    color: var(--secondary);
}

/* --- Product Cards --- */
.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-card h3 {
    margin-bottom: 10px;
}

/* --- Footer --- */
.footer-bespoke {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info h4 {
    color: var(--secondary);
    margin-bottom: 25px;
}

.footer-links a {
    display: block;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 10px;
}

.copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* --- Animations --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease-out;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Grid --- */
.heritage-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-grid {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
}

.heritage-images {
    position: relative;
    padding: 40px 0;
}

@media (max-width: 992px) {

    .heritage-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .heritage-images {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        padding: 8px 0;
    }

    .top-bar {
        display: block;
    }

    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: inline;
    }

    .top-bar-container {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .top-socials {
        display: flex;
        gap: 15px;
    }

    .hero {
        height: 75vh;
    }

    .hero h1 {
        font-size: 2.2rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        font-weight: 800;
    }

    [data-reveal] {
        transform: translateY(15px);
    }

    .heritage-images .overlap-img {
        width: 75% !important;
        position: relative !important;
        bottom: 0 !important;
        right: 0 !important;
        margin: -20px auto 0 !important;
        display: block;
        border-width: 8px !important;
    }

    .heritage-images img:nth-child(1) {
        width: 100% !important;
    }

    .accent-square {
        display: none;
    }

    .page-hero h1 {
        font-size: 2.2rem !important;
    }

    .page-hero {
        padding: 50px 0 !important;
    }
}

/* --- Form Controls --- */
.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(226, 159, 61, 0.1);
}

.text-uppercase {
    text-transform: uppercase;
}

/* --- Premium Buttons --- */
.btn-custom {
    box-shadow: 0 4px 15px rgba(226, 159, 61, 0.3);
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(226, 159, 61, 0.4);
}

/* --- Utilities --- */
.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

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

.mt-30 {
    margin-top: 30px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* --- Footer Bottom Bar --- */
.copyright-bar {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
}

.copyright-bar p {
    margin: 0;
    opacity: 0.8;
}

.copyright-bar span {
    margin-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 15px;
}

@media (max-width: 768px) {
    .copyright-bar p {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .copyright-bar span {
        display: block;
        margin-left: 0 !important;
        border-left: none !important;
        padding-left: 0 !important;
    }
}

/* --- Shared Overlapping CTA --- */
.cta-overlap {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 60px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    margin-bottom: -60px;
    /* Controlled overlap */
    box-shadow: 0 15px 40px rgba(27, 67, 50, 0.15);
}

.social-cta.cta-overlap {
    background: var(--secondary);
    display: block;
    /* Social one is centered text */
    text-align: center;
}

/* --- Instagram Masonry Layout (Ordered) --- */
.instagram-masonry {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    align-items: flex-start;
}

.masonry-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 300px; /* Forces wrap on tablet/mobile */
}

.media-card {
    display: block;
    width: 100%;
    margin-bottom: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

@media (max-width: 1200px) {
    .instagram-masonry {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .masonry-column {
        min-width: 45%; /* Two columns on tablets */
    }
}

@media (max-width: 600px) {
    .masonry-column {
        min-width: 100%; /* Single column on mobile */
    }
    .instagram-masonry {
        gap: 0;
    }
}

@media (max-width: 768px) {
    .cta-overlap {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 24px;
        margin-bottom: 0;
        /* No overlap on mobile */
        border-radius: 0;
    }
}

/* --- Media Page Social CTA --- */
.social-cta {
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 50px 80px;
    color: var(--white);
    text-align: center;
    margin-bottom: -40px;
    position: relative;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(226, 159, 61, 0.2);
    transition: var(--transition);
}

.social-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(226, 159, 61, 0.3);
}

.social-cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .social-cta {
        padding: 40px 20px;
        margin-bottom: 0px;
        /* Remove overlap on mobile for better spacing */
        border-radius: 0;
        /* Go full width on mobile if desired, or keep border */
    }

    .social-cta-btns {
        flex-direction: column;
        gap: 15px;
    }

    .social-cta-btns .btn-custom {
        width: 100%;
    }
}