/* 
 * TG Jewellery - Simplified Stylesheet
 * A streamlined stylesheet for a jewelry showcase website
 */

/* ======================================
   1. CSS Variables & Reset
   ====================================== */
:root {
    /* Color Palette */
    --primary-color: #c9a96e;
    --primary-dark: #b08d4c;
    --primary-light: #e0c893;
    --secondary-color: #333333;
    --text-color: #333333;
    --text-light: #777777;
    --white: #ffffff;
    --off-white: #f9f9f9;
    --light-gray: #f1f1f1;
    --medium-gray: #e1e1e1;
    
    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --border-radius-sm: 3px;
    --border-radius-md: 5px;
    --border-radius-lg: 10px;
    
    /* Box Shadow */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-medium: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

ul, ol {
    list-style: none;
}

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

a:hover {
    color: var(--primary-color);
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* ======================================
   2. Base Styles
   ====================================== */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 800px;
    margin: var(--spacing-md) auto 0;
}

/* ======================================
   3. Typography
   ====================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: var(--spacing-md);
}

/* ======================================
   4. Header & Navigation
   ====================================== */
.main-header {
    padding: var(--spacing-lg) 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.logo-container {
    flex: 1;
}

.logo h1 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 0;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.main-nav {
    display: flex;
}

.nav-menu {
    display: flex;
}

.nav-item a {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--secondary-color);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color var(--transition-medium);
}

.nav-item a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all var(--transition-medium);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ======================================
   5. Hero Section
   ====================================== */
.hero-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--off-white);
    text-align: center;
}

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

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* ======================================
   6. Projects Grid
   ====================================== */
.projects-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.project-overlay p {
    color: var(--white);
    margin-bottom: 0;
    text-align: center;
}

/* ======================================
   7. Contact Form
   ====================================== */
.contact-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--off-white);
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    transition: border-color var(--transition-medium);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-medium);
}

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

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

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

/* ======================================
   8. Footer
   ====================================== */
.main-footer {
    padding: var(--spacing-lg) 0;
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.main-footer p {
    margin-bottom: 0;
}

/* ======================================
   9. Media Queries
   ====================================== */
@media (max-width: 991.98px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        z-index: 1000;
        transition: right var(--transition-medium);
        display: flex;
        justify-content: center;
        padding-top: var(--spacing-xxl);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-item {
        margin: var(--spacing-sm) 0;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}