/* --- Design Tokens & Reset --- */
:root {
    --bg-primary: #FAF9F6; /* Premium Cream/Off-white */
    --bg-secondary: #FFFFFF;
    --text-main: #1C1B1A; /* Refined Near-Black */
    --text-muted: #666360;
    --accent: #8E7C68; /* Sophisticated Textile Muted Gold */
    --border: #E5E2DD;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'DM Serif Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout Components --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.container.narrow {
    max-width: 650px;
    padding: 80px 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background-color: rgba(250, 249, 246, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    letter-spacing: 2px;
    font-weight: 400;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 32px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

.btn-nav {
    border: 1px solid var(--text-main);
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background-color: var(--text-main);
    color: var(--bg-primary) !important;
}

@media (max-width: 768px) {
    header { padding: 20px 24px; }
    nav a:not(.btn-nav) { display: none; }
}

/* --- Hero Section --- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 48px;
    background: radial-gradient(circle at right, #F3ECE0 0%, var(--bg-primary) 70%);
}

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

.hero .subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 600;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 400;
}

.hero .tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    background-color: var(--text-main);
    color: var(--bg-primary);
    text-decoration: none;
    padding: 16px 36px;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

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

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

/* --- About Section --- */
.about-section {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.about-text h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent);
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.about-image {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensures the image fills the space without squishing */
    object-position: center; /* Keeps the fabric centered in the frame */
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06); /* Adds a premium soft shadow */
}

/* --- Shade Card Section --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.shade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.shade-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shade-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

.color-preview {
    height: 200px;
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.shade-info {
    padding: 20px;
}

.shade-info h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.shade-info .hex-code {
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.fabric-tag {
    display: inline-block;
    font-size: 0.75rem;
    background-color: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--text-main);
    color: var(--bg-primary);
    text-align: center;
}

.contact-section h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.contact-section p {
    color: #A5A29F;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 16px;
    background-color: #2A2928;
    border: 1px solid #3A3938;
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: 1px solid var(--accent);
}

.btn-submit {
    background-color: var(--bg-primary);
    color: var(--text-main);
    border: none;
    padding: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.contact-meta {
    border-top: 1px solid #3A3938;
    padding-top: 32px;
    font-size: 0.9rem;
    color: #A5A29F;
}

.contact-meta p {
    margin-bottom: 8px;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 32px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background-color: var(--bg-primary);
}

/* --- Hero Section Watermark Logo --- */
.hero {
    position: relative; /* Required to position the background logo */
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 48px;
    background: radial-gradient(circle at right, #F3ECE0 0%, var(--bg-primary) 70%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%; /* Adjust size of logo */
    height: 60%;
    background-image: url('UPKAR-LOGO.png'); /* Your logo file name */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.04; /* Very subtle so text remains readable */
    pointer-events: none; /* Prevents logo from blocking text selection */
    z-index: 0;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1; /* Keeps text above the watermark */
}

/* --- PDF Category Cards --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.category-card {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 32px 24px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(142, 124, 104, 0.1); /* Subtle gold shadow */
}

.category-icon {
    font-size: 2rem;
    margin-right: 20px;
    opacity: 0.7;
}

.category-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.category-info p {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Detailed Contact Locations --- */
.contact-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
    border-top: 1px solid #3A3938;
    padding-top: 48px;
    text-align: left;
}

.location-card {
    background-color: #2A2928;
    padding: 24px;
    border: 1px solid #3A3938;
    display: flex;
    flex-direction: column;
}

.location-card h4 {
    color: var(--bg-primary);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid #3A3938;
    padding-bottom: 12px;
}

.location-card .address {
    font-size: 0.85rem;
    color: #A5A29F;
    line-height: 1.5;
    margin-bottom: 12px;
}

.location-card .gstin {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 16px;
    font-family: monospace;
}

.location-card .contact-persons {
    margin-top: auto; /* Pushes contacts to the bottom of the card */
    font-size: 0.85rem;
    color: #FFFFFF;
}

.location-card .contact-persons p {
    margin-bottom: 4px;
    color: #FFFFFF;
}

/* ... (All original styles remain here) */
