/* 
   Wrenfield & Co. - Brand Stylesheet
   Antique Cream (#F2E8DC), Deep Mahogany (#4A2C2A), Tarnished Brass (#9C7A4D), Auction Burgundy (#6B2737)
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --color-cream: #F2E8DC;
    --color-mahogany: #4A2C2A;
    --color-mahogany-dark: #2B1B1A;
    --color-brass: #9C7A4D;
    --color-brass-light: #BCA374;
    --color-burgundy: #6B2737;
    --color-burgundy-light: #8E364A;
    --color-text-light: #F2E8DC;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-brass: 1px solid var(--color-brass);
    --border-mahogany: 1px solid var(--color-mahogany);
}

/* Base Styles */
body {
    background-color: var(--color-cream);
    color: var(--color-mahogany);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .brand-font {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-mahogany);
}

p {
    font-weight: 300;
}

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

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

/* Utility Backgrounds & Borders */
.bg-cream { background-color: var(--color-cream) !important; }
.bg-mahogany { background-color: var(--color-mahogany) !important; color: var(--color-cream) !important; }
.bg-mahogany-dark { background-color: var(--color-mahogany-dark) !important; color: var(--color-cream) !important; }
.bg-burgundy { background-color: var(--color-burgundy) !important; color: var(--color-cream) !important; }

.text-mahogany { color: var(--color-mahogany) !important; }
.text-brass { color: var(--color-brass) !important; }
.text-burgundy { color: var(--color-burgundy) !important; }
.text-cream { color: var(--color-cream) !important; }

.border-brass { border: var(--border-brass) !important; }
.border-brass-bottom { border-bottom: 2px solid var(--color-brass) !important; }
.border-mahogany { border: var(--border-mahogany) !important; }

/* Custom Premium Navbar */
.navbar-wrenfield {
    background-color: var(--color-mahogany-dark);
    border-bottom: 3px solid var(--color-brass);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.navbar-wrenfield .navbar-brand {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-cream);
    letter-spacing: 0.03em;
}

.navbar-wrenfield .navbar-brand span {
    color: var(--color-brass);
    font-weight: 300;
    font-size: 0.85rem;
    display: block;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-top: -3px;
}

.navbar-wrenfield .nav-link {
    color: var(--color-cream);
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0 0.35rem;
    padding: 0.5rem 0;
    position: relative;
}

.navbar-wrenfield .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--color-brass);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.navbar-wrenfield .nav-link:hover,
.navbar-wrenfield .nav-link.active {
    color: var(--color-brass);
}

.navbar-wrenfield .nav-link:hover::after,
.navbar-wrenfield .nav-link.active::after {
    width: 80%;
}

.navbar-wrenfield .navbar-toggler {
    border-color: var(--color-brass);
    color: var(--color-cream);
}

.navbar-wrenfield .navbar-toggler-icon {
    filter: invert(1) sepia(50%) saturate(1000%) hue-rotate(5deg);
}

/* Premium Buttons */
.btn-wrenfield-burgundy {
    background-color: var(--color-burgundy);
    color: var(--color-cream);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--color-burgundy);
    padding: 0.75rem 2rem;
    border-radius: 0;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.btn-wrenfield-burgundy:hover {
    background-color: transparent;
    color: var(--color-burgundy);
    border-color: var(--color-burgundy);
}

.btn-wrenfield-brass {
    background-color: var(--color-brass);
    color: var(--color-cream);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--color-brass);
    padding: 0.75rem 2rem;
    border-radius: 0;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.btn-wrenfield-brass:hover {
    background-color: transparent;
    color: var(--color-brass);
    border-color: var(--color-brass);
}

.btn-wrenfield-outline {
    background-color: transparent;
    color: var(--color-mahogany);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--color-mahogany);
    padding: 0.75rem 2rem;
    border-radius: 0;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.btn-wrenfield-outline:hover {
    background-color: var(--color-mahogany);
    color: var(--color-cream);
}

.btn-wrenfield-outline-light {
    background-color: transparent;
    color: var(--color-cream);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--color-cream);
    padding: 0.75rem 2rem;
    border-radius: 0;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.btn-wrenfield-outline-light:hover {
    background-color: var(--color-cream);
    color: var(--color-mahogany);
}

/* Sections & Typography Enhancements */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}

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

.section-title.text-start::after {
    left: 0;
    transform: none;
}

.brass-divider {
    width: 60px;
    height: 1px;
    background-color: var(--color-brass);
    margin: 1.5rem auto;
}

/* Premium Card Styles */
.wrenfield-card {
    background-color: #FAF6F0;
    border: 1px solid rgba(74, 44, 42, 0.15);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(43, 27, 26, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wrenfield-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-brass);
    box-shadow: 0 12px 30px rgba(43, 27, 26, 0.15);
}

.wrenfield-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.wrenfield-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.wrenfield-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.wrenfield-card .card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-burgundy);
    color: var(--color-cream);
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
}

.wrenfield-card .card-badge.sale-badge {
    background-color: var(--color-brass);
}

.wrenfield-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wrenfield-card .card-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.wrenfield-card:hover .card-title {
    color: var(--color-burgundy);
}

/* Bidding Countdown Timer Style */
.countdown-box {
    display: flex;
    justify-content: space-around;
    background-color: var(--color-mahogany-dark);
    color: var(--color-cream);
    padding: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-top: 1px solid var(--color-brass);
}

.countdown-box span {
    color: var(--color-brass-light);
}

.lot-price-info {
    border-top: 1px solid rgba(74, 44, 42, 0.1);
    margin-top: auto;
    padding-top: 1rem;
}

