/* Bröllopsfilmer.se brand CSS
   Fonts:
   - Logo/headings: Cormorant Garamond
   - Body/navigation/buttons: Montserrat
   - Handwritten accents, optional: Brittany Signature or similar
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #fbf6ee;
  --bg-soft: #f4eadc;
  --surface: #fffaf3;
  --surface-2: #efe2cf;
  --fg: #24211d;
  --muted: #766f66;
  --muted-2: #9b8f80;
  --border: #dfcfb8;
  --gold: #b99762;
  --gold-dark: #8b6f42;
  --ink: #2b2926;
  --shadow: rgba(55, 39, 22, 0.10);
  --gap: 2.4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(185, 151, 98, 0.14), transparent 34rem),
    linear-gradient(180deg, #fffaf3 0%, var(--bg) 44%, #f8efe4 100%);
  color: var(--fg);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

/* Layout */
.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px 88px;
}

.layout--header,
.layout--footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
}

.layout__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  align-items: baseline;
}

.layout__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  border-bottom: 1px solid rgba(223, 207, 184, 0.76);
  background: rgba(251, 246, 238, 0.86);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  text-decoration: none;
  color: var(--fg);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.custom-logo {
  display: block;
  height: auto;
  width: 220px;
}

/* Desktop nav */
.site-nav .menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 22px;
}

.site-nav a {
  position: relative;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 160ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
  color: var(--fg);
}

.site-nav a:hover::after,
.site-nav .current-menu-item a::after {
  transform: scaleX(1);
}

/* Nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--fg);
}

.nav-toggle:focus,
.nav-toggle:active {
  outline: none;
  box-shadow: none;
}

.nav-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle__icon svg {
  width: 28px;
  height: 28px;
  display: block;
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon svg {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .site-header__inner {
    position: relative;
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(251, 246, 238, 0.98);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .site-nav .menu a {
    display: block;
    padding: 16px;
    text-align: center;
  }

  .site-nav a::after {
    display: none;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  background: rgba(251, 246, 238, 0.7);
}

.site-footer__copy {
  margin: 0;
}

/* Filter */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter__item {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 250, 243, 0.72);
}

.filter__item:hover,
.filter__item.is-active {
  border-color: var(--gold);
  color: var(--fg);
  background: #fffaf3;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

/* Project cards */
.project-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 10px 30px rgba(55, 39, 22, 0.04);
}

.project-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}

.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms ease;
}

.project-card__placeholder {
  aspect-ratio: 16 / 10;
  padding-top: 0;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-soft));
}

.project-card__meta {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.project-card__title {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__type {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 151, 98, 0.62);
  box-shadow: 0 18px 42px rgba(55, 39, 22, 0.12);
}

.project-card:hover .project-card__thumb img {
  transform: scale(1.035);
}

/* Hero */
.hero {
  padding: 56px 0 44px;
}

.hero__title {
  margin: 0 0 14px;
  max-width: 860px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__tagline {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.front-projects__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.front-projects__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
}

.front-projects__link {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-dark);
  font-weight: 600;
}

.front-projects__link:hover {
  color: var(--fg);
}

/* Single project */
.layout--single {
  padding-top: 64px;
}

.project-single__header {
  margin-bottom: 34px;
}

.project-single__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
}

.project-single__types {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.project-single__thumb img {
  width: 100%;
  display: block;
  border-radius: 22px;
  margin-bottom: 34px;
  height: auto;
  box-shadow: 0 20px 50px rgba(55, 39, 22, 0.10);
}

.project-single__content {
  max-width: 720px;
}

/* Video embed */
.embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 22px;
  margin-bottom: 34px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(55, 39, 22, 0.10);
}

.embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Typography defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
}

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

