/*
Theme Name: Luca d’Avanzo
Theme URI: https://lucadavanzo.co.uk
Author: Luca d’Avanzo
Description: Locked mid-twilight Tilly-style homepage for Luca d’Avanzo — Adult Psychotherapist, Liberis Practice, South Kensington. Full-bleed art hero, white nav, soft Get in Touch.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luca-davanzo
Tags: one-column, custom-menu, custom-logo, full-width-template
*/

/* Luca d’Avanzo — Tilly Carnegie–inspired mid-twilight lock */
:root {
  --cream: #f6f1e8;
  --cream-deep: #ebe4d8;
  --charcoal: #1f1e1c;
  --charcoal-soft: #3d3a35;
  --muted: #6a645c;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.92);
  --line: rgba(31, 30, 28, 0.1);
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* —— Transparent header over hero (Tilly) —— */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  padding: 1.6rem 2.5rem;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav {
  display: flex;
  gap: 1.6rem;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white-soft);
  transition: opacity 0.2s ease;
}
.nav a:hover { opacity: 0.75; }

/* Soft Get in Touch — circle arrow + label (Tilly) */
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.cta-pill:hover { opacity: 0.8; }
.cta-pill .arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-pill .arrow svg { width: 14px; height: 14px; display: block; }

/* —— Full-bleed art hero (Tilly nature pattern) —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0 2.5rem 5.5rem;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #1f1e1c;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.04);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(20, 18, 16, 0.72) 0%,
      rgba(20, 18, 16, 0.35) 45%,
      rgba(20, 18, 16, 0.42) 100%
    );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.hero-id {
  font-family: var(--sans);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 14ch;
}
.hero-invite {
  margin-top: 1.1rem;
  max-width: 28rem;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
}

/* Mid twilight variant (locked) */
.hero--mid .hero-bg::after {
  background:
    linear-gradient(
      to top,
      rgba(20, 18, 16, 0.50) 0%,
      rgba(20, 18, 16, 0.20) 44%,
      rgba(20, 18, 16, 0.24) 100%
    );
}
.hero--mid .hero-id {
  text-shadow: 0 2px 22px rgba(20, 18, 16, 0.4), 0 1px 3px rgba(20, 18, 16, 0.3);
}
.hero--mid .hero-invite {
  text-shadow: 0 1px 14px rgba(20, 18, 16, 0.38), 0 1px 3px rgba(20, 18, 16, 0.28);
}
.variant-mid .site-header .logo,
.variant-mid .site-header .nav a,
.variant-mid .site-header .cta-pill {
  text-shadow: 0 1px 11px rgba(20, 18, 16, 0.38);
}

/* —— Content sections —— */
.section {
  padding: 5.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.section-split {
  max-width: 1100px;
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 3.5rem;
  align-items: start;
}
.section h2 {
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  color: var(--charcoal);
}
.section p { color: var(--charcoal-soft); }
.section p + p { margin-top: 1.15rem; }

.portrait-wrap {
  position: sticky;
  top: 2rem;
}
.portrait-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(31, 30, 28, 0.12);
}

.divider {
  border: none;
  height: 1px;
  background: var(--line);
  max-width: 1100px;
  margin: 0 auto;
}

.muted-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Contact band — soft, calm */
.contact {
  background: var(--cream-deep);
  padding: 5.5rem 2rem;
  text-align: center;
}
.contact h2 {
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.contact p { color: var(--charcoal-soft); }
.contact .address {
  margin: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.btn-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.95rem;
}
.btn-soft .arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-soft .arrow svg { width: 14px; height: 14px; }
.btn-soft:hover { opacity: 0.75; }

.site-footer {
  padding: 1.75rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--cream);
}

/* Inner pages (About/Approach/Contact as WP pages fallback) */
.page-shell {
  padding: 6rem 2rem 4rem;
  max-width: 720px;
  margin: 0 auto;
}
.page-shell h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.page-shell .entry-content p {
  margin: 0 0 1.15rem;
  line-height: 1.75;
}
.page-shell .entry-content p:last-child {
  margin-bottom: 0;
}
.page-shell .entry-content strong {
  font-weight: 600;
}

body:not(.home) .site-header {
  position: relative;
  background: var(--charcoal);
}
body:not(.home) .logo,
body:not(.home) .nav a,
body:not(.home) .cta-pill {
  text-shadow: none;
}

@media (max-width: 860px) {
  .site-header { padding: 1.2rem 1.25rem; }
  .nav { display: none; }
  .hero { padding: 0 1.25rem 4rem; min-height: 92vh; }
  .hero-id { max-width: none; }
  .section-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .portrait-wrap {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }
}