/* Homepage Hero Parallax / Banner */
.hero-banner {
    position: relative;
    background: linear-gradient(rgba(43, 27, 26, 0.75), rgba(43, 27, 26, 0.75)), url('assets/img/hero.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: var(--color-cream);
    border-bottom: 4px solid var(--color-brass);
}

@media (max-width: 768px) {
    .hero-banner {
        background-attachment: scroll;
        min-height: 60vh;
    }
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-brass);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-desc {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Feature Highlights */
.feature-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.feature-box:hover {
    border: 1px solid var(--color-brass);
    background-color: rgba(156, 122, 77, 0.05);
}

.feature-icon-wrapper {
    font-size: 2.5rem;
    color: var(--color-brass);
    margin-bottom: 1.5rem;
}

/* Form Controls Customization */
.form-wrenfield {
    background-color: rgba(250, 246, 240, 0.7);
    border: 1px solid rgba(74, 44, 42, 0.25);
    border-radius: 0;
    padding: 0.75rem 1rem;
    color: var(--color-mahogany);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-wrenfield:focus {
    background-color: #FAF6F0;
    border-color: var(--color-burgundy);
    box-shadow: 0 0 0 0.25rem rgba(107, 39, 55, 0.15);
    outline: none;
    color: var(--color-mahogany);
}

.form-wrenfield-dark {
    background-color: rgba(43, 27, 26, 0.5);
    border: 1px solid var(--color-brass);
    border-radius: 0;
    padding: 0.75rem 1rem;
    color: var(--color-cream);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-wrenfield-dark:focus {
    background-color: var(--color-mahogany-dark);
    border-color: var(--color-brass-light);
    box-shadow: 0 0 0 0.25rem rgba(156, 122, 77, 0.25);
    outline: none;
    color: var(--color-cream);
}

label.form-label {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-mahogany);
    letter-spacing: 0.02em;
}

label.form-label-dark {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-cream);
    letter-spacing: 0.02em;
}

/* Interactive Appraisal Wizard */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgba(74, 44, 42, 0.15);
    z-index: 1;
}

.wizard-progress-bar {
    position: absolute;
    top: 15px;
    left: 0;
    height: 2px;
    background-color: var(--color-burgundy);
    z-index: 2;
    transition: var(--transition-smooth);
    width: 0%;
}

.wizard-step {
    width: 32px;
    height: 32px;
    background-color: var(--color-cream);
    border: 2px solid rgba(74, 44, 42, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 3;
    font-size: 0.85rem;
    color: var(--color-mahogany);
    transition: var(--transition-smooth);
}

.wizard-step.active {
    border-color: var(--color-burgundy);
    background-color: var(--color-burgundy);
    color: var(--color-cream);
}

.wizard-step.completed {
    border-color: var(--color-brass);
    background-color: var(--color-brass);
    color: var(--color-cream);
}

.wizard-pane {
    display: none;
}

.wizard-pane.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

/* Tables styling */
.wrenfield-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
    background-color: #FAF6F0;
    border: 1px solid rgba(74, 44, 42, 0.15);
}

.wrenfield-table th {
    background-color: var(--color-mahogany);
    color: var(--color-cream);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 2px solid var(--color-brass);
}

.wrenfield-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(74, 44, 42, 0.1);
    color: var(--color-mahogany);
}

.wrenfield-table tr:hover td {
    background-color: rgba(156, 122, 77, 0.05);
}

/* Beautiful Footers */
.wrenfield-footer {
    background-color: var(--color-mahogany-dark);
    color: var(--color-cream);
    padding: 5rem 0 3rem;
    border-top: 5px solid var(--color-brass);
}

.wrenfield-footer h5 {
    color: var(--color-brass);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
}

.wrenfield-footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.wrenfield-footer ul {
    padding-left: 0;
    list-style: none;
}

.wrenfield-footer ul li {
    margin-bottom: 0.75rem;
}

.wrenfield-footer ul li a {
    color: var(--color-cream);
    opacity: 0.85;
    font-size: 0.95rem;
}

.wrenfield-footer ul li a:hover {
    color: var(--color-brass-light);
    opacity: 1;
    padding-left: 5px;
}

.bottom-bar {
    background-color: #1a1010;
    color: rgba(242, 232, 220, 0.6);
    font-size: 0.85rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(156, 122, 77, 0.15);
}

/* Bidding Modals and Bid Updates */
.bid-flash {
    animation: flashGreen 1.2s ease-out;
}

.bid-modal-card {
    background-color: var(--color-cream);
    border: 3px double var(--color-brass);
}

.lot-category-pill {
    background-color: rgba(74, 44, 42, 0.1);
    color: var(--color-mahogany);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 50px;
    margin-right: 0.5rem;
    display: inline-block;
}

.catalog-search-wrapper {
    background-color: #FAF6F0;
    border: 1px solid rgba(74, 44, 42, 0.15);
    padding: 1.5rem;
}

/* Timeline/Process layout for Sell With Us */
.process-timeline {
    position: relative;
    padding-left: 3rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-brass);
}

.process-node {
    position: relative;
    margin-bottom: 3.5rem;
}

.process-node::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--color-burgundy);
    border: 3px solid var(--color-cream);
    box-shadow: 0 0 0 3px var(--color-brass);
    z-index: 5;
}

.process-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(156, 122, 77, 0.25);
    position: absolute;
    top: -20px;
    right: 0;
    line-height: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes flashGreen {
    0% { background-color: rgba(40, 167, 69, 0.3); }
    100% { background-color: transparent; }
}
