:root {
  --navy: #17425B;
  --navy-dark: #0f2e40;
  --cream: #faf8f4;
  --alt-bg: #f0ede6;
  --text: #2a2a2a;
  --text-muted: #5a5a5a;
  --border: #d9d3c7;
  --max-width: 1080px;
  --radius: 6px;
  font-size: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  color: var(--navy);
  margin: 0 0 0.5em;
}

a { color: var(--navy); }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: #fff;
  padding: 0.75em 1em;
  z-index: 100;
}
.skip-link:focus {
  left: 1em;
  top: 1em;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.alt-bg { background: var(--alt-bg); }

/* Hero */
.hero {
  background: #fff;
  text-align: center;
  padding: 3rem 1.5rem 0;
}

.hero-logo {
  display: flex;
  justify-content: center;
}

.logo-hero {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.hero-band {
  background: var(--navy);
  color: #fff;
  margin-top: 2rem;
  padding: 2.5rem 1.5rem;
}

.hero-band h1 {
  color: #fff;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
}

.hero-subtext {
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: bold;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.site-nav a:hover { text-decoration: underline; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-image {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.logo-about {
  width: 100%;
  max-width: 260px;
  height: auto;
  opacity: 0.9;
}

.about-subhead {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.social-row {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.social-icon:hover {
  background: var(--navy);
  color: #fff;
}

/* Galleries */
.gallery-section h2 { text-align: center; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-thumb {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
  transform: scale(1.05);
}

/* Paintings carousel */
.carousel {
  max-width: 960px;
  margin: 2.5rem auto 0;
}
.carousel:focus { outline: none; }
.carousel:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }

.carousel-viewport {
  position: relative;
  overflow: hidden;
  padding: 1rem 0 2rem;
}

.carousel-track {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 3%;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 auto;
  height: clamp(260px, 46vw, 440px);
  opacity: 0.35;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide-btn {
  display: block;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.carousel-slide img {
  height: 100%;
  width: auto;
  max-width: min(70vw, 560px);
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(15, 21, 26, 0.18);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  border: 1px solid var(--border);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.carousel-btn:hover { background: #fff; }
.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }

.carousel-status {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.carousel-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 0.75rem;
  scroll-behavior: smooth;
}

.carousel-thumb {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  padding: 0;
  border-radius: 4px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s;
}
.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-thumb:hover { opacity: 0.9; }
.carousel-thumb.is-active {
  opacity: 1;
  border-color: var(--navy);
}

@media (max-width: 560px) {
  .carousel-slide { width: 82%; }
  .carousel-btn { width: 2.25rem; height: 2.25rem; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 21, 26, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 100;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Contact */
.contact-inner { max-width: 640px; }
.contact h2 { text-align: center; }

.contact-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row label {
  font-weight: bold;
  font-size: 0.9rem;
}

.required { color: #b3261e; }

input[type="text"],
input[type="email"],
textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

textarea { resize: vertical; }

input:focus, textarea:focus, button:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

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

.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
}
.form-status.success { color: #1e6b2f; }
.form-status.error { color: #b3261e; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #eef1f3;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-title {
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.footer-signup h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.signup-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.signup-form input[type="email"] {
  flex: 1;
  min-width: 180px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.footer-legal a { color: #cfd9e0; }

.copyright {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: #9fb0bb;
}

.simple-footer { padding: 1.5rem 0; }

/* Simple legal pages */
.simple-header {
  background: var(--navy);
  color: #fff;
  padding: 2rem 0;
}
.simple-header h1 { color: #fff; margin-top: 0.5rem; }
.back-link {
  color: #cfe0ec;
  text-decoration: none;
  font-size: 0.9rem;
}
.back-link:hover { text-decoration: underline; }

.legal-page { padding: 3rem 0 4rem; }
.legal-page h2 { margin-top: 2rem; font-size: 1.2rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--navy-dark);
  color: #eef1f3;
  padding: 1rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  z-index: 50;
}
.cookie-banner a { color: #cfe0ec; }
.cookie-banner[hidden] { display: none; }

/* Responsive */
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-band h1 { font-size: 1.8rem; }
}
