/* ==========================================================
   Castle Point Marketing - styles.css
   Shared by every page. Colors live in the :root block below.
   To change a color site-wide, change it there once.
   ========================================================== */

:root {
  --navy: #04243C;
  --gold: #9C763A;          /* logo gold: rules, icons, small accents */
  --gold-btn: #B08A45;      /* button gold: used with navy text */
  --gold-btn-hover: #C29B52;
  --stone: #C8C0B8;
  --pale: #E9E3DA;
  --parchment: #F7F3EC;
  --white: #FFFFFF;
  --muted: #3F566A;
  --field-border: #8B857D;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 64px;
  --wrap: 1100px;
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--parchment);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--navy); }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.on-navy :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--parchment);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.3rem, 6.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}
.section-intro {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--parchment);
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  background: var(--gold-btn);
  border: 2px solid var(--gold-btn);
  border-radius: 6px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  color: var(--navy);
  background: var(--gold-btn-hover);
  border-color: var(--gold-btn-hover);
}
.btn-small { padding: 0.55rem 1rem; font-size: 0.975rem; }
.btn[disabled] { opacity: 0.65; cursor: wait; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.98);
  border-bottom: 1px solid var(--stone);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.brand img { height: 28px; width: auto; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.92rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand-name span { color: var(--gold); }
.brand:hover { color: var(--navy); }
@media (max-width: 359px) {
  .brand-name { display: none; }
  .brand img { height: 34px; }
}
@media (min-width: 480px) {
  .brand img { height: 34px; }
  .brand-name { font-size: 1rem; }
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: none;
  border: 1.5px solid var(--stone);
  border-radius: 6px;
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.nav-open .menu-toggle .icon-open { display: none; }
.nav-open .menu-toggle .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--parchment);
  border-bottom: 1px solid var(--stone);
  box-shadow: 0 10px 18px rgba(4, 36, 60, 0.12);
}
.nav-open .site-nav { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1.25rem;
}
.site-nav li a:not(.btn) {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  text-decoration: none;
  border-bottom: 1px solid var(--pale);
}
.site-nav li a:not(.btn):hover { color: var(--gold); }
.site-nav li.nav-cta { padding-top: 1rem; }
.site-nav li.nav-cta .btn { display: block; }

@media (min-width: 880px) {
  .menu-toggle { display: none; }
  .brand img { height: 44px; }
  .brand-name { font-size: 1.1rem; }
  .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 0;
  }
  .site-nav li a:not(.btn) {
    display: inline;
    padding: 0.3rem 0;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    border: 0;
    border-bottom: 2px solid transparent;
  }
  .site-nav li a:not(.btn):hover { border-bottom-color: var(--gold); color: var(--navy); }
  .site-nav li.nav-cta { padding: 0; }
  .site-nav li.nav-cta .btn { display: inline-block; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 7vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}
