/* =========================================================================
   Rose & Thistle Ladies Pipe Band — stylesheet
   Palette drawn from the band's Spirit of Scotland Weathered tartan + crest.
   ========================================================================= */

:root {
  /* --- Color tokens (named from the tartan) --------------------------- */
  --sage:        #5F7761;   /* dominant tartan green   */
  --sage-dark:   #445647;   /* shadowed sage, borders  */
  --heather:     #9C86A8;   /* lavender crossing thread */
  --heather-dark:#6E5A7B;
  --rose:        #C48CA0;   /* dusty rose thread        */
  --plum:        #3A2A3D;   /* deep plum — hero / footer */
  --plum-soft:   #4E3A52;
  --parchment:   #F3EFE6;   /* warm ground, tartan cream stripe */
  --parchment-dim:#EAE4D6;
  --ink:         #2A2624;   /* body text */
  --ink-soft:    #55504C;

  /* --- Type -------------------------------------------------------------*/
  --font-display: "Cormorant", "Iowan Old Style", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* --- Layout -------------------------------------------------------------*/
  --max-w: 1180px;
  --radius: 3px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { width: 100%; max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 5vw + 1rem, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.3rem, 1.4vw + 1rem, 1.6rem); }
p { margin: 0 0 1.1em; }
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--heather-dark);
  margin: 0 0 1em;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--rose);
  border-radius: 50%;
  display: inline-block;
}
section[data-bg="plum"] .eyebrow { color: var(--rose); }
section[data-bg="sage"] .eyebrow { color: var(--parchment); }
section[data-bg="sage"] .eyebrow::before { background: var(--parchment); }

/* --- Ribbon divider (signature element) ---------------------------------
   A small tartan-colored bow centered on a fine gradient line — echoes the
   lavender awareness ribbon that runs through the rest of the site. */
.ribbon-divider {
  position: relative;
  height: clamp(34px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--parchment);
  overflow: hidden;
}
.ribbon-divider .ribbon-line {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--sage) 22%, var(--heather) 50%, var(--rose) 78%, transparent);
}
.ribbon-divider svg {
  position: relative;
  z-index: 1;
  width: clamp(30px, 4vw, 50px);
  height: auto;
  background: var(--parchment);
  padding: 0 .6rem;
}

/* thin sett strip used at the very top of the page */
.sett-strip {
  height: 6px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--sage) 0 22px,
    var(--heather) 22px 26px,
    var(--sage) 26px 40px,
    var(--rose) 40px 44px,
    var(--sage) 44px 62px
  );
}

/* --- Buttons ------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .85em 1.7em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.btn-primary {
  background: var(--rose);
  color: var(--plum);
}
.btn-primary:hover { background: #d69cae; }
.btn-outline {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}
section[data-bg="plum"] .btn-outline:hover,
.hero .btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-outline.on-light:hover { background: rgba(42,38,36,.06); }

/* --- Header -------------------------------------------------------------*/
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--parchment);
  border-bottom: 1px solid rgba(42,38,36,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: clamp(72px, 8vw, 140px);
  height: clamp(72px, 8vw, 140px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border-radius: 100%;
  padding: 10px;
  box-shadow: 0 3px 10px rgba(42,38,36,.12);
  border: 1px solid rgba(42,38,36,.06);
  flex: none;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1.06;
}
.brand-word span {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--heather-dark);
  margin-top: .2em;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
nav.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-soft);
  position: relative;
  padding: .2rem 0;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -3px;
  height: 2px;
  background: var(--rose);
  transition: right .22s var(--ease);
}
nav.main-nav a:hover::after,
nav.main-nav a[aria-current="page"]::after { right: 0; }
nav.main-nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.icon-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(42,38,36,.18);
  color: var(--ink);
  text-decoration: none;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.icon-link:hover { background: var(--sage); border-color: var(--sage); color: #fff; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  position: relative; transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

@media (max-width: 880px) {
  nav.main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--parchment);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem 2rem;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
    border-top: 1px solid rgba(42,38,36,.08);
  }
  nav.main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  nav.main-nav a { width: 100%; padding: .9rem 0; border-bottom: 1px solid rgba(42,38,36,.08); font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
  .header-actions { display: none; }
}

