/* Direction B — Boutique Coastal shared stylesheet
   Extracted from boutique-coastal HTML mockups for Concrete CMS theming. */

:root {
  --cream: #f7f3eb;
  --cream-deep: #efe8dc;
  --forest: #1f4d3a;
  --forest-deep: #163a2c;
  --forest-soft: #2d6b52;
  --charcoal: #2a2a28;
  --muted: #5c5a54;
  --line: #d9d0c2;
  --white: #fffcf7;
  --sand: #e8dfd0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--forest-soft); }
img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 92%); margin: 0 auto; }

/* —— Header / nav —— */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 243, 235, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 1.5rem;
}

.brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--forest-deep); font-weight: 600;
}

.brand-mark {
  width: 40px; height: 40px; flex-shrink: 0;
}

.brand-text { line-height: 1.15; }

.brand-text strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem; font-weight: 600;
}

.brand-text span {
  display: block; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}

.nav-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }

.nav-links a {
  color: var(--charcoal); font-weight: 500; font-size: 0.95rem;
}

.nav-links a.active,
.nav-links a:hover { color: var(--forest); }

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.7rem 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; border: 1.5px solid transparent;
  transition: 0.2s ease; cursor: pointer;
}

.btn-primary {
  background: var(--forest); color: var(--white) !important;
}

.btn-primary:hover { background: var(--forest-deep); }

.btn-ghost {
  background: transparent; color: var(--forest) !important;
  border-color: var(--forest);
}

.btn-ghost:hover { background: var(--forest); color: var(--white) !important; }

/* —— Typography —— */
.eyebrow {
  display: inline-block; margin-bottom: 1rem;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--forest); font-weight: 600;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600; line-height: 1.2; color: var(--forest-deep);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.35rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }

.lede {
  font-size: 1.12rem; color: var(--muted); max-width: 36rem;
  margin-bottom: 1.75rem;
}

/* —— Home hero —— */
.hero {
  position: relative; overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background:
    linear-gradient(180deg, rgba(247,243,235,0.2) 0%, var(--cream) 100%),
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(31,77,58,0.08), transparent 55%);
}

.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem; align-items: center;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.hero-note { font-size: 0.95rem; color: var(--muted); }

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 18px 40px rgba(42, 42, 40, 0.06);
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute; inset: auto 1.25rem -1px 1.25rem; height: 3px;
  background: linear-gradient(90deg, transparent, var(--forest), transparent);
  border-radius: 999px;
}

.motif {
  width: 100%; height: auto; margin-bottom: 1.25rem;
  color: var(--forest);
}

.quote {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem; color: var(--forest-deep); margin-bottom: 0.75rem;
}

.quote-meta { font-size: 0.85rem; color: var(--muted); }

.wave {
  display: block; width: 100%; height: 48px;
  color: var(--forest); opacity: 0.18;
}

/* —— Inner page hero —— */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow { margin-bottom: 0.85rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.85rem); margin-bottom: 0.85rem; }
.page-hero .lede { font-size: 1.1rem; max-width: 42rem; margin-bottom: 0; }

/* —— Sections —— */
.section { padding: 4rem 0; }
.section-alt { background: var(--cream-deep); }

.section-head {
  max-width: 36rem; margin-bottom: 2.25rem;
}

.section-head p { color: var(--muted); }

/* —— Client strip (home) —— */
.client-strip {
  display: flex; flex-wrap: wrap; gap: 0.65rem 0.85rem;
  justify-content: flex-start;
}

.client-chip {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--charcoal);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* —— Service cards (home) —— */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
}

.card-icon {
  width: 42px; height: 42px; margin-bottom: 1rem;
  color: var(--forest);
}

.card p { color: var(--muted); font-size: 0.95rem; }

/* —— CTA band —— */
.cta-band {
  background: var(--forest);
  color: var(--white);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
}

.cta-band h2 { color: var(--white); margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255,252,247,0.85); max-width: 32rem; }

.cta-band .btn-primary {
  background: var(--white); color: var(--forest) !important;
}

.cta-band .btn-primary:hover { background: var(--cream); }

/* —— About page —— */
.layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.prose p { margin-bottom: 1.1rem; color: var(--charcoal); }
.prose p:last-child { margin-bottom: 0; }

.timeline {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(42,42,40,0.05);
}

.timeline li {
  list-style: none;
  padding: 0.9rem 0 0.9rem 1.1rem;
  border-left: 2px solid var(--line);
  position: relative;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute; left: -6px; top: 1.2rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--forest);
}

