/* AlexMay.com — Warm Editorial prototype
   Shared palette and layout styles. Edit these variables to adjust the whole site. */

:root {
  --warm-ivory: #F4F0E8;
  --soft-linen: #E5DACA;
  --sand: #D8C8AE;
  --soft-sage: #A9B7A8;
  --sage-green: #536B62;
  --deep-green: #303C38;
  --terracotta: #B77D55;
  --terracotta-dark: #8B5738;
  --white: #FFFDF9;
  --heading-font: Georgia, "Times New Roman", serif;
  --body-font: "Lato", "Avenir Next", Avenir, Arial, sans-serif;
  --page-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 115px; }
body {
  margin: 0;
  background: var(--warm-ivory);
  color: var(--deep-green);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--deep-green); color: white; padding: .6rem 1rem; z-index: 20;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header { background: var(--warm-ivory); }
.header-inner {
  max-width: var(--page-width);
  min-height: 104px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex; align-items: center; gap: 25px;
}
.wordmark, .footer-wordmark {
  color: var(--deep-green); text-decoration: none;
  font: 600 clamp(2.2rem, 5vw, 3.5rem)/1 var(--heading-font);
  letter-spacing: -1.5px;
  white-space: nowrap;
}
.header-divider, .footer-divider {
  height: 48px; width: 1px; background: var(--sand); flex: 0 0 1px;
}
.tagline {
  margin: 0; color: var(--sage-green);
  font-size: .88rem; font-weight: 700; letter-spacing: .19em;
  text-transform: uppercase;
}
.leaf-mark { margin-left: auto; color: var(--terracotta); font-size: 2.4rem; transform: rotate(-25deg); }

