/*
Theme Name: Doncaster Redesign
Description: High-fidelity WordPress theme for Doncaster Auction Centre — faithful to dac-ltd.com
Author: SmoothByte IT
Version: 2.0.0
Text Domain: doncaster-redesign
*/

/* ============================================================
   DESIGN TOKENS & RESET
   ============================================================ */

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

:root {
    --clr-red:         #8B0000;
    --clr-red-dark:    #6B0000;
    --clr-red-light:   #A01010;
    --clr-white:       #FFFFFF;
    --clr-off-white:   #F8F8F8;
    --clr-charcoal:    #1A1A1A;
    --clr-mid:         #555555;
    --clr-light:       #999999;
    --clr-border:      #E0E0E0;

    --font-display:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  16px;

    --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 20px rgba(0,0,0,0.12);

    --transition: 0.25s ease;
    --container:  1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--clr-white);
    color: var(--clr-charcoal);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 80px 0; }

.section--red {
    background: var(--clr-red);
    color: var(--clr-white);
}

.section--dark {
    background: var(--clr-charcoal);
    color: var(--clr-white);
}

.section--light {
    background: var(--clr-off-white);
}

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

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    font-weight: 400;
    color: var(--clr-charcoal);
}

.section--red h1, .section--red h2, .section--red h3,
.section--dark h1, .section--dark h2, .section--dark h3 {
    color: var(--clr-white);
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
}

.section-title--red { color: var(--clr-red); }

.lead {
    font-size: 16px;
    line-height: 1.8;
    color: var(--clr-mid);
    max-width: 600px;
}

.lead--light { color: rgba(255,255,255,0.8); }
.lead--center { margin: 0 auto; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-red {
    background: var(--clr-red);
    color: var(--clr-white);
    border-color: var(--clr-red);
}

.btn-red:hover {
    background: var(--clr-red-dark);
    border-color: var(--clr-red-dark);
}

.btn-white {
    background: var(--clr-white);
    color: var(--clr-red);
    border-color: var(--clr-white);
}

.btn-white:hover {
    background: transparent;
    color: var(--clr-white);
}

.btn-outline {
    background: transparent;
    color: var(--clr-red);
    border-color: var(--clr-red);
}

.btn-outline:hover {
    background: var(--clr-red);
    color: var(--clr-white);
}

.btn-outline--light {
    color: var(--clr-white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline--light:hover {
    background: var(--clr-white);
    color: var(--clr-red);
    border-color: var(--clr-white);
}

.btn-arrow::after {
    content: '›';
    font-size: 20px;
    line-height: 1;
}

/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
    background: var(--clr-red);
    position: relative;
    z-index: 1000;
}

/* Top nav row */
.header-nav-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.header-nav-row .nav-link {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 0;
    transition: var(--transition);
    text-decoration: none;
}

.header-nav-row .nav-link:hover,
.header-nav-row .nav-link.active {
    color: var(--clr-white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Logo area */
.header-logo-row {
    display: flex;
    justify-content: center;
    padding: 32px 0 40px;
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.site-logo img,
.custom-logo-link img,
.custom-logo-link .custom-logo {
    height: 80px;
    width: auto;
    display: block;
}

/* Text fallback logo */
.logo-box {
    border: 2px solid rgba(255,255,255,0.6);
    padding: 20px 36px;
    text-align: center;
    color: var(--clr-white);
}

.logo-box .logo-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 12px;
    line-height: 1.1;
}

.logo-box .logo-subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    position: absolute;
    right: 24px;
    top: 14px;
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--clr-white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--clr-red-dark);
    padding: 16px 24px;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav .nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--clr-white);
    padding: 12px 16px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.mobile-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.92);
    padding: 48px 64px;
    text-align: center;
    max-width: 520px;
}

.hero-overlay h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    color: var(--clr-charcoal);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-overlay p {
    font-size: 16px;
    color: var(--clr-mid);
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ============================================================
   BANNER STRIP (red call-out)
   ============================================================ */

.banner-strip {
    background: var(--clr-red);
    padding: 48px 0;
    text-align: center;
    color: var(--clr-white);
}

.banner-strip h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 300;
    color: var(--clr-white);
    margin-bottom: 8px;
}

.banner-strip p {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 20px;
}

.banner-strip .btn { margin: 0 8px; }

/* ============================================================
   OUR STORY
   ============================================================ */

.story-section {
    padding: 80px 0;
    text-align: center;
}

.story-section .story-heading {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 300;
    color: var(--clr-red);
    margin-bottom: 8px;
}