/* --- Sections general ---------------------------------------------------*/
section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
section[data-bg="parchment"] { background: var(--parchment); }
section[data-bg="parchment-dim"] { background: var(--parchment-dim); }
section[data-bg="sage"] { background: var(--sage); color: var(--parchment); }
section[data-bg="sage"] h2, section[data-bg="sage"] h3 { color: #fff; }
section[data-bg="plum"] { background: var(--plum); color: #EFE7EC; }
section[data-bg="plum"] h1, section[data-bg="plum"] h2 { color: #fff; }

/* --- Reusable background patterns ---------------------------------------
   Apply `bg-pattern` plus `data-pattern="crosshatch | plaid | dots | herringbone"`
   to any section. Works on light or dark backgrounds — patterns are built
   from low-opacity palette colors so they read as texture, not decoration.
   Direct children need z-index: the .container inside is lifted automatically. */
.bg-pattern { position: relative; overflow: hidden; }
.bg-pattern > .container,
.bg-pattern > .hero-inner { position: relative; z-index: 1; }
.bg-pattern::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
}

/* crosshatch — crossed pipe-band drone lines (used in the hero) */
[data-pattern="crosshatch"]::before {
  background-image:
    repeating-linear-gradient(45deg, rgba(196,140,160,.05) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-45deg, rgba(156,134,168,.06) 0 2px, transparent 2px 34px);
}

/* plaid — a woven sett, echoing the tartan itself */
[data-pattern="plaid"]::before {
  background-image:
    repeating-linear-gradient(0deg, rgba(243,239,230,.05) 0 2px, transparent 2px 36px),
    repeating-linear-gradient(90deg, rgba(243,239,230,.05) 0 2px, transparent 2px 36px),
    repeating-linear-gradient(0deg, rgba(58,42,61,.03) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(58,42,61,.03) 0 1px, transparent 1px 72px);
}

/* dots — a quiet thistle-prick grid, good for simpler interior pages */
[data-pattern="dots"]::before {
  background-image: radial-gradient(rgba(95,119,97,.22) 1.4px, transparent 1.4px);
  background-size: 20px 20px;
}

/* herringbone — a woven tweed texture for banners and dark bands */
[data-pattern="herringbone"]::before {
  background-image:
    repeating-linear-gradient(45deg, rgba(196,140,160,.08) 0 2px, transparent 2px 16px),
    repeating-linear-gradient(-45deg, rgba(196,140,160,.08) 0 2px, transparent 2px 16px);
}

/* --- Hero -----------------------------------------------------------------*/
.hero {
  background: var(--plum);
  color: #EFE7EC;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 0;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero .eyebrow { color: var(--rose); }
.hero-copy .lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.4vw + 1rem, 2.5rem);
  color: var(--rose);
  margin-bottom: 0.4rem;
}
.hero-copy p.sub { max-width: 46ch; color: #DDD1D8; font-size: 1.05rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.9rem; }
.hero-portrait {
  position: relative;
  border: 10px solid var(--parchment);
  outline: 1px solid var(--sage-dark);
  outline-offset: -10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  transform: rotate(1.2deg);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.hero-portrait figcaption {
  position: absolute; bottom: -14px; right: -14px;
  background: var(--rose); color: var(--plum);
  font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .5em .8em;
  transform: rotate(-2deg);
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 340px; margin: 0 auto; transform: none; }
}

/* --- Hero curve ------------------------------------------------------------
   A wide arch that dips down at the edges and rises in the center — the
   parchment "shoreline" the hero sits on. Sits inside .hero so it renders
   over the plum background and joins flush with the section below. */
.hero-curve {
  position: relative;
  z-index: 1;
  line-height: 0;
  margin-top: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: -1px; /* tuck the curve's flat edge under the next section to hide the antialiasing seam */
}
.hero-curve svg {
  display: block;
  width: 100%;
  height: clamp(50px, 9vw, 110px);
}

/* --- About / content sections --------------------------------------------*/
.lead-para {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.1vw + 1rem, 1.5rem);
  color: var(--plum);
  max-width: 62ch;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.tartan-frame {
  border: 10px solid var(--parchment);
  box-shadow: 0 22px 44px -18px rgba(0,0,0,.35);
}
.tartan-frame img { width: 100%; }
.ribbon-note {
  display: flex; gap: .9rem; align-items: flex-start;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  padding: 1.1rem 1.3rem;
  margin-top: 1.4rem;
  font-size: .95rem;
}
section[data-bg="parchment"] .ribbon-note,
section[data-bg="parchment-dim"] .ribbon-note {
  background: #fff;
  border: 1px solid rgba(42,38,36,.1);
}
.ribbon-note svg { flex: none; width: 26px; height: 26px; margin-top: 2px; }

/* --- Stat / callout banner ------------------------------------------------*/
.banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
@media (max-width: 760px) { .banner { grid-template-columns: 1fr; text-align: left; } }
.banner .place {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--rose);
  margin-bottom: 0;
  white-space: nowrap;
}
.banner .place small {
  display: block;
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #cbb9c4;
  font-weight: 700;
  margin-top: .3rem;
}
.banner img {
  margin-bottom: 30px;
  border-radius: 10px;
  max-width: 600px;
}
.flag-row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: 1rem; font-weight: 600; font-size: .92rem; color: #EFE7EC; }
.flag-row span { padding: .35em .8em; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; }

/* --- Gallery --------------------------------------------------------------*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.5rem; } }
.gallery-item {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid rgba(42,38,36,.08);
  background: var(--parchment-dim);
  padding: 0;
  font-family: inherit;
  text-align: left;
  display: block;
  width: 100%;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(42,38,36,.82), transparent 70%);
  color: #fff;
  padding: 2.2rem .9rem .7rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gallery-item:hover .cap, .gallery-item:focus-visible .cap { opacity: 1; transform: translateY(0); }
.gallery-item:focus-visible { outline: 3px solid var(--heather); outline-offset: 3px; }
.gallery-more {
  margin-top: 2.4rem;
  text-align: center;
  font-size: .95rem;
  color: var(--ink-soft);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,16,19,.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox figure { max-width: min(90vw, 900px); margin: 0; text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border: 6px solid #fff; }
.lightbox figcaption { color: #EFE7EC; margin-top: 1rem; font-family: var(--font-display); font-size: 1.15rem; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 50%;
  width: 44px; height: 44px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background .18s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-nav.prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox-nav.prev { left: .5rem; } .lightbox-nav.next { right: .5rem; } }

/* --- Subscribe ---------------------------------------------------------- */
#subscribe {
  padding: 6rem 0 4rem;
  text-align: center;
}
#subscribe h3 { 
  margin-bottom: 1rem; 
  font-size: 2rem; 
}
#subscribe p {
  max-width: 450px;
  margin: 0 auto 1.5em;
}}

