/* Abri & Serre — front styles */
:root {
  --as-green: #2c4a32;
  --as-green-mid: #3d6b4f;
  --as-green-soft: #e7efe8;
  --as-wood: #8b5e3c;
  --as-sand: #c4a574;
  --as-cream: #fbf8f2;
  --as-cream-2: #f4efe4;
  --as-line: #e8dfd0;
  --as-ink: #1a241c;
}

body,
.site,
#inner-wrap,
#wrapper {
  background-color: var(--as-cream);
  color: var(--as-ink);
}

.site-header-wrap,
#masthead,
.site-header-row-container,
.site-header-row-container-inner {
  background: var(--as-cream) !important;
}

#masthead {
  border-bottom: 1px solid var(--as-line);
}

.site-header .custom-logo {
  max-height: 64px;
  width: auto;
}

.main-navigation a,
.header-navigation-wrapper a {
  color: var(--as-green);
  font-weight: 600;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--as-wood);
}

.as-hero.wp-block-cover {
  min-height: 72vh;
}

.as-hero .wp-block-cover__inner-container {
  max-width: 860px;
}

.as-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.6em;
}

.as-hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.5;
}

.as-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.as-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--as-wood);
  margin-bottom: 0.6rem;
}

.as-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

@media (max-width: 800px) {
  .as-cards {
    grid-template-columns: 1fr;
  }
}

.as-card {
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(44, 74, 50, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.as-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(44, 74, 50, 0.12);
}

.as-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.as-card-body {
  padding: 1.25rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.as-card h2,
.as-card h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--as-green);
}

.as-card p {
  margin: 0;
  flex: 1;
}

.as-btn,
.wp-block-button__link,
.as-card a.as-btn {
  display: inline-block;
  background: var(--as-green) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 0.7rem 1.25rem !important;
  text-decoration: none !important;
  font-weight: 650;
  border: 0 !important;
}

.as-btn-ghost,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

.as-btn-light {
  background: var(--as-green-soft) !important;
  color: var(--as-green) !important;
}

.as-disclosure,
.as-notice {
  background: var(--as-cream-2);
  border-left: 4px solid var(--as-wood);
  padding: 1.1rem 1.2rem;
  border-radius: 4px 12px 12px 4px;
  margin: 2rem 0;
}

.as-method {
  background: #fff;
  border: 1px solid var(--as-line);
  border-radius: 16px;
  padding: 2rem;
}

.as-method ol {
  padding-left: 1.2rem;
}

.as-method li {
  margin: 0.55rem 0;
}

.as-photo-credit {
  font-size: 0.82rem;
  color: #5b645c;
  margin-top: 0.35rem;
}

.site-footer,
#colophon {
  background: var(--as-green) !important;
  color: var(--as-cream-2) !important;
}

.site-footer a,
#colophon a {
  color: #f4efe4 !important;
}

.site-footer .as-footer-legal {
  font-size: 0.9rem;
  opacity: 0.95;
}

.as-form label {
  display: block;
  font-weight: 650;
  margin: 0.8rem 0 0.3rem;
}

.as-form input[type="text"],
.as-form input[type="email"],
.as-form textarea {
  width: 100%;
  max-width: 640px;
  border: 1px solid var(--as-line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: #fff;
}

.as-form textarea {
  min-height: 160px;
}

.as-form .as-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.as-form-success {
  background: var(--as-green-soft);
  color: var(--as-green);
  padding: 0.9rem 1rem;
  border-radius: 10px;
}

.as-form-error {
  background: #f8e8e6;
  color: #6b2b22;
  padding: 0.9rem 1rem;
  border-radius: 10px;
}

.entry-content h1,
.entry-content h2,
.entry-title {
  color: var(--as-green);
}

.entry-content a {
  color: var(--as-green-mid);
}

.content-bg,
.content-wrap,
.entry-content-wrap {
  background: transparent;
}

.as-site-footer-extra {
  background: #243d29;
  color: #f4efe4;
  padding: 1.6rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.55;
}

.as-site-footer-extra a {
  color: #f4efe4;
  text-decoration: underline;
}

.as-site-footer-extra p {
  margin: 0.45rem 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .as-hero {
    min-height: 70vh;
  }
  .as-card img {
    height: 200px;
  }
}

/* Hide Kadence "Accueil" title banner on the front page only */
.home section.entry-hero.page-hero-section {
  display: none !important;
}

/* Let the cover hero span the full width */
.home .content-container.site-container,
.home #primary.content-area .content-container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.home .content-wrap,
.home article.entry,
.home .entry-content-wrap,
.home .content-bg {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.home .entry-content {
  margin: 0;
  padding: 0;
}
.home .wp-block-cover.alignfull.as-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: 0;
  border-radius: 0;
}

/* Hero text must stay readable on the photo */
.as-hero .wp-block-cover__inner-container,
.as-hero .wp-block-cover__inner-container h1,
.as-hero .wp-block-cover__inner-container p,
.home .wp-block-cover.as-hero h1,
.home .wp-block-cover.as-hero p {
  color: #fff !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

/* Logo already includes the name — hide the duplicate site title in the header */
#masthead .site-brand .site-title,
#masthead .brand-navigation .site-title,
#masthead .site-title,
#masthead .site-description {
  display: none !important;
}

#masthead .custom-logo {
  max-height: 58px;
  width: auto;
}
