/*
Theme Name: McDaniel Art
Theme URI: https://mcdanielart.org
Description: Custom theme for O. Scott McDaniel Art
Version: 1.0.5
Author: Jeff
Text Domain: mcdanielart
*/

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
  --color-primary:   #2C6FC0;
  --color-accent:    #467FF7;
  --color-dark:      #1C244B;
  --color-navy:      #324A6D;
  --color-secondary: #f0f4fa;
  --color-text:      #2d3748;
  --color-white:     #FFFFFF;
  --color-light:     #F3F5F8;
  --color-border:    #e2e8f0;

  --font-main: 'Poppins', sans-serif;

  --header-h: 100px;
  --section-px: 8%;
  --max-w: 1200px;
  --radius-btn: 100px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
  padding-top: var(--header-h);
}

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

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }

ul { list-style: none; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--color-dark);
  font-weight: 600;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: 1rem; font-weight: 400; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =========================================================
   UTILITY
   ========================================================= */
.container {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-px);
  padding-right: var(--section-px);
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
}
.btn:hover {
  background: transparent;
  color: var(--color-primary);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-white {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-white:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.text-center { text-align: center; }
.section-label {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

/* =========================================================
   HEADER / NAV  — desktop (>1100px)
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--color-white);
  box-shadow: 0 1px 8px rgba(28,36,75,0.08);
  z-index: 9999;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px);
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.site-logo-wrap img { height: 70px; width: auto; object-fit: contain; }
.site-logo-wrap .site-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark);
}
.site-logo-wrap a { display: block; }

/* Desktop nav wraps to the right of the logo */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

/* WordPress nav menu */
.primary-menu { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.primary-menu li { position: relative; }
.primary-menu a {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-dark);
  text-transform: capitalize;
  white-space: nowrap;
  transition: color var(--transition);
  padding: 5px 0;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a { color: var(--color-navy); }

/* Sub-menus */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #F3F5F8;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 0;
  display: none;
  z-index: 9998;
}
.primary-menu li:hover > .sub-menu { display: block; }
.primary-menu .sub-menu a { display: block; padding: 10px 16px; font-size: 14px; }

.nav-contact-btn { white-space: nowrap; padding: 12px 28px; font-size: 13px; }

/* Hamburger — hidden on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  margin-left: auto; /* push to far right when shown */
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* =========================================================
   HERO SECTIONS
   ========================================================= */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 40, 0.52);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--section-px);
  max-width: 860px;
  margin: 0 auto;
}
.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  text-shadow: 0 0 20px rgba(0,0,0,0.6);
}
.hero-content p, .hero-content .subtitle {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 680px;
  margin: 0 auto 2rem;
  font-weight: 400;
  text-shadow: 0 0 12px rgba(0,0,0,0.5);
}
.hero-sm {
  min-height: 40vh;
}

/* =========================================================
   HERO SPLIT (two-column home hero)
   ========================================================= */
.hero-split {
  align-items: stretch;
  justify-content: flex-start;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px var(--section-px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-col-left h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  text-shadow: 0 0 20px rgba(0,0,0,0.6);
}
.hero-col-left .subtitle {
  color: rgba(255,255,255,0.88);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.7;
  text-shadow: 0 0 12px rgba(0,0,0,0.5);
}

/* Events card */
.events-card {
  background: rgba(12, 22, 52, 0.85);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 36px 32px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.events-card-title {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.event-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.event-date-badge {
  flex: 0 0 52px;
  text-align: center;
  background: var(--color-primary);
  border-radius: 8px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.event-date-badge .event-month {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.event-date-badge .event-day {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
}
.event-date-badge .event-year {
  font-size: 9px;
  color: rgba(255,255,255,0.7);
}
.event-meta h3 {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}
.event-meta p {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  margin-bottom: 3px;
  line-height: 1.5;
}
.event-meta p:last-child { margin-bottom: 0; }
.event-description p {
  color: rgba(255,255,255,0.78);
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.event-description p:last-child { margin-bottom: 0; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding: 80px var(--section-px);
}
.section-alt {
  background: var(--color-secondary);
}
.section-dark {
  background: var(--color-dark);
}
.section-dark h2, .section-dark h3,
.section-dark p, .section-dark a { color: var(--color-white); }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 600px; margin: 0 auto; color: var(--color-navy); }

/* Two-column about layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.about-text h2 { margin-bottom: 0.5rem; }
.about-text .subtitle { color: var(--color-navy); margin-bottom: 1.5rem; font-size: 1rem; }
.about-text p { color: var(--color-text); margin-bottom: 1.25rem; }
.about-text .btn { margin-top: 1rem; }
.about-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 480px;
}

/* =========================================================
   GALLERY GRID
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto 40px;
}

/* Card: image + caption (portfolio page) */
.gallery-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-light);
}
.gallery-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dde3ec;
}
.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.gallery-card:hover .gallery-img-wrap img { transform: scale(1.05); }
.gallery-card .gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,36,75,0.35);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-card:hover .gallery-item-overlay { opacity: 1; }

/* Caption below image */
.gallery-caption {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-navy);
  text-align: center;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  background: var(--color-light);
}

/* gallery-item: home page gallery (no caption) */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: #dde3ec;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,36,75,0.35);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay svg { width: 40px; height: 40px; fill: white; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-inner img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  color: white;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  opacity: 0.8;
  transition: opacity var(--transition);
  z-index: 100000;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 28px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background var(--transition);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-caption {
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  margin-top: 12px;
}

/* =========================================================
   FEATURED IN
   ========================================================= */