a {
  color: var(--gold-dark);
  text-underline-offset: 0.22em;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

a:hover {
  color: var(--fg);
}

/* Pagination */
.pagination {
  margin-top: 34px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 4px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent;
  color: var(--muted);
}

.pagination .page-numbers.current {
  border-color: var(--gold);
  color: var(--fg);
  background: var(--surface);
}

.pagination .page-numbers:hover {
  border-color: var(--border);
  color: var(--fg);
}

@media (max-width: 600px) {
  .layout,
  .layout--header,
  .layout--footer {
    padding-inline: 16px;
  }

  .hero__title {
    font-size: 42px;
  }

  .custom-logo {
    width: 190px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--fg);
  color: #fffaf3;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(36, 33, 29, 0.16);
}

.btn--primary:hover {
  background: var(--gold-dark);
  color: #fffaf3;
}

/* Front hero slider */
.front-hero {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  margin: 10px 0 34px;
  border: 1px solid var(--border);
  height: clamp(360px, 58vh, 680px);
  box-shadow: 0 24px 70px rgba(55, 39, 22, 0.12);
}

.front-hero__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.front-hero__track::-webkit-scrollbar {
  display: none;
}

.front-hero__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  min-height: 0;
  scroll-snap-align: start;
}

.front-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 6s ease;
}

.front-hero__slide[aria-current="true"] .front-hero__img {
  transform: scale(1.035);
}

.front-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 4vw, 46px);
  background:
    linear-gradient(90deg, rgba(36, 33, 29, 0.66), rgba(36, 33, 29, 0.28), rgba(36, 33, 29, 0.06)),
    linear-gradient(to top, rgba(36, 33, 29, 0.70), rgba(36, 33, 29, 0.12), rgba(36, 33, 29, 0));
}

.front-hero__content {
  color: #fffaf3;
  max-width: 660px;
}

.front-hero__title {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  color: #fffaf3;
}

.front-hero__text {
  margin: 0 0 14px;
  color: rgba(255, 250, 243, 0.92);
  max-width: 560px;
}

.front-hero__contact {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 250, 243, 0.92);
}

.front-hero__contact a {
  text-decoration: none;
  color: inherit;
}

.front-hero__contact a:hover {
  color: #f2d6a6;
}

.front-hero__sep {
  margin: 0 10px;
  color: rgba(255, 250, 243, 0.55);
}

/* Dots */
.hero-dots {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  gap: 9px;
  justify-content: center;
  pointer-events: auto;
}

.hero-dots__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 243, 0.7);
  background: rgba(255, 250, 243, 0.22);
  padding: 0;
  cursor: pointer;
}

.hero-dots__dot[aria-current="true"] {
  background: #f2d6a6;
  border-color: #f2d6a6;
}

/* About + Services spacing */
.front-about,
.front-services {
  margin: 0 0 34px;
}

.front-about__inner,
.front-services__inner {
  padding: 0;
}

.front-about__title,
.front-services__title {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  font-weight: 500;
}

/* Services cards */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 250, 243, 0.78);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.service-card__title {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 600;
}

.service-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Trust strip */
.trust-strip {
  margin: -14px 0 34px;
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.78);
}

.trust-strip__item {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Section contrast for services */
.front-services {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(239, 226, 207, 0.84), rgba(255, 250, 243, 0.76));
  border-radius: 28px;
  padding: 22px;
}

@media (min-width: 700px) {
  .front-services {
    padding: 28px;
  }
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 151, 98, 0.64);
  box-shadow: 0 16px 36px rgba(55, 39, 22, 0.10);
}

/* Bottom CTA block */
.front-cta {
  margin: 34px 0 0;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(36, 33, 29, 0.98), rgba(74, 58, 38, 0.96));
  color: #fffaf3;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 22px 58px rgba(55, 39, 22, 0.14);
}

.front-cta__title {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  color: #fffaf3;
}

.front-cta__text {
  margin: 0 0 18px;
  color: rgba(255, 250, 243, 0.86);
}

.btn--cta {
  background: #fffaf3;
  color: var(--fg);
  border: 1px solid rgba(255, 250, 243, 0.7);
}

.btn--cta:hover {
  background: #f2d6a6;
  color: var(--fg);
}
