/* Base styles for the Bruderloch theme */

/* Global reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--clr-page-bg);
  color: var(--clr-text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  font-size: 18px;
}

/* Local font declarations. These font files should be placed in assets/fonts/poppins and assets/fonts/inter.
   Provide your own WOFF2/WOFF versions to avoid remote requests. */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Regular.woff2') format('woff2'),
       url('../fonts/poppins/Poppins-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-SemiBold.woff2') format('woff2'),
       url('../fonts/poppins/Poppins-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Bold.woff2') format('woff2'),
       url('../fonts/poppins/Poppins-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Regular.woff2') format('woff2'),
       url('../fonts/inter/Inter-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Medium.woff2') format('woff2'),
       url('../fonts/inter/Inter-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--clr-text);
  margin-top: 0;
  margin-bottom: var(--space-2);
}
h1 { font-size: 48px; line-height: 1.1; }
h2 { font-size: 36px; line-height: 1.15; }
h3 { font-size: 28px; line-height: 1.2; }
p { margin-top: 0; margin-bottom: var(--space-2); }
a { color: var(--clr-link); text-decoration: none; }
a:hover { color: var(--clr-link-hover); text-decoration: underline; }

@media (max-width: var(--bp-lg)) {
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
}

/* Containers */
.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-full {
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Section spacing */
.bruderloch-section { position: relative; }
.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pt-5 { padding-top: var(--space-5); }
.pt-6 { padding-top: var(--space-6); }
.pt-7 { padding-top: var(--space-7); }
.pb-1 { padding-bottom: var(--space-1); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-5 { padding-bottom: var(--space-5); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-7 { padding-bottom: var(--space-7); }

/* Background modifiers */
.bg-surface { background: var(--clr-surface); }
.bg-none { background: transparent; }

/* Container width modifiers */
.container-boxed .container { max-width: var(--container); }
.container-full .container { max-width: none; width: 100%; }

/* Alignment modifiers */
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }

/* Visibility (responsive) */
.show-desktop { display: block; }
.show-tablet { display: block; }
.show-mobile { display: block; }
@media (max-width: var(--bp-lg)) {
  .show-desktop { display: none; }
}
@media (min-width: var(--bp-md)) and (max-width: var(--bp-lg)) {
  .show-mobile { display: none; }
}
@media (max-width: var(--bp-md)) {
  .show-desktop { display: none; }
  .show-tablet { display: none; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--clr-accent);
  color: var(--clr-accent-contrast);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn:hover {
  background: #000000;
  color: var(--clr-accent-contrast);
}
.btn-pill {
  border-radius: var(--radius-pill);
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Hero component */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  min-height: 56vh;
  color: var(--clr-surface);
}
.hero--50 { min-height: 50vh; }
.hero--60 { min-height: 60vh; }
.hero--75 { min-height: 75vh; }
.hero--100 { min-height: 100vh; }
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__bg--video iframe {
  width: 100%;
  height: 100%;
}
.hero__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 100%);
  opacity: calc(var(--hero-overlay) / 100);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: var(--space-4);
}
.hero__title {
  margin-top: 0;
  margin-bottom: var(--space-2);
  font-size: 48px;
  line-height: 1.1;
}
.hero__subtitle {
  margin-bottom: var(--space-4);
  font-size: 20px;
}

@media (max-width: var(--bp-lg)) {
  .hero__title { font-size: 34px; }
  .hero__subtitle { font-size: 16px; }
}

/* Split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: center;
}
.split__media {
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  min-height: 400px;
}
.ratio-16by9 {
  position: relative;
  padding-top: 56.25%;
}
.ratio-16by9::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}
.ratio-3by4 {
  position: relative;
  padding-top: 133.33%;
}
.split__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
@media (max-width: var(--bp-lg)) {
  .split {
    grid-template-columns: 1fr;
  }
  .split__media {
    min-height: 300px;
  }
}

/* Text section */
.text-section__inner {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.text-section--intro .text-section__content {
  font-size: 22px;
  line-height: 1.6;
}
@media (max-width: var(--bp-lg)) {
  .text-section--intro .text-section__content {
    font-size: 18px;
  }
}

/* Card */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card__image img {
  display: block;
  width: 100%;
  height: auto;
}
.card__body {
  padding: var(--space-3);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card__title {
  margin: 0 0 var(--space-2) 0;
  font-size: 24px;
  font-weight: 600;
}
.card__text {
  flex-grow: 1;
  margin-bottom: var(--space-3);
  color: var(--clr-text-soft);
}
.card__link { align-self: flex-start; }

/* Card grid */
.card-grid__inner {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gap);
}
.card-grid--equal .card {
  height: 100%;
}
@media (max-width: var(--bp-lg)) {
  .card-grid__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: var(--bp-md)) {
  .card-grid__inner {
    grid-template-columns: 1fr;
  }
}

/* Gallery grid */
.gallery-grid__inner {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gap);
}
.gallery-grid__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.gallery-grid--masonry {
  column-count: var(--grid-columns);
  column-gap: var(--grid-gap);
}
.gallery-grid--masonry .gallery-grid__item {
  break-inside: avoid;
  margin-bottom: var(--grid-gap);
}
.gallery-grid__crop {
  position: relative;
  padding-top: 66.666%; /* default 3:2 ratio */
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-grid__crop img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image strip */
.image-strip__inner {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
}
.image-strip__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Contact block */
.contact-block__inner {
  display: flex;
  gap: var(--gutter);
  align-items: flex-start;
}
.contact-block__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.contact-block__content {
  flex: 1;
}
.contact-block__inner--right {
  flex-direction: row-reverse;
}

/* Footer links */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-2);
  font-size: 14px;
}
.footer-links li {
  margin: 0;
}
.footer-links a {
  color: var(--clr-text-soft);
}
.footer-links a:hover {
  color: var(--clr-text);
}

/* Navigation header (basic) */
header.site-header {
  background: var(--clr-page-bg);
  padding: var(--space-2) 0;
}
.site-logo a {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--clr-text);
}
nav.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
nav.primary-nav a {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--clr-text);
  padding: var(--space-2) 0;
}
nav.primary-nav li.current-menu-item a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--clr-text);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  cursor: pointer;
}
.nav-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  margin: 5px 0;
}
@media (max-width: var(--bp-lg)) {
  nav.primary-nav ul {
    display: none;
    flex-direction: column;
    gap: var(--space-2);
  }
  nav.primary-nav ul.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}