.hero-copy .lede {
  font-size: 1.25rem;
  max-width: 32rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.hero-card { position: relative; margin: 0; }
.hero-card a { display: block; }
.hero-card img {
  width: 100%;
  border: 1px solid var(--stone);
  box-shadow: 0 14px 30px rgba(4, 36, 60, 0.18);
  background: var(--white);
}
.hero-card figcaption,
.product-figure figcaption {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.hero-card figcaption strong { color: var(--navy); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.02fr 0.98fr; gap: 3.5rem; }
}

/* Differentiators */
.points {
  list-style: none;
  margin: clamp(2.5rem, 6vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.points li {
  border-top: 3px solid var(--gold);
  padding-top: 1rem;
}
.points h3 { margin-bottom: 0.35em; }
.points p { margin: 0; color: var(--muted); }
@media (min-width: 800px) {
  .points { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* ---------- Direct Mail ---------- */
.direct-mail { background: var(--white); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.product {
  display: grid;
  gap: 1.75rem;
  margin-top: clamp(2.5rem, 6vw, 3.75rem);
  align-items: center;
}
.product-figure { margin: 0; }
.product-figure img {
  width: 100%;
  border: 1px solid var(--stone);
  box-shadow: 0 10px 24px rgba(4, 36, 60, 0.14);
  background: var(--white);
}
.product-copy h3 { font-size: 1.6rem; }
.product-copy .size {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--gold);
}
.specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
  padding: 0;
}
.specs li {
  background: var(--pale);
  border: 1px solid var(--stone);
  padding: 0.25rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.ticks {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}
.ticks li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.7rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.95rem;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2.5px solid var(--gold);
  border-bottom: 2.5px solid var(--gold);
  transform: rotate(-45deg);
}
@media (min-width: 820px) {
  .product { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .product.reverse .product-figure { order: 2; }
}

.also {
  list-style: none;
  margin: clamp(3rem, 7vw, 4.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.also li { border-top: 1px solid var(--stone); padding-top: 1rem; }
.also h3 { font-size: 1.2rem; margin-bottom: 0.3em; }
.also p { margin: 0; color: var(--muted); }
@media (min-width: 800px) {
  .also { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.cta-band {
  margin-top: clamp(2.75rem, 6vw, 4rem);
  padding: clamp(1.75rem, 5vw, 2.5rem);
  background: var(--navy);
  color: var(--parchment);
  text-align: center;
}
.cta-band h3 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin-bottom: 0.4em; }
.cta-band p { margin: 0 auto 1.4rem; max-width: 34rem; color: var(--pale); }

/* ---------- Services ---------- */
.services { background: var(--navy); color: var(--parchment); }
.services .section-intro { color: var(--pale); }
.service-grid {
  list-style: none;
  margin: 2.25rem 0 2rem;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.service-grid li { display: flex; gap: 1.1rem; align-items: flex-start; }
.service-grid svg {
  flex: none;
  width: 56px;
  height: 56px;
  stroke: var(--gold-btn);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-grid h3 { margin-bottom: 0.25em; font-size: 1.35rem; }
.service-grid p { margin: 0; color: var(--pale); }
@media (min-width: 800px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .service-grid li { flex-direction: column; gap: 0.9rem; }
}

/* ---------- About ---------- */
.about { background: var(--pale); }
.about-grid { display: grid; gap: 2.25rem; align-items: center; }
.about-logo { width: 100%; max-width: 360px; margin: 0 auto; }
.about-copy { max-width: 36rem; }
@media (min-width: 820px) {
  .about-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; }
  .about-logo { max-width: 100%; }
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-top: 4px solid var(--gold);
  padding: clamp(1.25rem, 4vw, 2rem);
  max-width: 36rem;
}
.field { margin-bottom: 1.1rem; }
.field label,
.field legend {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  padding: 0;
}
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;           /* 16px stops iPhones zooming in on focus */
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--field-border);
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 3px solid var(--navy);
  outline-offset: 1px;
}
fieldset.field { border: 0; margin: 0 0 1.1rem; padding: 0; min-width: 0; }
.checks { display: grid; gap: 0.5rem; }
.checks label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400;
  margin: 0;
  padding: 0.4rem 0;
  cursor: pointer;
}
.checks input { width: 1.25rem; height: 1.25rem; accent-color: var(--navy); }

/* Honeypot: real visitors never see this; spam bots fill it in */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.field-error {
  margin: 0.4rem 0 0;
  color: #A33A1A;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-error {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  background: #FBEDE6;
  border-left: 4px solid #A33A1A;
  font-size: 0.975rem;
}
.form-thanks {
  background: var(--white);
  border: 1px solid var(--stone);
  border-top: 4px solid var(--gold);
  padding: clamp(1.25rem, 4vw, 2rem);
  max-width: 36rem;
}
.form-thanks h3 { margin-bottom: 0.3em; }
.form-thanks p { margin: 0; }
[hidden] { display: none !important; }

.contact-grid { display: grid; gap: 2.25rem; }
.contact-side .email-line { font-size: 1.15rem; font-weight: 700; }
.contact-side .advertise-line {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
}

/* ---------- Request Pricing page ---------- */
.page-head { padding: clamp(2.5rem, 7vw, 4rem) 0 1rem; }
.page-head .section-intro { margin-bottom: 0.5rem; }
.back-link { display: inline-block; margin-bottom: 1.25rem; font-weight: 600; }

/* ---------- Privacy Policy (long-form text) ---------- */
.prose { max-width: 42rem; }
.prose h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.4em;
}
.prose p { margin: 0 0 1em; }
.prose .updated { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--pale);
  padding: 2.5rem 0 2rem;
}
.site-footer a { color: var(--parchment); }
.site-footer a:hover { color: var(--gold-btn); }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--parchment);
  margin: 0 0 0.3rem;
}
.footer-name span { color: var(--gold-btn); }
.footer-grid p { margin: 0 0 0.35rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 0.2rem 0; }
.legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(233, 227, 218, 0.25); font-size: 0.9rem; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
}
