/* === TAN Ashford === */
@font-face {
  font-family: "TAN Ashford";
  src: url("/fonts/ashford-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TAN Ashford";
  src: url("/fonts/ashford-bold-italic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* === Canva Sans === */
@font-face {
  font-family: "Canva Sans";
  src: url("/fonts/CanvaSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canva Sans";
  src: url("/fonts/CanvaSans-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Canva Sans";
  src: url("/fonts/CanvaSans-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canva Sans";
  src: url("/fonts/CanvaSans-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Canva Sans";
  src: url("/fonts/CanvaSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Canva Sans";
  src: url("/fonts/CanvaSans-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* === Apply globally === */
:root {
  --font-display: "TAN Ashford", Georgia, serif;
  --font-body: "Canva Sans", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

p, body {
  font-family: var(--font-body);
}

  button,
  .button,         /* common WP class */
  [type="button"],
  [type="submit"],
  [role="button"] {
    font-family: 'Schoolbell', cursive;
    font-weight: 400;   /* Schoolbell only has regular weight */
    letter-spacing: 0.5px; /* optional, improves readability */
  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f1eb;
    line-height: 1.6;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: rgba(245, 241, 235, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    color: #8B4513;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #D2691E;
}

.contact-btn {
    background: #8B4513;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #A0522D;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    padding-top: 100px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 20px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 40px;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb a {
    color: #8B4513;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #D2691E;
}

/* Filter Section */
.filter-section {
    margin-bottom: 60px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-title {
    font-size: 28px;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 30px;
}

.filter-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-dropdown {
    position: relative;
    min-width: 200px;
}

.dropdown-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #D2691E;
    border-radius: 8px;
    background: white;
    font-size: 16px;
    color: #666;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D2691E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.dropdown-select:focus {
    outline: none;
    border-color: #8B4513;
}

.filter-buttons {
    display: flex;
    gap: 15px;
}

.filter-btn {
    padding: 15px 30px;
    border: 2px solid #8B4513;
    background: #8B4513;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #A0522D;
    border-color: #A0522D;
    transform: translateY(-2px);
}

.reset-btn {
    padding: 15px 30px;
    border: 2px solid #D2691E;
    background: white;
    color: #D2691E;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #D2691E;
    color: white;
    transform: translateY(-2px);
}

/* Events Section */
.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.events-title {
    font-size: 32px;
    font-weight: 700;
    color: #8B4513;
}

.view-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
}

.view-label {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #D2691E;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-btn.active {
    border-color: #8B4513;
    background: #8B4513;
}

.view-btn.active svg {
    fill: white;
}

.view-btn svg {
    width: 20px;
    height: 20px;
    fill: #D2691E;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.event-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.2);
    border-color: #D2691E;
}

.event-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.event-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #8B4513;
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    min-width: 80px;
}

.event-date.tbc {
    background: #D2691E;
    padding: 20px 15px;
}

.event-date-day {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 5px;
}

.event-date-year {
    font-size: 14px;
    font-weight: 500;
}

.event-date-month {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.event-content {
    padding: 25px;
    position: relative;
}

.event-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.status-available {
    background: #e8f5e8;
    color: #2d5016;
}

.status-limited {
    background: #fff3cd;
    color: #856404;
}

.status-booked {
    background: #f8d7da;
    color: #721c24;
}

.event-title {
    font-size: 22px;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Hover Overlay */
.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.95), rgba(210, 105, 30, 0.95));
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.event-card:hover .event-overlay {
    opacity: 1;
    visibility: visible;
}

.overlay-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.overlay-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.overlay-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.overlay-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 400px;
}

.overlay-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.overlay-btn {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.overlay-btn-primary {
    background: white;
    color: #8B4513;
}

.overlay-btn-primary:hover {
    background: transparent;
    color: white;
}

.overlay-btn-secondary {
    background: transparent;
    color: white;
}

.overlay-btn-secondary:hover {
    background: white;
    color: #8B4513;
}

/* Mobile Styles */
@media (max-width: 992px) {
     .event-card:hover .event-overlay {
        opacity: 0;
        visibility: hidden;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-dropdown {
        min-width: 100%;
    }
    
    .filter-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-btn,
    .reset-btn {
        width: 100%;
    }
    
    .events-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-card {
        min-height: auto;
    }
}

/* ===== Workshop Registration (CTA form) ===== */
.event-register{
  max-width: 760px;
  margin: 60px auto 0;
}

.event-register .contact-form{
  background:#fff;
  border:2px solid #EADFD6;             /* brand tan */
  border-radius:16px;
  padding:28px;
  box-shadow:0 10px 24px rgba(33,29,26,.08);
}

.event-register .contact-form h3{
  font-family: var(--font-display, 'TAN Ashford', serif);
  font-size:26px;
  font-weight:800;
  color:var(--pp-brown, #694029);
  margin:0 0 18px;
}

.event-register .form-group{ 
  margin-bottom:18px; 
  text-align:left; 
}

.event-register .form-label{
  display:block;
  font-size:14px;
  font-weight:800;
  color:var(--pp-brown, #694029);
  margin:0 0 8px;
  text-transform:uppercase;
  letter-spacing:.6px;
}

/* Inputs / Select */
.event-register .form-input{
  width:100%;
  padding:14px 16px;
  border:2px solid var(--pp-orange, #EB9C54);
  border-radius:10px;
  font-size:16px;
  background:#fff;
  color:var(--pp-ink, #211D1A);
  transition:border-color .2s ease, box-shadow .2s ease;
}

.event-register .form-input:focus{
  outline:none;
  border-color:var(--pp-orange-dark, #DD7A20);
  box-shadow:0 0 0 3px rgba(221,122,32,.18);
}

.event-register input[type="number"].form-input{ max-width:140px; }

/* Pretty select arrow (same as filters) */
.event-register select.form-input{
  appearance:none;
  padding-right:44px;
  background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DD7A20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:18px;
}

/* Checkbox row */
.event-register .form-group .form-label a{ color:var(--pp-brown,#694029); }
.event-register .form-group .form-label a:hover{ color:var(--pp-orange-dark,#DD7A20); }
.event-register input[type="checkbox"]{
  width:18px; height:18px; margin-right:8px; vertical-align:-3px;
  accent-color: var(--pp-brown, #694029); /* modern browsers */
}

/* Submit button */
.event-register .submit-btn{
  background:var(--pp-brown,#694029);
  color:#fff; border:none;
  padding:14px 22px;
  border-radius:10px;
  font-size:16px; font-weight:800;
  text-transform:uppercase; letter-spacing:.6px;
  cursor:pointer; width:100%;
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.event-register .submit-btn:hover{
  background:var(--pp-orange-dark,#DD7A20);
  box-shadow:0 10px 20px rgba(221,122,32,.18);
  transform:translateY(-1px);
}

/* Success / error messages from handler (?registered / ?reg_error) */
.reg-msg{
  border-radius:10px; padding:10px 12px; margin-bottom:14px;
  font-weight:700;
}
.reg-msg.success{ background:rgba(235,156,84,.15); color:var(--pp-brown,#694029); border:1px solid rgba(221,122,32,.35); }
.reg-msg.error{ background:#fde8ea; color:#8a1c26; border:1px solid #f4b4bc; }

/* Mobile */
@media (max-width:600px){
  .event-register{ margin-top:40px; }
  .event-register .contact-form{ padding:22px; }
}
