/* 
    Shri Ram and Sons Jewellers - Premium CSS Styles
    Color Palette: Deep Blue (#0B1B3D), Gold (#D4AF37), Cream (#FDFBF7)
*/

:root {
    --primary-color: #0B1B3D;
    /* Deep Blue */
    --secondary-color: #D4AF37;
    /* Gold */
    --accent-color: #C5A017;
    /* Darker Gold */
    --bg-color: #FDFBF7;
    /* Cream */
    --text-dark: #1A1A1A;
    --text-light: #FDFBF7;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Typography Utility */
h1,
h2,
h3,
h4,
.font-heading {
    font-family: var(--font-heading);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: #4a4a4a;
}

/* Container & Swiss Grid System */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

.swiss-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 2rem;
    row-gap: 2rem;
}

/* Base grid element spans full width by default unless overwritten */
.swiss-grid>* {
    grid-column: 1 / -1;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 2px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- NAVIGATION BAR --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background-color: rgba(11, 27, 61, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 0.8rem 2rem;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
}

.navbar.scrolled {
    padding: 0.6rem 2rem;
    background-color: rgba(11, 27, 61, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    top: 10px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
}

.nav-left {
    justify-content: flex-end;
    padding-right: 3rem;
}

.nav-right {
    justify-content: flex-start;
    padding-left: 3rem;
}

.logo {
    flex: 0 0 auto;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    z-index: 2;
}

.logo-shri {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-and {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 0.8rem;
    font-style: italic;
}

.logo-jewellers {
    font-family: var(--font-body);
    color: var(--secondary-color);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease-in-out;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 2.5rem;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-nav-list li {
    margin: 2rem 0;
}

.mobile-link {
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--secondary-color);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    background-image: url('images/hero_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 27, 61, 0.7), rgba(11, 27, 61, 0.85));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    max-width: 800px;
}

.hero-subtitle {
    color: var(--secondary-color);
    font-size: 1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    padding: 0 20px;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
}

/* --- LEGACY / ABOUT SECTION --- */
.legacy {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.legacy-container {
    padding-top: 4rem;
}

.legacy-text {
    grid-column: 1 / 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.legacy-image {
    grid-column: 8 / 13;
}

.section-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.title-underline {
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-bottom: 2.5rem;
}

.center-underline {
    margin: 0 auto 1.5rem auto;
}

.section-subtitle {
    margin-bottom: 3rem;
    font-style: italic;
    color: #666;
}

.stats-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.image-frame {
    position: relative;
    padding: 20px;
}

.image-frame img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

/* --- COLLECTIONS SECTION --- */
.collections {
    padding: 6rem 0;
    background-color: #f7f4ed;
    /* slightly darker cream */
    text-align: center;
}

.collection-grid {
    margin-top: 4rem;
}

.collection-card:nth-child(1) {
    grid-column: 1 / 5;
}

.collection-card:nth-child(2) {
    grid-column: 5 / 9;
}

.collection-card:nth-child(3) {
    grid-column: 9 / 13;
}

.collection-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.collection-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 27, 61, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.collection-card:hover .card-overlay {
    opacity: 1;
}

.view-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(212, 175, 55, 0.9);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: var(--transition);
}

.collection-card:hover .view-btn {
    transform: translateY(0);
}

.view-btn:hover {
    background: #fff;
}

.card-info {
    padding: 1.5rem;
    text-align: center;
}

.card-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* --- SERVICES SECTION --- */
.services {
    padding: 6rem 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.services-grid {
    margin-top: 4rem;
}

.service-item:nth-child(1) {
    grid-column: 2 / 5;
}

.service-item:nth-child(2) {
    grid-column: 5 / 9;
}

.service-item:nth-child(3) {
    grid-column: 9 / 12;
}

.service-item {
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-item p {
    color: rgba(253, 251, 247, 0.8);
    font-size: 0.95rem;
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.contact-container {
    padding-top: 4rem;
}

.contact-form-wrapper {
    grid-column: 1 / 8;
}

.contact-info-wrapper {
    grid-column: 9 / 13;
}

.contact-form {
    background: #fff;
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #fcfcfc;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background-color: #fff;
}

.submit-btn {
    width: 100%;
}

.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
}

.form-status.hidden {
    display: none;
}

.form-status.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-status.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 2rem;
    border-radius: 4px;
    box-shadow: 0 15px 30px rgba(11, 27, 61, 0.2);
}

.info-card h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card p {
    color: #e0e0e0;
    margin-bottom: 0;
    line-height: 1.8;
}

.info-card hr {
    border: none;
    height: 1px;
    background-color: rgba(212, 175, 55, 0.2);
    margin: 2rem 0;
}

/* --- FOOTER --- */
.footer {
    background-color: #050d21;
    /* Darker Blue */
    color: var(--text-light);
    padding: 4rem 0 0 0;
}

.footer-grid {
    padding-bottom: 4rem;
}

.footer-brand {
    grid-column: 1 / 5;
}

.footer-links {
    grid-column: 6 / 9;
}

.footer-contact {
    grid-column: 9 / 13;
}

.footer-logo {
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(253, 251, 247, 0.7);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(253, 251, 247, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact address p {
    margin-bottom: 0.8rem;
    font-style: normal;
}

.footer-bottom {
    background-color: #020713;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.85rem;
}

/* --- ANIMATIONS & REVEALS --- */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
    .swiss-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Reset grid spans for mobile stacking */
    .legacy-text,
    .legacy-image,
    .collection-card:nth-child(1),
    .collection-card:nth-child(2),
    .collection-card:nth-child(3),
    .service-item:nth-child(1),
    .service-item:nth-child(2),
    .service-item:nth-child(3),
    .contact-form-wrapper,
    .contact-info-wrapper,
    .footer-brand,
    .footer-links,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .legacy-text {
        order: 2;
    }

    .legacy-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 10px;
        padding: 0.8rem 1.5rem;
        border-radius: 30px;
        width: 95%;
    }

    .navbar.scrolled {
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        width: 100%;
        padding: 0.8rem 1.5rem;
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        width: 100%;
    }

    .logo {
        grid-column: 2;
    }

    .hamburger {
        display: flex;
        grid-column: 3;
        justify-self: end;
    }

    .collection-grid {
        max-width: 400px;
        margin: 2rem auto 0 auto;
    }

    .services-grid {
        margin-top: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero {
        background-attachment: scroll;
        /* Fix for buggy parallax scaling on iOS/Android */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats-container {
        justify-content: center;
    }

    /* Prevent horizontal scroll on mobile from side reveals */
    .reveal-left,
    .reveal-right {
        transform: translateY(30px);
    }

    .reveal-left.active,
    .reveal-right.active {
        transform: translate(0);
    }
}