.featured-in { background: var(--color-secondary); }
.featured-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 32px;
}
.featured-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 2px;
}
.featured-links a:hover { color: var(--color-primary); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 32px;
}
.testimonial-card blockquote {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
}
.testimonial-author .name {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-dark);
}

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section {
  background: var(--color-secondary);
  padding: 70px var(--section-px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 100%;
}
.cta-text h2 { margin-bottom: 1rem; }
.cta-text p { color: var(--color-navy); margin-bottom: 2rem; }
.cta-image img { width: 100%; border-radius: 8px; max-height: 380px; object-fit: cover; }

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px var(--section-px);
}
.form-notice {
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 15px;
}
.form-notice.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-notice.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--color-dark); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(44,111,192,0.12);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group .required { color: #e53e3e; }
.contact-form .btn { align-self: flex-start; }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--section-px);
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
.about-page-text h6 {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.about-page-image img { width: 100%; border-radius: 8px; }

/* =========================================================
   PORTFOLIO PAGE HERO
   ========================================================= */
.portfolio-hero { min-height: 35vh; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 50px var(--section-px) 30px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-brand .site-name-footer {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  display: block;
  margin-bottom: 10px;
}
.footer-brand p { font-size: 14px; line-height: 1.6; }

.footer-nav h4 { color: var(--color-white); font-size: 14px; margin-bottom: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-nav a:hover { color: var(--color-white); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* =========================================================
   GENERIC PAGE
   ========================================================= */
.page-hero-sm {
  background: var(--color-dark);
  padding: 60px var(--section-px);
  text-align: center;
}
.page-hero-sm h1 { color: var(--color-white); }

.page-content-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px var(--section-px);
}
.page-content-wrap .wp-block-image,
.page-content-wrap img { margin: 24px 0; border-radius: 6px; }

/* WooCommerce basic support */
.woocommerce-page .page-content-wrap { max-width: var(--max-w); }

/* =========================================================
   AIRTABLE COLLECTION GRID
   ========================================================= */
.at-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.at-card {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.at-card:hover {
  box-shadow: 0 6px 24px rgba(28,36,75,0.13);
  transform: translateY(-2px);
}

.at-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dde3ec;
}
.at-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.at-card:hover .at-img-wrap img { transform: scale(1.05); }

.at-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #a0aec0;
}
.at-no-img svg { width: 36px; height: 36px; }
.at-no-img p { font-size: 12px; margin: 0; }

.at-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,36,75,0.5);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.at-overlay span {
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.7);
  padding: 7px 18px;
  border-radius: 100px;
}
.at-card:hover .at-overlay { opacity: 1; }

.at-caption {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-navy);
  text-align: center;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   AIRTABLE DETAIL MODAL
   ========================================================= */
.at-modal {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.at-modal.active { display: flex; }

.at-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.at-modal-inner {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  border-radius: 12px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.at-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-navy);
  opacity: 0.6;
  transition: opacity var(--transition);
  z-index: 2;
}
.at-modal-close:hover { opacity: 1; }

.at-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.at-modal-img-wrap {
  position: relative;
  background: #dde3ec;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.at-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.at-modal-no-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #a0aec0;
  padding: 40px;
}
.at-modal-no-img svg { width: 48px; height: 48px; }
.at-modal-no-img p { font-size: 14px; margin: 0; }

.at-modal-details {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.at-modal-details h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--color-dark);
  line-height: 1.3;
  padding-right: 30px; /* clear the close button */
}

.at-detail-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.at-detail-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.at-detail-row dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-navy);
  min-width: 72px;
  flex-shrink: 0;
}
.at-detail-row dd {
  font-size: 15px;
  color: var(--color-text);
}

/* =========================================================
   IMAGE WATERMARK (lightbox & painting modal)
   ========================================================= */
.lightbox-img-wrap {
  position: relative;
  display: inline-block;
}

.mda-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='110'%3E%3Ctext transform='rotate(-25,110,55)' x='10' y='74' font-family='Arial,sans-serif' font-size='13' font-weight='bold' fill='white' opacity='0.55' letter-spacing='1'%3E%C2%A9 mcdanielart.org%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 110px;
}

/* =========================================================
   RESPONSIVE — hamburger kicks in at 1100px
   ========================================================= */
@media (max-width: 1100px) {
  :root { --section-px: 5%; }

  .menu-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--section-px) 28px;
    gap: 0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9998;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .primary-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    flex-wrap: wrap;
  }
  .primary-menu li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  .primary-menu a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    white-space: normal;
  }
  .primary-menu .sub-menu {
    position: static;
    border: none;
    padding: 0 0 8px;
    box-shadow: none;
    background: transparent;
    display: block;
  }
  .primary-menu .sub-menu a { padding-left: 16px; font-size: 14px; }

  .nav-contact-btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    padding: 14px 28px;
    font-size: 15px;
  }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .at-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-section { grid-template-columns: 1fr; gap: 32px; }
  .about-page-content { grid-template-columns: 1fr; }
  .about-page-image { order: -1; }
  .about-page-image img { max-height: 320px; object-fit: cover; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 80px var(--section-px); }
  .hero-col-left { text-align: center; }
  .hero-col-left .subtitle { margin-left: auto; margin-right: auto; }
}

/* Tablet / mobile */
@media (max-width: 768px) {
  :root { --header-h: 70px; }

  body { padding-top: var(--header-h); }

  .hero { min-height: 75vh; }
  .hero-sm { min-height: 30vh; }
  .hero-inner { padding: 60px var(--section-px); gap: 32px; }
  .events-card { padding: 28px 22px; }

  .section { padding: 50px var(--section-px); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .at-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .at-modal-body { grid-template-columns: 1fr; }
  .at-modal-img-wrap { border-radius: 12px 12px 0 0; min-height: 240px; }
  .at-modal-details { padding: 28px 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .at-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
}
