/* ============================================================
   Foto Katja – Custom Styles
   Companion to Tailwind CDN + Google Fonts
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap");

/* ── CSS Custom Properties ──────────────────────────────── */
:root {
  --color-bg: #ffffff;
  --color-bg-soft: #faf9f7;
  --color-bg-dark: #111111;
  --color-text: #1c1c1c;
  --color-text-muted: #6b6b6b;
  --color-accent: #c4a882;
  --color-accent-dark: #9c7d5e;
  --color-border: #e8e5df;
  --color-border-dark: #333333;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", system-ui, sans-serif;

  /* Header height needs to accommodate larger logo sizes */
  --nav-height: 96px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Typography helpers ──────────────────────────────────── */
.font-serif {
  font-family: var(--font-serif);
}
.font-sans {
  font-family: var(--font-sans);
}

.display-title {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
}

/* ── Navigation ─────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  overflow: visible;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    height var(--transition);
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--color-border);
}

#site-header.menu-open {
  /* iOS/Safari: fixed children inside backdrop-filter can clip/paint incorrectly */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

#site-header.transparent {
  background: transparent;
  /* Give the 3× logo enough room on the homepage */
  height: 140px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  color: inherit;
  line-height: 0;
}

.nav-logo svg {
  /* Default: 2× logo (previously 40px) */
  height: 80px;
  width: auto;
  transition: height var(--transition);
}

/* Homepage transparent header: 3× logo */
#site-header.transparent .nav-logo svg {
  height: 120px;
}

/* Scrolled header (all inner pages + homepage after scroll): 2× logo */
#site-header.scrolled .nav-logo svg {
  height: 80px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--color-text);
  transition: color var(--transition);
}

.mobile-nav-link:hover {
  color: var(--color-accent);
}

/* Hamburger */
.hamburger {
  width: 26px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-bg-dark);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 clamp(1.5rem, 6vw, 6rem) clamp(3rem, 8vh, 7rem);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  background: var(--color-text);
  color: #fff;
  border: 1px solid var(--color-text);
  transition:
    background var(--transition),
    color var(--transition);
  cursor: pointer;
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-text);
}

.btn-primary.light {
  background: #fff;
  color: var(--color-text);
  border-color: #fff;
}

.btn-primary.light:hover {
  background: transparent;
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-dark);
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

/* ── Sections ────────────────────────────────────────────── */
.section-pad {
  padding: clamp(5rem, 10vh, 9rem) 0;
}
.section-pad-sm {
  padding: clamp(3rem, 6vh, 5rem) 0;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.container-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  width: 3rem;
  height: 1px;
  background: var(--color-accent);
  margin: 1.25rem 0;
}

/* ── Service Cards ───────────────────────────────────────── */
.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  display: block;
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background: var(--color-bg-dark);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.5s ease;
}

.service-card:hover .service-card-bg {
  transform: scale(1.04);
}
.service-card:hover .service-card-bg img {
  opacity: 0.6;
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: #fff;
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.service-card-subtitle {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.service-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.service-card:hover .service-card-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ── Photo Placeholder ───────────────────────────────────── */
.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 40%, #333 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.photo-placeholder svg {
  opacity: 0.2;
}
.photo-placeholder span {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Gallery Grid ────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #1a1a1a;
  cursor: zoom-in;
}

.gallery-item.wide {
  aspect-ratio: 16/9;
}
.gallery-item.tall {
  aspect-ratio: 3/4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(0, 0, 0, 0.18);
}

.gallery-item-overlay svg {
  color: #fff;
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* ── Swiper / Featured Slideshow ─────────────────────────── */
.swiper-featured {
  overflow: hidden;
  cursor: grab;
}

.swiper-featured:active {
  cursor: grabbing;
}

.swiper-featured .swiper-slide {
  aspect-ratio: 16/10;
  background: #1a1a1a;
  overflow: hidden;
  position: relative;
}

.swiper-featured .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.swiper-featured .swiper-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  color: #fff;
  pointer-events: none;
}

.swiper-featured .swiper-slide-label {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.375rem;
}

.swiper-featured .swiper-slide-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
}

/* Swiper navigation overrides */
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1rem !important;
  font-weight: 600;
  color: #fff;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
  width: 6px !important;
  height: 6px !important;
}

.swiper-pagination-bullet-active {
  background: #fff !important;
  width: 24px !important;
  border-radius: 3px !important;
  transition: width 0.3s ease !important;
}

/* ── Stats ───────────────────────────────────────────────── */
.stat-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  color: #ffffff;
  /* Improves legibility on dark photo/gradient backgrounds */
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  /* Prevent width-jitter while counting up */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  display: inline-block;
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.625rem;
}