.story-section .story-subheading {
    font-family: var(--font-display);
    font-size: 18px;
    font-style: italic;
    color: var(--clr-red);
    margin-bottom: 24px;
}

.story-section .divider {
    width: 60px;
    height: 2px;
    background: var(--clr-red);
    margin: 0 auto 24px;
}

.story-section p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--clr-mid);
    line-height: 1.8;
    font-size: 15px;
}

/* ============================================================
   WHERE TO FIND US
   ============================================================ */

.find-us {
    background: var(--clr-red);
    color: var(--clr-white);
    padding: 80px 0;
}

.find-us h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    color: var(--clr-white);
    margin-bottom: 40px;
    text-align: center;
}

.find-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.find-us h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-white);
    margin-bottom: 16px;
}

.find-us p, .find-us a {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    text-decoration: none;
}

.find-us a:hover {
    text-decoration: underline;
}

.find-us-map {
    margin-top: 48px;
    border-radius: 0;
    overflow: hidden;
    height: 400px;
}

.find-us-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
    background: var(--clr-red);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    color: var(--clr-white);
    margin-bottom: 12px;
}

.page-hero .lead {
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}

.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--clr-white); }

/* ============================================================
   ABOUT / TEAM
   ============================================================ */

.team-member {
    text-align: center;
    margin-bottom: 48px;
}

.team-member-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--clr-red);
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 24px;
    margin-bottom: 4px;
}

.team-role {
    font-size: 14px;
    font-weight: 600;
    color: var(--clr-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.team-member p {
    max-width: 480px;
    margin: 0 auto;
    color: var(--clr-mid);
    line-height: 1.8;
    font-size: 15px;
}

.team-contact {
    margin-top: 16px;
}

.team-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--clr-red);
    font-weight: 500;
    font-size: 15px;
}

.team-contact a:hover { text-decoration: underline; }

/* ============================================================
   AUCTION ARCHIVE
   ============================================================ */

.auction-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.auction-card:hover {
    box-shadow: var(--shadow-md);
}

.auction-card-media {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--clr-off-white);
}

.auction-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auction-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--clr-red);
    color: var(--clr-white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auction-card-body {
    padding: 24px;
}

.auction-card-body h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.auction-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.auction-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--clr-mid);
}

.auction-meta-item .icon {
    width: 18px;
    text-align: center;
    color: var(--clr-red);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-form-wrap {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 40px;
}

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

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--clr-mid);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--clr-charcoal);
    background: var(--clr-white);
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--clr-red);
    box-shadow: 0 0 0 2px rgba(139,0,0,0.1);
}

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

/* ============================================================
   VIEWING BOX
   ============================================================ */

.viewing-box {
    background: var(--clr-red);
    border-radius: var(--radius-md);
    padding: 40px;
    color: var(--clr-white);
    text-align: center;
}

/* ============================================================
   PAGE CONTENT (generic pages like T&C, Privacy)
   ============================================================ */

.page-content h2 {
    font-size: 24px;
    margin: 40px 0 16px;
    color: var(--clr-red);
}

.page-content h3 {
    font-size: 20px;
    margin: 32px 0 12px;
}

.page-content p {
    color: var(--clr-mid);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 15px;
}

.page-content ul, .page-content ol {
    color: var(--clr-mid);
    margin: 0 0 16px 24px;
    line-height: 1.8;
    font-size: 15px;
}

.page-content li { margin-bottom: 6px; }

.page-content a {
    color: var(--clr-red);
    text-decoration: underline;
}

.page-content a:hover { color: var(--clr-red-dark); }

.page-content strong { color: var(--clr-charcoal); }

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
    background: var(--clr-charcoal);
    color: rgba(255,255,255,0.6);
    padding: 32px 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.footer-inner a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-inner a:hover { color: var(--clr-white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .header-nav-row { display: none; }
    .hamburger { display: flex; }

    .hero { min-height: 40vh; }
    .hero-overlay { padding: 32px 24px; margin: 0 16px; }

    .grid-2 { grid-template-columns: 1fr; gap: 32px; }
    .find-us-grid { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }

    .header-logo-row { padding: 24px 0 28px; }
    .logo-box .logo-title { font-size: 36px; letter-spacing: 8px; }
    .logo-box .logo-subtitle { font-size: 12px; letter-spacing: 4px; }

    .find-us-map { height: 300px; }
}

@media (max-width: 480px) {
    .hero-overlay h1 { font-size: 32px; }
    .btn { width: 100%; justify-content: center; }
}
