/* =====
   Base
   ===== */

:root {
  --max-width: 980px;
  --pad: 16px;

  --text: #111;
  --muted: #444;
  --bg: #fff;

  --link: #0b4aa2;
  --link-visited: #5a2ea6;

  --border: #d7d7d7;

  --focus: #000;
  --focus-ring: 3px;
  --radius: 14px;

  --nav-btn: clamp(34px, 6vw, 44px);
  --nav-gap: clamp(6px, 1.6vw, 10px);
  --nav-icon: clamp(1.00rem, 2.4vw, 1.20rem);

  --tip-font: clamp(0.72rem, 2vw, 0.85rem);
  --tip-max: min(240px, calc(100vw - 24px));
}

html { -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
}

:focus-visible {
  outline: var(--focus-ring) solid var(--focus);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 12px;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 10px;
  z-index: 1000;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 12px;
  top: 12px;
}

/* Links */
a { color: var(--link); }
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 3px; }
a:active { text-decoration-thickness: 4px; }

/* Screen-reader-only text */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =====
   Header / Banner
   ===== */

.site-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/flower-city-banner.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.50;
  z-index: 0;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.50);
  z-index: 1;
}

.header-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--pad);
  padding-top: clamp(8px, 2vw, 14px);
  padding-bottom: clamp(8px, 2vw, 14px);
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 14px);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);

  flex: 1 1 auto;   /* key: let it shrink */
  min-width: 0;     /* key: allow text to wrap instead of forcing nav down */
}

.brand:hover { text-decoration: none; }
.brand:visited { color: var(--text); }

.brand-logo {
  width: clamp(44px, 7vw, 72px);
  height: auto;
  flex: 0 0 auto;
  border-radius: 10px;
}

.brand-title {
  display: block;
  max-width: 12ch;              /* controls how soon it wraps */
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.1;
  font-size: clamp(1.05rem, 3.2vw, 2.05rem);

  overflow-wrap: anywhere;       /* allows breaks if needed */
}


/* =====
   Navigation (icon-only, no hamburger)
   ===== */

.site-nav {
  margin-left: auto;
  width: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: var(--nav-gap);
  align-items: center;
}

.nav-icon {
  position: relative; /* needed for tooltip positioning */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--nav-btn);
  height: var(--nav-btn);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  color: #000;
}

.nav-icon:hover { text-decoration: none; }
.nav-icon:visited { color: #000; }

.nav-icon .icon {
  font-size: var(--nav-icon);
  line-height: 1;
}

.nav-icon[aria-current="page"] {
  border-color: #000;
  background: rgba(255, 255, 255, 1);
  font-weight: 700;
}

/* Tooltip ABOVE icon by default */
.nav-icon::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px); /* ABOVE */
  transform: translateX(-50%);
  white-space: nowrap;

  background: #000;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 8px;

  display: inline-flex;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9999;
}

/* Little arrow pointing down */
.nav-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9999;
}

/* Show tooltip on hover AND keyboard focus */
.nav-icon:hover::after,
.nav-icon:focus::after,
.nav-icon:focus-visible::after,
.nav-icon:hover::before,
.nav-icon:focus::before,
.nav-icon:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

/* Edge handling (manual classes):
   - tip-left: align tooltip to the left of the icon (so it doesn't run off right edge)
   - tip-right: align tooltip to the right of the icon (so it doesn't run off left edge)
*/
.nav-icon.tip-left::after {
  left: auto;
  right: 0;
  transform: none;
}
.nav-icon.tip-left::before {
  left: auto;
  right: 14px;
  transform: none;
}

.nav-icon.tip-right::after {
  left: 0;
  transform: none;
}
.nav-icon.tip-right::before {
  left: 14px;
  transform: none;
}

/* =====
   Main content
   ===== */

.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px var(--pad) 40px;
}

.page-title {
  margin-top: 0;
  font-size: 1.6rem;
}

.note {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafafa;
  color: var(--muted);
}

.plain-list { padding-left: 1.2rem; }

/* =====
   Gallery
   ===== */

.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 14px;
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-item figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.placeholder {
  height: 180px;
  background: repeating-linear-gradient(
    135deg,
    #f2f2f2,
    #f2f2f2 12px,
    #e9e9e9 12px,
    #e9e9e9 24px
  );
}

/* =====
   Contact form
   ===== */

.contact-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.contact-form legend {
  font-weight: 700;
  padding: 0 8px;
}

.field { margin-top: 12px; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="text"],
textarea {
  width: 100%;
  max-width: 46rem;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

textarea { resize: vertical; }

.help {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.req { font-weight: 600; color: #000; }

.button {
  margin-top: 14px;
  padding: 10px 14px;
  border: 2px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button:hover { text-decoration: underline; }

.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =====
   Footer
   ===== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 14px var(--pad);
  color: var(--muted);
}

.site-footer p {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* =====
   Motion preferences
   ===== */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
