@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond.woff2") format("woff2-variations"),
       url("fonts/cormorant-garamond.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2-variations"),
       url("fonts/inter.woff2") format("woff2");
}

:root {
  --bg: #f6f4ef;
  --ink: #1a1a1a;
  --muted: #6b6660;
  --accent: #8a6a48;
  --line: #e3ddd2;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  background: rgba(246, 244, 239, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.scrolled { border-bottom-color: var(--line); }

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.25s ease;
}

.nav-links a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2.5rem 4rem;
}

.hero-inner { max-width: 1300px; width: 100%; margin: 0 auto; }

.hero-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.hero-split .hero-text  { grid-column: 2; }
.hero-split .hero-photo { grid-column: 1; grid-row: 1; }

.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-portrait {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  margin: 0;
}

/* Subtle offset accent line behind the photo */
.hero-portrait::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -18px;
  right: 18px;
  bottom: -18px;
  border: 1px solid var(--accent);
  z-index: 0;
  pointer-events: none;
}

.hero-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.cta {
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ink);
  transition: padding 0.25s ease, border-color 0.25s ease;
}

.cta:hover {
  padding-right: 0.5rem;
  border-bottom-color: var(--accent);
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head h2,
section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.section-head p { color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-section {
  padding: 6rem 2.5rem;
  border-top: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  grid-auto-flow: row dense;
  gap: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}

.tile {
  overflow: hidden;
  cursor: zoom-in;
  background: #ddd;
  position: relative;
}

.tile-tall    { grid-row: span 2; }
.tile-wide    { grid-column: span 2; }
.tile-feature { grid-column: span 2; grid-row: span 2; }

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: saturate(0.95);
}

.tile:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

/* ---------- About ---------- */
.about {
  padding: 7rem 2.5rem;
  border-top: 1px solid var(--line);
}

.about-inner {
  max-width: 760px;
  margin: 0 auto;
}

.about-text h2 { margin-bottom: 1.75rem; }

.about-text p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.about-text .languages {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.about-text .languages strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Services ---------- */
.services {
  padding: 6rem 2.5rem;
  background: #efeae0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service {
  padding: 2rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.service h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.service p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact {
  padding: 8rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.contact-inner { max-width: 600px; margin: 0 auto; }

.contact h2 { margin-bottom: 1.25rem; }

.contact p {
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.contact-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.25rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.social {
  margin-top: 2rem !important;
  margin-bottom: 0 !important;
  font-size: 0.95rem;
}

.social a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.location {
  margin-top: 2.5rem !important;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.foot {
  padding: 2rem 2.5rem;
  text-align: center;
  font-size: 0.825rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.foot-links {
  margin-top: 0.75rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.foot-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.foot-links a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 8rem 2.5rem 4rem;
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-size: 0.975rem;
}

.legal ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal a {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s ease;
}

.legal a:hover { border-bottom-color: var(--ink); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 480px;
  margin-inline: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(20, 18, 15, 0.12);
  padding: 1.5rem 1.5rem 1.25rem;
  z-index: 300;
  animation: cookie-slide-up 0.35s ease both;
}

@keyframes cookie-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.cookie-banner-closing {
  animation: cookie-slide-down 0.25s ease both;
}

@keyframes cookie-slide-down {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(20px); opacity: 0; }
}

.cookie-banner-inner {
  display: grid;
  gap: 1.25rem;
}

.cookie-banner-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.cookie-banner-text p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-banner-text a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s ease;
}

.cookie-banner-text a:hover {
  border-bottom-color: var(--ink);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
}

/* Both buttons must be visually equal — required by EDPB / German DPAs. */
.cookie-btn {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
  background: var(--ink);
  color: var(--bg);
  outline: none;
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: #f6f4ef;
  cursor: pointer;
  font-family: var(--serif);
  transition: opacity 0.2s ease;
}

.lightbox button:hover { opacity: 0.6; }

.lightbox-close {
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  line-height: 1;
  padding: 1rem;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .tile-tall    { grid-row: span 2; }
  .tile-wide    { grid-column: span 2; grid-row: span 1; }
  .tile-feature { grid-column: span 2; grid-row: span 2; }

  .hero-split { grid-template-columns: 1fr; gap: 3rem; }
  .hero-portrait { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.25rem; font-size: 0.75rem; }
  .nav-links a:not(:last-child) { display: none; }

  .hero, .gallery-section, .about, .services, .contact { padding-left: 1.25rem; padding-right: 1.25rem; }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 360px;
    gap: 1rem;
  }
  .tile-tall, .tile-wide, .tile-feature { grid-row: auto; grid-column: auto; }

  .lightbox-prev { left: 0.5rem; font-size: 3rem; }
  .lightbox-next { right: 0.5rem; font-size: 3rem; }
}