.main-nav { background: var(--sage-green); color: var(--white); }
.nav-inner {
  max-width: var(--page-width); min-height: 58px; margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: center; align-items: stretch; gap: clamp(24px, 7vw, 100px);
}
.nav-inner a {
  display: flex; align-items: center; padding: 12px 4px;
  text-decoration: none; font: 600 1.12rem var(--heading-font);
  border-bottom: 3px solid transparent; transition: border-color .2s, color .2s;
}
.nav-inner a:hover, .nav-inner a:focus-visible { color: #F0D7C3; border-color: var(--terracotta); }

.hero {
  min-height: 510px; position: relative; display: flex; align-items: center;
  overflow: hidden; background: var(--soft-linen);
}
.hero-image {
  position: absolute; inset: 0 0 0 34%;
  background-image: linear-gradient(90deg, rgba(244,240,232,.28), rgba(244,240,232,0) 35%), url("../images/hero-collage.jpg");
  background-size: cover; background-position: center 53%;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--warm-ivory) 0%, rgba(244,240,232,.96) 32%, rgba(244,240,232,.56) 53%, rgba(244,240,232,.03) 78%);
}
.hero-content {
  position: relative; z-index: 1; width: min(620px, 58%);
  margin-left: max(calc((100vw - var(--page-width))/2 + 28px), 5vw);
  padding: 68px 20px 68px 0;
}
.eyebrow {
  margin: 0 0 13px; color: var(--sage-green);
  font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
h1, h2 { font-family: var(--heading-font); color: var(--deep-green); line-height: 1.12; }
h1 { margin: 0; font-size: clamp(2.65rem, 5.2vw, 4.55rem); letter-spacing: -1.8px; }
.accent-rule { display: block; width: 76px; height: 4px; margin: 24px 0 20px; background: var(--terracotta); }
.hero-copy { max-width: 490px; margin: 0 0 27px; font-size: 1.12rem; }
.button {
  display: inline-flex; align-items: center; gap: 17px;
  padding: 12px 23px; border-radius: 5px; background: var(--sage-green);
  color: white; text-decoration: none; font-weight: 750;
  transition: background .2s, transform .2s;
}
.button:hover, .button:focus-visible { background: var(--deep-green); transform: translateY(-2px); }
.button span { font-size: 1.3rem; line-height: 1; }

.intro-strip {
  padding: 17px 24px; text-align: center;
  background: var(--soft-linen); border-top: 1px solid rgba(83,107,98,.12);
  color: var(--sage-green); font: italic 1.15rem var(--heading-font);
}
.intro-strip p { margin: 0; }

.section-grid {
  max-width: var(--page-width); margin: 0 auto; padding: 58px 28px 64px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.section-card { padding: 0 28px; border-right: 1px solid var(--sand); }
.section-card:first-child { padding-left: 0; }
.section-card:last-child { border-right: 0; padding-right: 0; }
.card-icon { color: var(--terracotta); font-size: 2.1rem; line-height: 1; margin-bottom: 13px; }
.section-card h2 { margin: 0 0 10px; font-size: 1.8rem; }
.section-card p { min-height: 82px; margin: 0 0 13px; color: #454D48; }
.text-link {
  display: inline-flex; gap: 12px; align-items: center;
  color: var(--terracotta-dark); text-decoration: none; font-weight: 750;
}
.text-link:hover, .text-link:focus-visible { color: var(--deep-green); text-decoration: underline; }

.detail-section { padding: 66px 28px; }
.detail-alt { background: #ECE8DE; }
.detail-inner { max-width: 850px; margin: 0 auto; }
.detail-inner h2 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3rem); }
.detail-inner > p:last-child { max-width: 720px; margin: 0; font-size: 1.08rem; }
.contact-band { padding: 64px 28px; background: var(--sage-green); color: white; }
.contact-band h2, .contact-band .eyebrow { color: white; }
.contact-band .eyebrow { opacity: .8; }
.contact-band .detail-inner > p:last-of-type { margin-bottom: 22px; }
.button-light { background: var(--warm-ivory); color: var(--deep-green); }
.button-light:hover, .button-light:focus-visible { background: white; color: var(--deep-green); }

.site-footer { background: var(--deep-green); color: var(--warm-ivory); }
.footer-inner {
  max-width: var(--page-width); min-height: 88px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; gap: 25px;
}
.footer-wordmark { color: var(--warm-ivory); font-size: 1.9rem; }
.footer-divider { height: 34px; background: rgba(244,240,232,.45); }
.footer-inner p { margin: 0; color: #E9E5DC; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-inner p span { padding: 0 10px; color: var(--terracotta); }
.back-top { margin-left: auto; color: var(--warm-ivory); text-decoration: none; font-size: .85rem; }
.back-top:hover { color: #F0C6A9; }

@media (max-width: 850px) {
  .header-inner { min-height: 88px; gap: 16px; }
  .tagline { font-size: .72rem; letter-spacing: .12em; }
  .hero { min-height: 480px; }
  .hero-image { left: 25%; }
  .hero-content { width: 67%; margin-left: 5vw; }
  .section-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .section-card:nth-child(2) { border-right: 0; }
  .section-card:nth-child(3) { padding-left: 0; }
  .section-card p { min-height: auto; }
  .footer-inner { flex-wrap: wrap; }
  .back-top { margin-left: 0; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 10px; }
  .header-inner { min-height: 76px; padding: 14px 18px; gap: 12px; }
  .wordmark { font-size: 2.25rem; }
  .header-divider { height: 34px; }
  .tagline { max-width: 155px; font-size: .58rem; line-height: 1.5; }
  .leaf-mark { display: none; }
  .nav-inner { padding: 0 10px; min-height: 52px; gap: 0; justify-content: space-around; }
  .nav-inner a { padding: 10px 5px; font-size: .82rem; text-align: center; }
  .hero { min-height: 570px; align-items: flex-start; }
  .hero-image { inset: 230px 0 0; background-position: center; }
  .hero::before { background: linear-gradient(180deg, var(--warm-ivory) 0%, var(--warm-ivory) 39%, rgba(244,240,232,.78) 58%, rgba(244,240,232,.05) 100%); }
  .hero-content { width: auto; margin: 0; padding: 38px 22px 28px; }
  .eyebrow { font-size: .65rem; }
  h1 { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .hero-copy { font-size: 1rem; }
  .intro-strip { font-size: 1rem; }
  .section-grid { grid-template-columns: 1fr; padding: 38px 24px; row-gap: 28px; }
  .section-card, .section-card:first-child, .section-card:nth-child(3), .section-card:last-child {
    padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--sand);
  }
  .section-card:last-child { border-bottom: 0; padding-bottom: 0; }
  .section-card h2 { font-size: 1.65rem; }
  .detail-section, .contact-band { padding: 48px 24px; }
  .footer-inner { padding: 22px 24px; gap: 13px; }
  .footer-inner p { width: 100%; line-height: 2; }
  .footer-divider { display: none; }
}