.timeline strong {
  display: block; color: var(--forest-deep);
  font-family: "Playfair Display", Georgia, serif;
  margin-bottom: 0.2rem;
}

.timeline span { color: var(--muted); font-size: 0.95rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.5rem; }

.pill {
  background: var(--cream-deep); color: var(--forest-deep);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 0.4rem 0.85rem;
  font-size: 0.88rem; font-weight: 600;
}

.callout {
  margin-top: 2rem;
  background: var(--cream-deep);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
}

/* —— Contact page (uses .layout; optional denser ratio via .layout--contact) —— */
.layout--contact {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.info-card,
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 12px 30px rgba(42,42,40,0.05);
}

.info-row { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }

.info-row .label {
  display: block;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--forest); font-weight: 600; margin-bottom: 0.3rem;
}

.info-row p { color: var(--charcoal); }

.shore {
  margin-top: 1.5rem; width: 100%; height: auto; border-radius: 0.85rem;
}

form { display: grid; gap: 1rem; }

label {
  display: grid; gap: 0.35rem;
  font-size: 0.92rem; font-weight: 600; color: var(--forest-deep);
}

input, textarea, select {
  font: inherit; padding: 0.75rem 0.9rem; border-radius: 0.65rem;
  border: 1px solid var(--line); background: var(--cream); color: var(--charcoal);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(31,77,58,0.25); border-color: var(--forest);
}

textarea { min-height: 140px; resize: vertical; }

.form-note { font-size: 0.88rem; color: var(--muted); font-weight: 400; }

.form-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  align-items: center; margin-top: 0.25rem;
}

/* —— Clients page —— */
.cats { display: grid; gap: 1.5rem; }

.cat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 10px 28px rgba(42,42,40,0.04);
}

.cat-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line);
}

.cat-head h2 { font-size: 1.35rem; margin-bottom: 0; }

.cat-head span {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

.names {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem 1.25rem;
}

.names li {
  list-style: none; padding: 0.45rem 0;
  font-weight: 500; color: var(--charcoal);
  border-bottom: 1px dashed var(--line);
}

.names li:nth-last-child(-n+3) { border-bottom: none; }

.note {
  margin-top: 2rem; padding: 1.25rem 1.5rem; border-radius: 1rem;
  background: var(--cream-deep); border: 1px solid var(--line); color: var(--muted);
}

/* —— Footer —— */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: var(--cream);
}

.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}

.footer-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem; color: var(--forest-deep); margin-bottom: 0.5rem;
}

.footer-grid p,
.footer-grid a { color: var(--muted); font-size: 0.95rem; }

.footer-grid h4 {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 0.75rem;
}

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: 0.9rem; color: var(--muted);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-grid,
  .grid-4,
  .footer-grid,
  .layout,
  .layout--contact { grid-template-columns: 1fr; }

  .grid-4 { grid-template-columns: 1fr 1fr; }

  .names { grid-template-columns: 1fr 1fr; }
  .names li:nth-last-child(-n+3) { border-bottom: 1px dashed var(--line); }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .nav-links { gap: 0.85rem; }
  .names { grid-template-columns: 1fr; }
}


/* Hide Concrete public footer chrome */
.ccm-page .ccm-page-footer-login,
footer .ccm-account-menu,
.ccm-toolbar + .ccm-page .built-with,
a[href*="concrete5.org"],
.ccm-logo-footer { display: none !important; }


/* Mobile nav */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--forest-deep); border-radius: 2px;
}
@media (max-width: 900px) {
  .nav { position: relative; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem 0 0.25rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.55rem 0.25rem; }
  .nav-links .btn { width: 100%; margin-top: 0.35rem; }
}


/* Contact form success — obvious confirmation */
.mca-success-banner {
  padding: 3.5rem 0 4rem;
  background:
    linear-gradient(180deg, rgba(31,77,58,0.08), transparent 55%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.mca-success-panel {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border: 2px solid var(--forest);
  border-radius: 1.25rem;
  padding: 2rem 2.25rem;
  box-shadow: 0 18px 40px rgba(42, 42, 40, 0.08);
  max-width: 48rem;
}
.mca-success-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 700;
  line-height: 1;
}
.mca-success-panel h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}
.mca-success-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 1.5rem;
}
.ccm-block-type-form .alert-success {
  background: #e6f2ec;
  border: 2px solid var(--forest);
  color: var(--forest-deep);
  border-radius: 0.85rem;
  padding: 1rem 1.15rem;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
@media (max-width: 560px) {
  .mca-success-panel { flex-direction: column; padding: 1.5rem; }
}
