/* ===== TX Artist – Design System (refined) ===== */

/* ---- Tokens ---- */
/*:root{
  --txa-bg:#f6efe7;        
  --txa-surface:#fef8ec;   
  --txa-ink:#0c1b1a;       
  --txa-ink-dim:#4b4b4b;    
  --txa-accent:#d96b3b;     
  --txa-accent-dark:#ba552b;
  --txa-accent-2:#123a63;  
  --txa-shadow:0 10px 30px rgba(0,0,0,.08);
}*/
:root{
  --txa-bg:#FAF7F1;          /* warm parchment */
  --txa-surface:#f8f9fa;
  --txa-ink:#0F1414;
  --txa-ink-dim:#566066;
  --txa-accent:#E04E39;      /* Indian paintbrush (primary CTA) */
  --txa-accent-dark:#BD3F2E;
  --txa-accent-2:#2D68B2;    /* bluebonnet (links/active) */
  --txa-shadow:0 10px 30px rgba(0,0,0,.08);
	--txa-wave-overlap: 36px; 
}

/* hero */
/* hero */
.txa-hero{ position:relative; overflow:visible; }
.txa-hero-img{ width:100%; height:clamp(380px,55vh,720px); object-fit:cover; display:block; }

/* divider */
.txa-divider{ line-height:0; }
.txa-divider svg{ display:block; width:100%; height:clamp(90px,12vw,180px); }

/* put the divider on top of the hero and push it down */
.txa-divider--over-hero{
      position: absolute;
    left: 0;
    right: 0;
    bottom: calc(0 * var(--txa-wave-overlap));
    z-index: 3;
    pointer-events: none;
    background: transparent;
	transform: translateY(18%);
}
/* Use your accent color if you're setting --txa-accent elsewhere */
#contact .btn-primary { background: var(--txa-accent, #0d6efd); border-color: var(--txa-accent, #0d6efd); }
#contact .btn-primary:hover { filter: brightness(.95); }
#contact .fs-4 { line-height: 1.6; }

/* shadow on the curve ONLY (not on the whole svg) */
.txa-wave-front{
  filter: drop-shadow(0 -6px 12px rgba(0,0,0,.12));
}

/* ensure the section below matches the fill color exactly */
.txa-section.alt{ background:var(--txa-bg); position:relative; z-index:1; }

body{ background:var(--txa-bg); color:var(--txa-ink); }
.txa h1,.txa .display-1,.txa .display-2,.txa .display-3,.txa h2,.txa h3{ letter-spacing:-.02em; }
.txa .display-4,.txa h1{ font-weight:700; }
.txa .lead{ color:rgba(12,27,26,.85); }

/* Top nav skin (utility) */
.bg-tan{ background-color:var(--txa-surface); }

/* ------------------------------------
   HEADER (Topbar)
   ------------------------------------ */
.txa-topbar{
  box-shadow:0 1px 0 rgba(0,0,0,.06);
  background:var(--txa-surface);
}
.txa-topbar .container{ gap:1rem; } /* small, consistent spacing between regions */

/* Brand */
.txa-topbar .navbar-brand img.custom-logo,
.txa-topbar .navbar-brand img{ height:44px; max-height:44px; width:auto; }

