/* ==========================================================================
   Wildflower & Rose Consulting — style.css
   Shared stylesheet for all pages. See style-guide.md for usage notes.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  /* Color */
  --paper:     #FBF8F5;   /* page background (warm cream) */
  --white:     #FFFFFF;   /* panels, header, footer */
  --blush:     #F8E7EA;   /* soft pink band (CTA) */
  --rose-300:  #EFCDD3;   /* light rose accents */
  --rose-500:  #E2AFBB;   /* buttons */
  --rose-600:  #CE93A2;   /* button hover, script accent */
  --rose-700:  #B87A8B;   /* text links */
  --ink:       #22201E;   /* headings, logo */
  --text:      #534D49;   /* body copy */
  --muted:     #8A827C;   /* fine print */
  --line:      #E8DED8;   /* hairline rules */

  /* Type */
  --serif:  "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:   "Lato", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --script: "Allura", "Snell Roundhand", cursive;

  /* Layout */
  --container: 1140px;
  --gutter: 2rem;
  --section-pad: 5.5rem;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 1rem;
}

p { margin: 0 0 1rem; }

a { color: var(--rose-700); text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--rose-600);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---- Shared bits ---- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #4A4541;
  margin: 0 0 1rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin-bottom: 2.75rem;
}

.script { 
  font-family: var(--script);
  font-weight: 400;
  color: var(--rose-600);
  font-size: 1.28em;
  line-height: 0.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--rose-500);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.9rem 1.7rem;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: background 160ms ease;
}
.btn:hover { background: var(--rose-600); }
.btn .arrow { transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Text link with arrow (e.g. "View all services") */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--rose-700);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--rose-300);
  padding-bottom: 3px;
  transition: border-color 160ms ease;
}
.text-link:hover { border-color: var(--rose-700); }

/* ---- Header ---- */
.site-header {
  background: var(--white);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--ink);
}
/* Wordmark is a bitmap lockup; height drives it, width follows.
   90px matches services.png, where the logo runs ~9x the nav cap-height. */
.logo img {
  display: block;
  height: 90px;
  width: auto;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.site-nav a {
  color: #3C3936;
  font-size: 0.92rem;
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: color 160ms ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--rose-700);
}

.site-header .btn { margin-left: 0.5rem; }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}
.hero-copy {
  align-self: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
  padding-right: 3rem;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 1.5rem;
}
.hero-copy p {
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-media {
  min-height: 540px;
  background-color: var(--rose-300);
  /* Gradient stays as a fallback layer if the photo fails to load */
  background-image: url("img/home_img_1.png"),
    linear-gradient(150deg, #F4E4E0 0%, #EBD5D6 45%, #DFC2C6 100%);
  background-size: cover;
  background-position: center;
}

/* ---- Column sections (Who I Help / What I Do) ---- */
.section { padding: var(--section-pad) 0 4.5rem; }

.section + .section .container { 
  border-top: 1px solid var(--line);
  padding-top: 4.5rem;
}
.section + .section { padding-top: 0; }

.col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.col-grid > div {
  padding: 0 1.75rem;
  border-left: 1px solid var(--line);
}
.col-grid > div:first-child { padding-left: 0; border-left: 0; }
.col-grid > div:last-child { padding-right: 0; }

.col-grid h3 {
  font-size: 1.22rem;
  margin-bottom: 0.7rem;
}
.col-grid p {
  font-size: 0.94rem;
  margin: 0;
}

.section-footer { margin-top: 2.75rem; }

/* Decorative floral, right edge of "What I Do" */
.what-i-do { position: relative; }
.what-i-do .floral-corner {
  position: absolute;
  right: 0.75rem;
  bottom: 1.5rem;
  opacity: 0.85;
  pointer-events: none;
}
@media (max-width: 1279px) {
  .what-i-do .floral-corner { display: none; }
}

/* ---- About preview band ---- */
.about-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}
.about-media {
  min-height: 500px;
  background-color: #E9E2DB;
  background-image: url("img/home_img_2.png"),
    linear-gradient(160deg, #EFE8E1 0%, #E3D8CF 55%, #D8CBC2 100%);
  background-size: cover;
  background-position: center;
}
.about-copy {
  align-self: center;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  padding-left: 4rem;
  padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.about-copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  margin-bottom: 1.4rem;
}
.about-copy p { max-width: 52ch; }
.about-copy .btn { margin-top: 1rem; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--blush);
  padding: 4.25rem 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin-bottom: 0.9rem;
}
.cta-band p {
  margin: 0;
  max-width: 52ch;
}
.cta-band .btn { flex-shrink: 0; }

/* ---- Footer ---- */
.site-footer {
  background: var(--white);
  padding: 3.5rem 0 2rem;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}
.footer-logo {
  display: flex;
  align-items: center;
  color: var(--ink);
}
/* Slightly smaller than the header, matching the mockup's footer ratio. */
.footer-logo img {
  display: block;
  height: 78px;
  width: auto;
  flex-shrink: 0;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #3C3936;
  font-size: 0.88rem;
}
.footer-nav a:hover,
.footer-nav a[aria-current="page"] { color: var(--rose-700); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-tagline {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.66rem;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .col-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 0; }
  .col-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .col-grid > div:nth-child(even) { padding-right: 0; }
  .hero-media { min-height: 420px; }
}

@media (max-width: 800px) {
  .hero, .about-band { grid-template-columns: 1fr; }
  .hero-copy, .about-copy {
    padding: 3.5rem var(--gutter);
  }
  .hero-media { min-height: 320px; order: 2; }
  .about-media { min-height: 320px; }
  .site-header .container { flex-wrap: wrap; gap: 1rem 2rem; }
  .site-nav { margin-left: 0; gap: 1.25rem; }
  .logo img { height: 74px; }
  .footer-logo img { height: 66px; }
}

@media (max-width: 560px) {
  :root { --section-pad: 3.5rem; }
  .logo img { height: 60px; }
  .footer-logo img { height: 56px; }
  .col-grid { grid-template-columns: 1fr; }
  .col-grid > div { padding: 0; border-left: 0; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
