/* ==========================================================================
   site.css — FINAL UNIFIED VERSION WITH FOOTER
   ========================================================================== */

:root {
  /* --- 1. GLOBAL SETTINGS --- */
  --wrap: 1100px;
  --bg: #ffffff;
  --text-main: #333333;
  --surface: #722433;          /* Main Red */
  --surface-hover: #5a1c28; 
  --text-on-surface: #ffffff;
  
  /* --- 2. NAVIGATION --- */
  --nav-height: 76px;
  --nav-link: #fcebed; 
  --nav-link-hover: #ffffff;
  --menu-text: #722433;

  /* --- 3. FOOTER SETTINGS --- */
  --footer-bg: #fff;        /* Light grey background */
  --footer-text: #555555;
  --footer-link: #722433;      /* Red links in footer */
  --footer-link-hover: #111111;
  /*--bsky-color: #0085ff; */      /* Bluesky brand blue */
  --bsky-color: #722433;       
  --icon-size: 24px;

  /* --- 4. OVERLAYS & MOTION --- */
  --drawer-w: 320px;
  --scrim: rgba(0,0,0,0.5);
  --dur: 250ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- BASE REPAIR --- */
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text-main); font-family: sans-serif; line-height: 1.6; }
body { margin: 0; overflow-x: hidden; font-size: 1.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }


/* --- SKIP LINK --- */
.skip-link {
  position: absolute; top: 0; left: 16px; transform: translateY(-100%);
  background: #111; color: #fff; padding: 10px 20px; z-index: 9999;
  text-decoration: none; transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

/* --- NAVIGATION --- */
nav.topnav {
  background: var(--surface); height: var(--nav-height); width: 100%;
  position: sticky; top: 0; z-index: 1000; display: flex; align-items: center;
}
.nav-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand span { font-weight: 700; text-transform: uppercase; color: #fff; }

.navlinks { display: flex; gap: 15px; }
.navlinks .pseudo.button {
  color: var(--nav-link); text-decoration: none; font-weight: 600; padding: 8px 12px;
}
/* .navlinks .pseudo.button:hover { color: var(--nav-link-hover); background: rgba(255,255,255,0.1); border-radius: 8px; } */
.navlinks .pseudo.button:hover { color: var(--nav-link-hover); background: rgba(255,255,255,0.1); border-radius: 0px; border-bottom: 3px #fff}

/* Burger button */
.navbtn { display: none; align-items: center; cursor: pointer; color: #fff; z-index: 1005; }
.navbtn__icon { width: 28px; height: 28px; stroke: currentColor; }

/* Mobile Menu Logic */
.navchk { position: fixed; opacity: 0; pointer-events: none; }
.navmenu {
  position: fixed; background: #fff; visibility: hidden; opacity: 0; z-index: 1100;
  display: flex; flex-direction: column; padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2); transition: all var(--dur) var(--ease);
}
.navitem { display: block; padding: 16px; text-decoration: none; color: var(--menu-text); font-weight: 600; border-bottom: 1px solid #eee; }
[data-navmode="dropdown"] .navmenu { top: var(--nav-height); left: 0; right: 0; transform: translateY(-10px); }
[data-navmode="drawer"] .navmenu { top: 0; right: 0; bottom: 0; width: var(--drawer-w); height: 100vh; transform: translateX(100%); }
.navchk:checked ~ .navmenu { visibility: visible; opacity: 1; transform: translate(0) !important; pointer-events: auto; }
.navscrim { display: none; position: fixed; inset: 0; background: var(--scrim); z-index: 1050; }
.navchk:checked ~ .navscrim { display: block; }

/* --- HERO --- */
header.hero { background: #F7EFF1; padding: 80px 0; color: #111; }
header.hero h1 { font-size: 3rem; margin: 0 0 10px 0; }
.button, button {
  display: inline-flex; padding: 12px 24px; background: var(--surface); color: #fff;
  border-radius: 8px; text-decoration: none; font-weight: 600; border: none; cursor: pointer;
}



/* --- FOOTER GRID & CONTACT ICONS --- */
.footer { background: var(--footer-bg); padding: 10px 0 20px 0; border-top: 1px solid #eee; margin-top: 0; font-size: 15px; }
.footer .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.footer h4 { color: #333; margin-bottom: 10px; font-size: 1rem; text-transform: uppercase; }

/* --- FOOTER LINKS --- */
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { position: relative; padding: 1px 0 1px 14px;line-height:1.1em }
.footer li::before { 
  content: "•"; 
  position: absolute; 
  left: 0; 
  color: var(--surface);
}

.footer a { color: var(--footer-link); text-decoration: none; transition: 0.2s; }
.footer a:hover { text-decoration: underline; color: #000; }



/* --- CONTACT ITEMS & ICONS --- */
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1px;
}

/* External SVG <img> */
.contact-item img.icon {
  width: var(--icon-size);
  height: var(--icon-size);
}


/* --- BLUESKY BUTTON --- */
.bsky-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width:  var(--icon-size);
  height: var(--icon-size);
  background-color: var(--bsky-color);
  border-radius: 50%;
  transition: transform 0.2s;
}

.bsky-icon img {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1); /* Makes the butterfly white */
}

.bsky-icon:hover { transform: scale(1.1); }



footer .copyright { text-align: center; margin-top: 30px; padding-top: 10px; border-top: 1px solid #eee; color: #888; font-size: 13px; }









/* --- RESPONSIVE LOGIC --- */
@media (max-width: 860px) {
  .navlinks { display: none; }
  .navbtn { display: flex; }
  
  /* Footer Mobile: 2 columns */
  .footer .row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Make first and last column span full width on small mobile if needed */
  .footer .col-5 {
    grid-column: span 2;
  }
}

@media (max-width: 500px) {
  .footer .row {
    grid-template-columns: 1fr; /* Single column on very small phones */
  }
  .footer .col-4, .footer .footer-contact {
    grid-column: span 1;
  }
}

html.nav-open { overflow: hidden; }



/* The CSS "Mask" */
.u-lnk {
    /* Visual Trick: Flips the reversed text back so humans can read it */
    unicode-bidi: bidi-override;
    direction: rtl;
    
    /* UX: Makes it look and feel like a link */
    cursor: pointer;
    color: #0000EE;
    text-decoration: underline;
}

/* Optional: Slight hover effect for better feedback */
.u-lnk:hover {
    color: #551A8B;
    text-decoration: none;
}