/* --- Simple content pages (Coming soon) ---------------------------------*/
.page-hero {
  background: var(--plum);
  color: #EFE7EC;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}
/* Interior-page template: one section only — eyebrow, heading, intro
   copy, and the page's content card, all in a single block. */
.page-simple {
  background: var(--plum);
  color: #EFE7EC;
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.page-simple h1 { color: #fff; }
.page-simple .intro { max-width: 56ch; color: #DDD1D8; margin-bottom: 2.4rem; }
.coming-soon-card {
  border: 1px dashed rgba(42,38,36,.28);
  padding: clamp(1.8rem, 4vw, 3rem);
  background: #fff;
  color: var(--ink);
  max-width: 62ch;
}
.coming-soon-card .eyebrow { color: var(--heather-dark); }

/* --- Contact page ---------------------------------------------------------*/
.contact-card {
  background: #fff;
  border: 1px solid rgba(42,38,36,.1);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}
.contact-card a.email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--heather-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin: .4rem 0 1.2rem;
}

/* --- Footer -----------------------------------------------------------------*/
footer.site-footer {
  background: var(--plum);
  color: #cbb9c4;
  padding-bottom: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.footer-brand img { width: 80px; height: 80px; border-radius: 100%; padding: 5px; background: #fff; }
.footer-brand span { font-family: var(--font-display); font-size: 1.15rem; color: #fff; line-height: 1.2; }
footer.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: .6rem; }
footer.site-footer a { text-decoration: none; color: #cbb9c4; }
footer.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem;
}
.footer-socials { display: flex; gap: .7rem; }
.footer-socials .icon-link { border-color: rgba(255,255,255,.25); color: #fff; }
.footer-socials .icon-link:hover { background: var(--rose); border-color: var(--rose); color: var(--plum); }

.footer-curve {
  position: relative;
  z-index: 1;
  line-height: 0;
  background: var(--sage);
  margin-bottom: 10px;
}
.footer-curve svg {
  display: block;
  width: 100%;
  height: clamp(50px, 9vw, 110px);
  position: relative;
  bottom: -1px;
}


.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--plum); color: #fff; padding: .8em 1.2em; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

