/*
Theme Name: acasamo
Theme URI: https://acasamo.ch
Author: acasamo AG
Description: Massgeschneidertes One-Page-Theme für acasamo AG – Immobilien, langfristig gedacht. Basierend auf dem internen Style Guide (Farben, Cormorant Garamond / Jost, lokal gehostet für DSGVO-Konformität).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: acasamo
*/

/* ==========================================================================
   1. Custom Properties (aus Style Guide)
   ========================================================================== */
:root {
  --color-hero-bg: #E4DED5;      /* Hero-Hintergrund, warmes Beige */
  --color-offwhite: #F9F7F4;     /* Kontakt-Sektion / Seitenhintergrund */
  --color-gold: #A38B5D;         /* Kicker, Icons, Trennstriche, Links */
  --color-gold-light: #C7B48C;   /* dünne Zierlinien */
  --color-text: #313233;         /* Headlines, Body */
  --color-text-secondary: #6B6A66; /* Fussnoten, Meta */
  --color-beton: #B7AEA2;        /* Bildabstimmung */
  --color-footer: #9E9A92;       /* Footer-Balken */
  --color-footer-text: #FFFFFF;

  --font-headline: "Cormorant Garamond", "EB Garamond", "Playfair Display", serif;
  --font-body: "Jost", "Karla", "Inter", sans-serif;

  --content-max: 1200px;
  --section-padding: clamp(48px, 10vw, 160px);
}

/* ==========================================================================
   2. Local @font-face (lokal gehostet, kein Google Fonts CDN-Aufruf)
   ========================================================================== */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   3. Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-offwhite);
}
img { max-width: 100%; display: block; }
a { color: var(--color-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
}

.zierlinie {
  width: 48px;
  height: 1px;
  background: var(--color-gold);
  border: none;
  margin: 20px 0;
}

.kicker {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--color-gold);
  margin: 0;
}

/* ==========================================================================
   4. Header / Logo / Nav
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 40px 32px 0;
}
.site-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--color-text);
}
.site-nav a:hover { color: var(--color-gold); }

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-hero-bg) 0%, #F0ECE4 60%, var(--color-hero-bg) 100%);
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 160px 32px 96px;
  display: grid;
  grid-template-columns: 1fr;
}
.hero__content { max-width: 640px; }
.hero__headline {
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0.2em 0 0.3em;
  color: var(--color-text);
}
.hero__kicker { margin-top: 8px; }
.hero__text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  max-width: 460px;
  margin-top: 24px;
}

.hero__image {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 62%;
  background-size: cover;
  background-position: center;
  clip-path: polygon(28% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(49,50,51,0) 0%, rgba(49,50,51,0.08) 100%);
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 40px; }
  .hero__grid { padding: 140px 24px 400px; }
  .hero__image {
    width: 100%;
    height: 340px;
    top: auto;
    bottom: 0;
    clip-path: polygon(0 18%, 100% 0%, 100% 100%, 0% 100%);
  }
  .hero__headline { font-size: clamp(3rem, 16vw, 4.5rem); }
}

/* ==========================================================================
   6. Contact Section
   ========================================================================== */
.contact {
  background: var(--color-offwhite);
  padding: var(--section-padding) 32px;
  text-align: center;
}
.contact__inner {
  max-width: 520px;
  margin: 0 auto;
}
.contact .zierlinie { margin-left: auto; margin-right: auto; }
.contact__name {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 2.2rem;
  margin: 12px 0 32px;
  color: var(--color-text);
}
.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  width: fit-content;
  margin: 0 auto;
}
.contact__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--color-text);
}
.contact__item svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--color-gold);
}
.contact__item a { color: var(--color-text); }
.contact__item a:hover { color: var(--color-gold); }

/* ==========================================================================
   7. Footer Bar
   ========================================================================== */
.site-footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
  padding: 28px 32px;
}
.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.35);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.site-footer__inner span { margin: 0 10px; }

/* ==========================================================================
   8. Generic page / blog fallback (page.php, index.php)
   ========================================================================== */
.site-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 32px 120px;
}
.site-content h1 {
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}
.site-content .entry-content { font-family: var(--font-body); }