/* Nav links */
.navbar-nav .nav-link{
  color:var(--txa-ink);
  font-weight:500;
  padding:.75rem .6rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus{ color:var(--txa-accent); }

/* Active state (handles both .active and WP current classes) */
.navbar-nav .nav-link.active,
.navbar-nav .current-menu-item > .nav-link,
.navbar-nav .current_page_item > .nav-link{
  color:var(--txa-accent);
  position:relative;
}
.navbar-nav .nav-link.active::after,
.navbar-nav .current-menu-item > .nav-link::after,
.navbar-nav .current_page_item > .nav-link::after{
  content:"";
  position:absolute; left:.4rem; right:.4rem; bottom:.35rem;
  height:2px; background:currentColor; border-radius:2px;
}

/* Dropdown menu look (primary nav) */
.navbar .dropdown-menu{
  border-radius:.75rem;
  box-shadow:0 10px 22px rgba(0,0,0,.08);
  padding:.5rem;
  border:1px solid rgba(0,0,0,.06);
}
.dropdown-menu .dropdown-item{ white-space:nowrap; }

/* Desktop: allow hover to open (click still works) */
@media (min-width:992px){
  .navbar .dropdown:hover > .dropdown-menu{ display:block; margin-top:0; }
}

/* Toggler */
.navbar-toggler{ border:0; }
.navbar-toggler-icon{
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(31,31,31,.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Header CTA (if used) */
.txa-cta{
  background:var(--txa-accent);
  color:#fff !important;
  border-radius:999px;
  padding:.55rem 1rem;
  font-weight:600;
  line-height:1;
  display:inline-flex; align-items:center; justify-content:center;
  white-space:nowrap; /* prevent “Shop Originals” from stacking */
  box-shadow:var(--txa-shadow);
}
.txa-cta:hover{ filter:brightness(.95); color:#fff !important; }

/* ------------------------------------
   SEARCH (header pill)
   ------------------------------------ */
.txa-search{ min-width:320px; max-width:720px; width:100%; } /* larger by default */
.txa-search-form{
  position:relative; display:flex; align-items:center;
  background:#f3f4f6; border-radius:999px;
  padding:.6rem .85rem .6rem 2.6rem; /* taller control */
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.txa-search-input{
  flex:1 1 auto; min-width:0;
  border:0; background:transparent; outline:none; padding:0;
  color:var(--txa-ink);
  font-size:1.05rem;
}
.txa-search-submit{
  position:absolute; left:.8rem; top:50%; transform:translateY(-50%);
  border:0; background:transparent; color:var(--txa-ink-dim);
}
.txa-search-submit svg{ width:20px; height:20px; opacity:.8; }
.txa-search-placeholder{
  position:absolute; left:2.6rem; right:.85rem;
  pointer-events:none; color:var(--txa-ink-dim);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  display:flex; gap:.35rem; align-items:center;
}
/* Hide helper when focusing or once user types.
   Use ~ (general sibling) because the submit button sits between input and helper. */
.txa-search-input:focus ~ .txa-search-placeholder,
.txa-search-input:not(:placeholder-shown) ~ .txa-search-placeholder{ display:none; }
/* Rotating terms */
.txa-rotating{ display:inline-block; height:1.3em; overflow:hidden; }
.txa-rotating b{ display:block; line-height:1.3; animation:txaRotate 8s linear infinite; }
@keyframes txaRotate{
  0%,16%{ transform:translateY(0%); }
  20%,36%{ transform:translateY(-100%); }
  40%,56%{ transform:translateY(-200%); }
  60%,76%{ transform:translateY(-300%); }
  80%,96%{ transform:translateY(-400%); }
  100%{ transform:translateY(-500%); }
}

/* Header actions */
.txa-cart-count{ font-size:.65rem; padding:.25rem .4rem; }

/* Respect admin bar when header is sticky */
@media (min-width:992px){
  body.admin-bar header.sticky-top{ top:32px; }
}

/* ------------------------------------
   HERO (image element drives height)
   ------------------------------------ */
.txa-hero{ position:relative; color:#fff; }
.txa-hero-media{ position:relative; }
/* Keep auto-height for other pages, not the home hero */
.page:not(.home) .txa-hero-img{ width:100%; height:auto; display:block; }

/* Global veil: soft top fade */
.txa-hero-veil{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.12) 35%, rgba(0,0,0,.06) 55%, rgba(0,0,0,0) 85%);
}

/* Content overlay */
.txa-hero-content{
  position:absolute; inset:0; z-index:3;
  display:flex; align-items:center; justify-content:center;
  text-align:center; padding:clamp(48px, 8vh, 120px) 0;
}
.txa-hero h1{ text-shadow:0 2px 18px rgba(0,0,0,.35); }
.txa-hero .lead{ color:rgba(255,255,255,.92); text-shadow:0 1px 12px rgba(0,0,0,.25); }

/* Local scrim for readability */
.txa-hero-content::before{
  content:""; position:absolute; z-index:-1; pointer-events:none;
  left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(1100px, 92vw);
  height:clamp(260px, 36vh, 420px);
  background:radial-gradient(ellipse at center, rgba(0,0,0,.45) 0%, rgba(0,0,0,.24) 55%, rgba(0,0,0,0) 100%);
  border-radius:40% / 30%;
  filter:blur(.2px);
}

/* Divider after hero */
/*.txa-divider{ position:relative; height:110px; margin-top:-56px; pointer-events:none; z-index:0; }
.txa-divider svg{ width:100%; height:100%; display:block; }
*/
/* Optional brush blobs off */
.txa-blob{ display:none; }

/* ------------------------------------
   Sections / cards / gallery thumbs
   ------------------------------------ */
.txa-section{ padding:4.5rem 0; background:var(); }

.txa-card{ border:0; border-radius:1rem; overflow:hidden; box-shadow:var(--txa-shadow); }
.txa-card .ratio{ background:#f2f2f2; }
.txa-card .card-body{ padding:1rem 1.25rem; }
/* Card wrapper */
.txa-card { background:#fff; }

/* Sold badge */

/* Optional: dampen sold thumbnails a hair */
.txa-card.sold img{
  filter: grayscale(12%) saturate(.9) opacity(.92);
}

/* Title/price under image */
.txa-card-meta .h6 { font-weight:600; }
.txa-card-meta .link-dark:hover { text-decoration: underline; }
.txa-gallery .txa-thumb{ display:block; overflow:hidden; border-radius:.75rem; box-shadow:var(--txa-shadow); }
.txa-gallery .txa-thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.txa-gallery .txa-thumb:hover img{ transform:scale(1.04); }

/* A11y / reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
}

/* ------------------------------------
   Categories bar / mega dropdown (optional second row)
   ------------------------------------ */
.txa-categories{ position:relative; z-index:100; }
.txa-cats{ gap:1.25rem; }
.txa-cats>li{ list-style:none; }
.txa-cats>li>a{
  display:block; padding:14px 0; color:#1e1e1e; text-decoration:none; font-weight:600;
}
.txa-cats>li.menu-item-has-children>a::after{
  content:""; display:inline-block; width:6px; height:6px; margin-left:6px;
  border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); vertical-align:2px;
}
.txa-cats>li.menu-item-has-children{ position:static; }
.txa-cats>li:hover>.sub-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.txa-cats .sub-menu{
  position:absolute; left:0; right:0; top:100%;
  background:#fff; box-shadow:0 12px 30px rgba(0,0,0,.12);
  padding:24px 0; opacity:0; visibility:hidden; transform:translateY(8px);
  transition:all .18s ease;
}
.txa-cats .sub-menu>li{
  list-style:none; width:20%; min-width:200px; display:inline-block; vertical-align:top; padding:0 18px;
}
.txa-cats .sub-menu a{
  display:block; padding:6px 0; color:#1e1e1e; text-decoration:none; font-weight:500;
}
.txa-cats .sub-menu .menu-item-has-children>a{
  font-weight:700; margin-bottom:6px; pointer-events:none; color:#0c1b1a;
}

/* Mobile behavior for mega menu */
@media (max-width:991.98px){
  .txa-cats .sub-menu{ position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; padding:0 0 10px; }
  .txa-cats>li>a{ padding:10px 0; }
  .txa-cats .sub-menu>li{ width:100%; min-width:0; display:block; padding:8px 0; border-top:1px solid #eee; }
}

/* ------------------------------------
   Buttons (Bootstrap 5 variable overrides)
   ------------------------------------ */
/* Primary purchase button (bold, premium) */
.btn-purchase{
  --txa-primary:#1F4F9E;        /* deep blue; tweak if you like */
  --txa-primary-ink:#fff;
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem;
  background:var(--txa-primary);
  color:var(--txa-primary-ink);
  border:1px solid var(--txa-primary);
  padding:.7rem 1rem;
  border-radius:.75rem;
  font-weight:700;
  letter-spacing:.01em;
  box-shadow:0 6px 14px rgba(31,79,158,.18);
}
.btn-purchase:hover,
.btn-purchase:focus{
  background:#163B7A;           /* darker hover */
  border-color:#163B7A;
  color:#fff;
}

/* Secondary (filled) enquire button — same treatment, neutral color */
.btn-enquire{
  --txa-secondary:#2B2B2B;      /* neutral dark */
  --txa-secondary-ink:#fff;
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem;
  background:var(--txa-secondary);
  color:var(--txa-secondary-ink);
  border:1px solid var(--txa-secondary);
  padding:.7rem 1rem;
  border-radius:.75rem;
  font-weight:700;
  letter-spacing:.01em;
  box-shadow:0 6px 14px rgba(0,0,0,.18);
}
.btn-enquire:hover,
.btn-enquire:focus{
  background:#1C1C1C;           /* darker hover */
  border-color:#1C1C1C;
  color:#fff;
}

.btn-purchase:focus-visible,
.btn-enquire:focus-visible{
  outline:2px solid #000; outline-offset:2px;
}

/* Primary brand button */
.btn.txa-btn-primary{
  --bs-btn-color:#fff !important;
  --bs-btn-bg:var(--txa-accent) !important;
  --bs-btn-border-color:var(--txa-accent) !important;
  --bs-btn-hover-bg:var(--txa-accent-dark) !important;
  --bs-btn-hover-border-color:var(--txa-accent-dark) !important;
  --bs-btn-active-bg:var(--txa-accent-dark) !important;
  --bs-btn-active-border-color:var(--txa-accent-dark) !important;
  box-shadow:var(--txa-shadow);
}
/* Fallback (in case another file hard-sets background-color) */
.btn.txa-btn-primary{
  color:#fff !important;
  background-color:var(--txa-accent) !important;
  border-color:var(--txa-accent) !important;
}
.btn.txa-btn-primary:hover,
.btn.txa-btn-primary:focus{
  background-color:var(--txa-accent-dark) !important;
  border-color:var(--txa-accent-dark) !important;
}

/* Ghost button (white outline over image) */
.btn.txa-btn-ghost{
  --bs-btn-color:#fff !important;
  --bs-btn-bg:transparent !important;
  --bs-btn-border-color:rgba(255,255,255,.85) !important;
  --bs-btn-hover-bg:rgba(255,255,255,.15) !important;
  --bs-btn-hover-border-color:#fff !important;
}
.btn.txa-btn-ghost{
  color:#fff !important;
  background-color:transparent !important;
  border-color:rgba(255,255,255,.85) !important;
}
.btn.txa-btn-ghost:hover,
.btn.txa-btn-ghost:focus{
  background-color:rgba(255,255,255,.15) !important;
  border-color:#fff !important;
}

/* ------------------------------------
   Collections tiles
   ------------------------------------ */
/* ------------------------------------
   Collections tiles
   ------------------------------------ */
.txa-collection{
  position: relative;         /* anchor for absolute children */
  display: block;
  overflow: hidden;
  border-radius: .75rem;
  box-shadow: var(--txa-shadow);
  color: #fff;
}

/* Bootstrap ratio helper uses ::before—make sure it's not painting anything */
.txa-collection.ratio::before{ background: transparent !important; box-shadow:none !important; }

.txa-collection img{
  object-fit: cover;
  transition: transform .35s ease;
}
.txa-collection:hover img{ transform: scale(1.04); }

/* make the overlay a bottom-only scrim (keeps paintings bright) */
.txa-collection .txa-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .60) 0%, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, 0) 35%);
}

/* FORCE the title to the bottom-left */
.txa-collection h3{
  position: absolute !important; /* override any utilities */
  left: .85rem; right: .85rem;   /* keep text away from edges */
  bottom: .85rem;
  margin: 0 !important;
  z-index: 2;                    /* on top of the scrim */
  font-weight: 700;
}
.txa-collection-cta{
  position:absolute; right:.85rem; bottom:.75rem;
  padding:.4rem .75rem; border-radius:999px;
  background:rgba(255,255,255,.94); color:#222; font-weight:600;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
	background: #faf7f1;
    border-radius: 4px !important;
}


/*gallery type stuff*/
/* Buttons + badges */
.txa-btn-primary{
  --bs-btn-color:#fff;
  --bs-btn-bg:var(--txa-accent);
  --bs-btn-border-color:var(--txa-accent);
  --bs-btn-hover-bg:var(--txa-accent-dark);
  --bs-btn-hover-border-color:var(--txa-accent-dark);
  box-shadow: var(--txa-shadow);
}
.txa-buy-btn{ padding:.6rem 1.1rem; font-weight:700; border-radius:999px; }


/* Card footer area if you place the button on a grid tile overlay */
.txa-card-cta{
  position:absolute; left:.85rem; right:.85rem; bottom:.85rem; z-index:2;
  display:flex; justify-content:space-between; align-items:center; gap:.75rem;
}
.txa-card { background:#fff; }
/* tiny corner SOLD chip */
.txa-sold {
    position: absolute;
    top: 8px;
    right: 0px;
    z-index: 5;
    padding: .18rem .42rem;
    background: var(--txa-accent, #E04E39);
    color: #fff;
    font-weight: 700;
    font-size: .62rem;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    pointer-events: none;
    width: 34%;
    height: auto;
    padding: 10px 15px;
    text-align: right;
}

/* Smaller screens: scale it down a touch */
@media (max-width: 576px){
  .txa-sold-badge{
    top: 10px;
    right: -34px;
    width: 136px;
    font-size: .64rem;
    padding: .4rem 0;
  }
}

.txa-card.sold img{ filter: grayscale(12%) saturate(.9) opacity(.92); }


/* Normalize single-artwork carousel images */
.txa-art-carousel {
  --art-ratio: 4/3; /* Change to 3/2, 1/1, 16/9, etc. */
}

.txa-art-carousel .carousel-inner {
  position: relative;
  aspect-ratio: var(--art-ratio);
  background: #fff;              /* neutral mat behind art */
}

.txa-art-carousel .carousel-item {
  position: absolute; inset: 0;  /* all slides stack in the box */
}

.txa-art-carousel .carousel-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;           /* show full painting, no crop */
  background: #fff;
}

/* Make sure the active slide sits on top (Bootstrap toggles .active) */
.txa-art-carousel .carousel-item { opacity: 0; transition: opacity .25s ease; }
.txa-art-carousel .carousel-item.active { opacity: 1; }

/* Thumbs (from earlier) */
.txa-thumbs .txa-thumb { line-height:0; border-radius:.5rem; outline:none; }
.txa-thumbs .txa-thumb img { display:block; width:72px; height:72px; object-fit:cover; }
.txa-thumbs .txa-thumb.active { box-shadow:0 0 0 2px rgba(224,78,57,.9); border-radius:.6rem; }
.txa-thumbs .txa-thumb:focus-visible { box-shadow:0 0 0 3px rgba(224,78,57,.5); }

/* Home hero sizing (wins the cascade) */
.home .txa-hero-img{
  height: clamp(540px, 100vh, 960px) !important;
  object-fit: cover;
  object-position: center; /* tweak to 'center 30%' if you want more sky */
}



/* Replace your existing ::before block with this */
.txa-hero-content::before{
  content:"";
  position:absolute; z-index:1; pointer-events:none;
  left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(1100px, 92vw);
  height:clamp(280px, 38vh, 460px);
  /* softer, larger, less contrast */
  background:
    radial-gradient(ellipse at center,
      rgba(0,0,0,.28) 0%,
      rgba(0,0,0,.16) 50%,
      rgba(0,0,0,.07) 72%,
      rgba(0,0,0,0) 100%);
  border-radius:32px;
  filter:none;                /* remove the blur that makes it muddy */
  box-shadow:0 18px 60px rgba(0,0,0,.18); /* subtle depth instead */
  z-index:-1;
}

/* Make sure text is above it */
.txa-hero-content{ z-index:0; }

