/* 
   Prestige Crest Gifts - Premium Corporate Gifting Style
   Main Stylesheet: Global Design System & Components
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-deep: #070a16;
    --bg-card: #0f152b;
    --bg-card-hover: #161e3d;
    --bg-header: rgba(7, 10, 22, 0.85);
    
    --gold: #d4b26f;
    --gold-hover: #c09e5c;
    --gold-light: #f5e4c3;
    --gold-glow: rgba(212, 178, 111, 0.25);
    
    --text-light: #f5f7fa;
    --text-muted: #8e9bb0;
    --text-dark: #0f152b;
    
    --border-color: rgba(212, 178, 111, 0.15);
    --border-hover: rgba(212, 178, 111, 0.35);
    --glass-bg: rgba(15, 21, 43, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Shadow */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-gold: 0 10px 30px -10px rgba(212, 178, 111, 0.3);

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    background-color: var(--bg-deep);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

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

ul {
    list-style: none;
}

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

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-light);
}

.gold-gradient-text {
    background: linear-gradient(135deg, var(--text-light) 10%, var(--gold) 60%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Header & Navigation */
header {
    background-color: #080c1e; /* Solid luxury deep dark background */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--gold); /* Distinct premium gold bottom border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 1px 0px rgba(212, 178, 111, 0.1);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 6px 0;
    background-color: #050712; /* Slightly darker solid background when scrolled */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    transition: var(--transition-smooth);
}

header.scrolled .nav-container {
    height: 54px;
}

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

.logo-crest {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.5;
    transition: var(--transition-smooth);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    line-height: 1.2;
}

.logo-tag {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

.nav-links {
    display: flex;
    gap: 18px;
    flex-wrap: nowrap;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-light);
}

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

/* Arrow indicator styling */
.nav-arrow {
    display: inline-block;
    font-size: 0.65rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.nav-links li:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown list container style */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background-color: #080c1e;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 178, 111, 0.15);
    border-top: 2px solid var(--gold);
    padding: 15px 0;
    min-width: 230px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                visibility 0.35s ease;
    z-index: 1002;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 178, 111, 0.05);
}

.dropdown-menu li {
    width: 100%;
    position: relative;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 11px 24px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.dropdown-menu li a::after {
    display: none; /* Hide standard underline */
}

.dropdown-menu li a:hover {
    color: var(--gold-light);
    background-color: rgba(212, 178, 111, 0.08);
    padding-left: 28px;
}

/* Trigger display on hover for desktop */
@media (min-width: 1025px) {
    .nav-links li:hover .dropdown-menu,
    .nav-links li:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mega menu structure */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--gold);
    min-width: 540px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1002;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 178, 111, 0.05);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 20px;
    padding: 20px;
}

.mega-menu-list {
    display: flex;
    flex-direction: column;
}

.mega-menu-list li {
    width: 100%;
}

.mega-menu-list li a {
    display: block;
    padding: 8px 15px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.mega-menu-list li a::after {
    display: none;
}

.mega-menu-list li a:hover {
    color: var(--gold-light);
    background-color: rgba(212, 178, 111, 0.05);
    padding-left: 20px;
}

.mega-menu-image-container {
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 180px;
}

.mega-menu-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.mega-menu-image-container:hover img {
    transform: scale(1.05);
}

.mega-menu-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(7, 10, 22, 0.95));
    padding: 12px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--gold-light);
    text-transform: uppercase;
    text-align: center;
}

.nav-cta {
    position: relative;
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition-smooth);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--text-dark);
    border: 1px solid var(--gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-light);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: var(--shadow-gold);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
}

/* Custom Gifting Floating Elements */
.floating-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.widget-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.widget-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

.widget-quote-cart {
    background-color: var(--gold);
    color: var(--text-dark);
    position: relative;
    display: none; /* Shown dynamically in JS */
}

.widget-quote-cart:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--shadow-gold);
    background-color: var(--gold-hover);
}

.quote-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e63946;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-deep);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 10, 22, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    transform: translateY(30px);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--gold);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background-color: rgba(7, 10, 22, 0.6);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 178, 111, 0.1);
}

textarea.form-control {
    resize: none;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Footer styling */
footer {
    background-color: #04060e;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
    margin-top: auto;
}

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

.footer-logo-desc p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 20px;
    margin-bottom: 25px;
    line-height: 1.7;
    font-weight: 300;
}

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

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    color: var(--text-dark);
    background-color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.footer-column-title {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: var(--gold);
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 5px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.footer-contact-info svg {
    width: 18px;
    height: 18px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form .form-control {
    border-right: none;
}

.newsletter-form .btn {
    padding: 0 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

/* Toast Messages */
.toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    pointer-events: none;
}

.toast {
    background-color: var(--bg-card);
    border-left: 4px solid var(--gold);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(-20px);
    transition: var(--transition-smooth);
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success-icon {
    color: var(--gold);
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.toast-msg {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
