/* ===== CSS Variables ===== */
:root {
    --primary: #b76e79;
    --primary-dark: #9a5a64;
    --primary-light: #d4a5ac;
    --secondary: #2c3e50;
    --accent: #c9a962;
    --gold: #d4af37;
    --platinum: #e5e4e2;
    --rose-gold: #b76e79;
    --white: #ffffff;
    --off-white: #faf9f7;
    --light-gray: #f5f4f2;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --text: #2c3e50;
    --text-light: #5a6c7d;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

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

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
}

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

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

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

.hidden {
    display: none !important;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 110, 121, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 120px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero-content .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ring-showcase {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(183, 110, 121, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.ring-display {
    font-size: 12rem;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

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

/* ===== Products Section ===== */
.products-section {
    padding: 100px 0;
    background: var(--off-white);
}

.products-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 15px var(--shadow);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.filter-group select {
    padding: 10px 35px 10px 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.view-toggle {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.view-btn {
    padding: 10px;
    background: var(--light-gray);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary);
    color: var(--white);
}

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

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--off-white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
}

.product-compare-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px var(--shadow);
}

.product-compare-btn:hover,
.product-compare-btn.active {
    background: var(--primary);
    color: var(--white);
}

.product-info {
    padding: 25px;
}

.product-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
}

.product-style {
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.product-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.product-detail {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: var(--light-gray);
    border-radius: 20px;
    color: var(--text-light);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars {
    color: var(--gold);
    font-size: 0.9rem;
}

.rating-count {
    font-size: 0.85rem;
    color: var(--gray);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 12px 20px;
}

/* Products Table */
.products-table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
}

.products-table th,
.products-table td {
    padding: 18px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.products-table th {
    background: var(--secondary);
    color: var(--white);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.products-table th:first-child {
    border-radius: var(--border-radius) 0 0 0;
}

.products-table th:last-child {
    border-radius: 0 var(--border-radius) 0 0;
}

.products-table tr:hover {
    background: var(--off-white);
}

.table-ring-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.table-ring-icon {
    font-size: 2rem;
}

.table-ring-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===== Quiz Section ===== */
.quiz-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #1a252f 100%);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-header h2 {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.quiz-header p {
    color: var(--text-light);
}

.quiz-progress {
    margin-bottom: 40px;
}

.progress-bar {
    height: 6px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 20%;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--gray);
    text-align: center;
    display: block;
}

.quiz-question {
    margin-bottom: 30px;
}

.quiz-question h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 25px;
    text-align: center;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quiz-option {
    padding: 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.quiz-option:hover {
    border-color: var(--primary-light);
    background: var(--off-white);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(183, 110, 121, 0.1);
}

.quiz-option-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.quiz-option-text {
    font-weight: 500;
    color: var(--text);
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.quiz-result {
    text-align: center;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.quiz-result h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.result-style {
    font-size: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.result-description {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.result-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-ring {
    background: var(--off-white);
    padding: 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.result-ring:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--shadow);
}

/* ===== Compare Section ===== */
.compare-section {
    padding: 100px 0;
    background: var(--white);
}

.compare-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.compare-slot {
    background: var(--off-white);
    border: 2px dashed var(--light-gray);
    border-radius: var(--border-radius-lg);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.compare-slot.empty:hover {
    border-color: var(--primary-light);
    background: rgba(183, 110, 121, 0.05);
}

.compare-slot.filled {
    border-style: solid;
    border-color: var(--primary-light);
    background: var(--white);
    flex-direction: column;
    padding: 25px;
}

.slot-placeholder {
    text-align: center;
    color: var(--gray);
}

.plus-icon {
    display: block;
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.compare-slot .remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.compare-slot .remove-btn:hover {
    background: var(--primary-dark);
}

.compare-ring-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.compare-ring-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.compare-ring-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.compare-table-container {
    overflow-x: auto;
    margin-top: 30px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.compare-table th,
.compare-table td {
    padding: 18px 20px;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}

.compare-table th {
    background: var(--secondary);
    color: var(--white);
    font-weight: 500;
}

.compare-table td:first-child {
    background: var(--off-white);
    font-weight: 500;
    text-align: left;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

#clearCompare {
    margin-top: 20px;
}

/* ===== Guide Section ===== */
.guide-section {
    padding: 100px 0;
    background: var(--off-white);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.guide-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow-lg);
}

.guide-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.guide-card h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.guide-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== SEO Section ===== */
.seo-section {
    padding: 80px 0;
    background: var(--white);
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 25px;
    text-align: center;
}

.seo-content h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 35px;
    margin-bottom: 15px;
}

.seo-content p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 15px;
}

.seo-content strong {
    color: var(--text);
}

/* ===== Footer ===== */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.affiliate-disclosure {
    font-size: 0.8rem !important;
    font-style: italic;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--light-gray);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.modal-slots {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-slot-btn {
    padding: 15px 25px;
    background: var(--off-white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.modal-slot-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: rgba(183, 110, 121, 0.1);
}

.modal-slot-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        min-height: auto;
        padding-top: 100px;
    }

    .hero-subtitle {
        margin: 0 auto 35px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .ring-showcase {
        width: 300px;
        height: 300px;
    }

    .ring-display {
        font-size: 8rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: 0 10px 30px var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .products-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .view-toggle {
        margin-left: 0;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .compare-slots {
        grid-template-columns: 1fr;
    }

    .quiz-container {
        padding: 30px 20px;
    }

    .quiz-options {
        grid-template-columns: 1fr;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .product-actions {
        flex-direction: column;
    }
}