.stat-separator {
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
  /* stabilize rendering on iOS/Safari during animations */
  transform: translateZ(0);
  will-change: transform;
}

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding-top: var(--nav-height);
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.15) 70%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 clamp(1.5rem, 6vw, 6rem) clamp(2.5rem, 6vh, 5rem);
  width: 100%;
}

.page-hero-tag {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
}

/* ── Content Blocks ──────────────────────────────────────── */
.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.prose p {
  margin-bottom: 1.25rem;
}
.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.prose ul li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.prose ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 300;
}

/* ── Pull Quote ──────────────────────────────────────────── */
.pull-quote {
  border-left: 2px solid var(--color-accent);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.5;
}

/* ── Feature List ────────────────────────────────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.75rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.9375rem;
}

.feature-item-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-accent);
  margin-top: 0.15rem;
}

/* ── Contact Form ────────────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 0.625rem 0;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-bottom-color: var(--color-text);
}

.form-textarea {
  resize: vertical;
  min-height: 7rem;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 1.5rem;
  cursor: pointer;
}

.form-message {
  display: none;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  border-left: 3px solid;
}

.form-message.success {
  display: block;
  border-color: #5a9a6a;
  background: #f0f7f2;
  color: #2c5c38;
}

.form-message.error {
  display: block;
  border-color: #c45a5a;
  background: #fdf0f0;
  color: #5c2c2c;
}

/* ── Cookie Consent Banner ───────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.08);
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  display: none;
}

#cookie-banner.visible {
  display: block;
}

#cookie-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

#cookie-settings-modal.visible {
  display: flex;
}

.cookie-modal-inner {
  background: #fff;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  margin: 0 1rem 1rem;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.cookie-toggle-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--color-text);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
}
.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Maps consent wrapper */
.maps-consent-wrapper {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  text-align: center;
  padding: 2rem;
}

.maps-consent-wrapper p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  max-width: 28rem;
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────── */
#site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  color: #fff;
  line-height: 0;
}

.footer-logo svg {
  height: 85px;
  width: auto;
}

.footer-link {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-link:hover {
  color: #fff;
}

.footer-heading {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1.125rem;
}

/* ── Scroll Animations ───────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] {
  transition-delay: 0.1s;
}
[data-reveal-delay="2"] {
  transition-delay: 0.2s;
}
[data-reveal-delay="3"] {
  transition-delay: 0.3s;
}
[data-reveal-delay="4"] {
  transition-delay: 0.4s;
}
[data-reveal-delay="5"] {
  transition-delay: 0.5s;
}
[data-reveal-delay="6"] {
  transition-delay: 0.6s;
}

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

/* Sticky nav offset for anchor links */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

/* GLightbox overrides */
.glightbox-container .gslide-description .gdesc-inner {
  font-family: var(--font-sans);
}

.glightbox-container .gslide-title {
  font-family: var(--font-serif);
  font-weight: 400;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    aspect-ratio: 4/3;
  }

  .service-card-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  #site-header,
  #cookie-banner,
  #cookie-settings-modal {
    display: none !important;
  }
  body {
    color: #000;
  }
}

/* ═══════════════════════════════════════════════════════════
   Critical layout fallbacks (used when Tailwind CDN is slow
   or unavailable; mirrors the most important Tailwind utilities)
   ═══════════════════════════════════════════════════════════ */

/* Aspect ratio helpers */
.aspect-photo {
  aspect-ratio: 4/5;
}
.aspect-video {
  aspect-ratio: 16/9;
}
.aspect-square {
  aspect-ratio: 1;
}

/* Container image covers */
.cover-image {
  position: relative;
  overflow: hidden;
}
.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Grid layouts used in HTML (fallback when Tailwind absent) */
.section-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .section-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.section-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .section-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Flex utilities */
.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.gap-sm {
  gap: 0.75rem;
}
.gap-md {
  gap: 1.5rem;
}
.gap-lg {
  gap: 3rem;
}

/* Spacing helpers */
.mt-sm {
  margin-top: 1rem;
}
.mt-md {
  margin-top: 2rem;
}
.mt-lg {
  margin-top: 4rem;
}
.mb-sm {
  margin-bottom: 1rem;
}
.mb-md {
  margin-bottom: 2rem;
}

/* Text helpers */
.text-muted {
  color: var(--color-text-muted);
}
.text-accent {
  color: var(--color-accent);
}
.text-center {
  text-align: center;
}
.text-small {
  font-size: 0.875rem;
  line-height: 1.6;
}
.text-xl-serif {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
}
.uppercase {
  text-transform: uppercase;
}
.tracking-lg {
  letter-spacing: 0.12em;
}

/* Sticky / fixed / absolute helpers */
.sticky-top {
  position: sticky;
  top: var(--nav-height);
}
.relative {
  position: relative;
}
.overflow-hid {
  overflow: hidden;
}
.full-width {
  width: 100%;
}
.max-content {
  max-width: max-content;
}

/* Invisible but accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
