/* ═══════════════════════════════════════════════════════════════
   Gala-Bau Mario Quast — One-Page Website
   ═══════════════════════════════════════════════════════════════ */

/* ── Custom properties ── */
:root {
  --green:       #507030;
  --green-light: #A8B890;
  --green-pale:  #EEF2E8;
  --white:       #F7F8F3;
  --gray:        #6F7468;
  --gray-light:  #E8EAE3;
  --gray-dark:   #3A3D34;
  --text:        #2C2E26;

  --header-h: 68px;
  --radius:   10px;
  --radius-lg: 16px;
  --shadow:   0 2px 16px rgba(80, 112, 48, 0.10);
  --shadow-md: 0 4px 28px rgba(80, 112, 48, 0.13);

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --max-w: 1160px;
  --gap:   clamp(1.5rem, 4vw, 3rem);
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

address { font-style: normal; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Utility ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt {
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-header h2 {
  margin-bottom: .6rem;
}

.section-header p {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--gray);
  font-size: 1.05rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .8rem;
}

/* ── Typography ── */
h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--gray-dark);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--gray-dark);
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-dark);
}

p { max-width: 72ch; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background .18s, color .18s, box-shadow .18s, transform .12s;
  white-space: nowrap;
}

.btn:active { transform: scale(.98); }

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

.btn-primary:hover {
  background: #3e5a22;
  box-shadow: 0 4px 18px rgba(80, 112, 48, .3);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-outline:hover {
  background: var(--green-pale);
}

.btn-large {
  padding: .85rem 1.8rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid var(--green-pale);
  transition: box-shadow .2s;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -.02em;
}

.logo-sub {
  font-size: .7rem;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Footer logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}

.footer-logo-sub {
  font-size: .7rem;
  font-weight: 500;
  color: var(--green-light);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.25rem, 1.5vw, 1.25rem);
}

.main-nav ul a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-dark);
  padding: .25rem .1rem;
  position: relative;
}

.main-nav ul a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform .2s;
}

.main-nav ul a:hover::after { transform: scaleX(1); }
.main-nav ul a:hover { color: var(--green); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  border-radius: 6px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-dark);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background: linear-gradient(160deg, #fff 60%, var(--green-pale) 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-content { max-width: 560px; }

.hero-eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  max-width: none;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ═══════════════════════════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════════════════════════ */
.trust-bar {
  background: var(--green);
  color: #fff;
  padding: 1.4rem 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.trust-icon {
  flex-shrink: 0;
  opacity: .85;
}

.trust-label {
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
}

.service-card {
  background: #fff;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .22s, transform .2s, border-color .2s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--green-light);
}

.service-card h3,
.service-card p {
  padding: 0 1.4rem;
}

.service-card h3 {
  padding-top: 1.2rem;
  margin-bottom: .45rem;
}

.service-card p {
  padding-bottom: 1.4rem;
  color: var(--gray);
  font-size: .92rem;
  max-width: none;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--green-pale);
  color: var(--green);
  margin: 1.2rem 1.4rem .75rem;
  flex-shrink: 0;
}

.service-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.service-card:hover .service-image img {
  transform: scale(1.04);
}

.service-image--placeholder {
  background: var(--green-pale);
}

.service-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════════ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 1.1rem;
}

.about-content p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.about-content .btn {
  margin-top: .5rem;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.75rem, 2vw, 1.25rem);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

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

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .6rem 1rem;
  background: linear-gradient(transparent, rgba(30, 40, 20, .65));
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity .25s;
}

.gallery-item:hover figcaption {
  opacity: 1;
}

.gallery-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   PROCESS / ABLAUF
═══════════════════════════════════════════════════════════════ */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  counter-reset: step;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.process-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 6px var(--green-pale);
}

.process-connector {
  position: absolute;
  top: 26px;
  left: calc(50% + 26px);
  right: calc(-50% + 26px);
  height: 2px;
  background: var(--green-light);
  z-index: 0;
}

.process-content h3 {
  margin-bottom: .4rem;
}

.process-content p {
  color: var(--gray);
  font-size: .92rem;
  max-width: 22ch;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   SEO SECTION
═══════════════════════════════════════════════════════════════ */
.section-seo {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.seo-inner {
  max-width: 760px;
}

.seo-inner h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.seo-inner p {
  color: var(--gray);
  max-width: 72ch;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════ */
.contact-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-card {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

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

.contact-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: .75rem;
}

.contact-card address {
  color: rgba(255,255,255,.8);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: rgba(255,255,255,.9);
}

.contact-list a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.35);
  text-underline-offset: 3px;
}

.contact-list a:hover {
  text-decoration-color: #fff;
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1.5px solid var(--gray-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1rem;
}

label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-dark);
}

label span {
  color: var(--green);
}

input, select, textarea {
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  padding: .65rem .9rem;
  width: 100%;
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(80, 112, 48, .12);
}

input::placeholder, textarea::placeholder { color: #aaa; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236F7468' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 120px; }

.form-microcopy {
  text-align: center;
  font-size: .8rem;
  color: var(--gray);
  margin-top: .75rem;
  max-width: none;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--gray-dark);
  color: rgba(255,255,255,.75);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 3rem;
}

.footer-brand .footer-logo { margin-bottom: 1rem; }

.footer-tagline {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  margin-bottom: .75rem;
  max-width: 34ch;
}

.footer-services-list {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  line-height: 1.8;
  max-width: 40ch;
}

.footer-contact h3,
.footer-nav h3,
.footer-legal h3 {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: .9rem;
}

.footer-contact address {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: .9rem;
}

.footer-contact-list li,
.footer-nav ul li,
.footer-legal ul li {
  margin-bottom: .45rem;
}

.footer-contact-list a,
.footer-nav ul a,
.footer-legal ul a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color .15s;
}

.footer-contact-list a:hover,
.footer-nav ul a:hover,
.footer-legal ul a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.1rem 0;
}

.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  max-width: none;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.5rem;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Header / nav */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 99;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: .25rem;
    text-align: center;
  }

  .main-nav ul a {
    font-size: 1.15rem;
    padding: .6rem 1.5rem;
  }

  .nav-cta {
    font-size: 1rem;
    padding: .8rem 2rem;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .hero-content {
    max-width: 100%;
  }

  /* Trust bar */
  .trust-divider { display: none; }
  .trust-inner { flex-direction: column; gap: 1rem; }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-image {
    aspect-ratio: 16 / 9;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Process */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-step {
    flex-direction: row;
    text-align: left;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 0;
  }

  .process-number {
    margin-bottom: 0;
    flex-shrink: 0;
    margin-top: .05rem;
  }

  .process-connector {
    display: none;
  }

  .process-content p {
    max-width: none;
  }

  /* Contact */
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Small mobile (≤ 480px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Focus visible ── */
:focus-visible {
  outline: 2.5px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
