/*
  Rocky Mountain Logic v1.1
  Mobile-first, “poster on warm paper” aesthetic to match RML art & flyer.
*/

/* ROOT & GLOBAL TOKENS ---------------------------------------------------- */

:root {
  /* Paper + ink palette tuned toward your drawings and flyer */
  --rml-page-bg: #e8ddc8;      /* warm paper outside frame */
  --rml-page-edge: #d1c2a4;
  --rml-bg: #f7f1e6;           /* inner poster background */
  --rml-surface: #fbf7ef;
  --rml-blue: #123a5a;         /* deep ink blue */
  --rml-blue-soft: #214c71;
  --rml-orange: #f7933c;       /* warm orange accent */
  --rml-plum: #5e4368;         /* subtle secondary for future use */
  --rml-text: #2c2621;
  --rml-text-muted: #5e5550;
  --rml-border-subtle: #d2c5b4;
  --rml-shadow-soft: 0 18px 40px rgba(40, 27, 14, 0.16);
  --rml-radius-lg: 24px;
  --rml-radius-md: 16px;
  --rml-radius-pill: 999px;
  --rml-focus-ring: 0 0 0 3px rgba(247, 147, 60, 0.65);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--rml-text);
  background-color: var(--rml-page-bg);
  background-image:
    radial-gradient(circle at top left, rgba(247, 147, 60, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(18, 58, 90, 0.13), transparent 60%);
  line-height: 1.6;
}

/* PAGE FRAME / POSTER ----------------------------------------------------- */

.page-frame {
  max-width: 1100px;
  margin: 1.75rem auto 1.5rem;
  padding: 0;
  background-color: var(--rml-bg);
  border-radius: 32px;
  box-shadow:
    0 0 0 1px rgba(123, 97, 67, 0.45),
    var(--rml-shadow-soft);
  overflow: hidden;
  position: relative;
}

.page-frame::before {
  /* thin inner border like a print margin */
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  border: 1px solid rgba(123, 97, 67, 0.3);
  pointer-events: none;
}

/* ACCESSIBILITY HELPERS --------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background-color: var(--rml-blue);
  color: #ffffff;
  z-index: 1000;
  border-radius: 0 0 var(--rml-radius-md) var(--rml-radius-md);
}

.skip-link:focus {
  left: 0.5rem;
}

/* Focus styles for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--rml-focus-ring);
}

/* LAYOUT UTILITIES -------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  color: var(--rml-blue);
}

.section-intro {
  margin: 0;
  color: var(--rml-text-muted);
  font-size: 0.98rem;
}

/* HEADER ------------------------------------------------------------ */

/* Turn the bare <header> into the sticky bar the design expects */
header {
  background: linear-gradient(
      90deg,
      rgba(247, 147, 60, 0.16),
      transparent 18%,
      transparent 82%,
      rgba(18, 58, 90, 0.16)
    ),
    var(--rml-surface);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(140, 113, 86, 0.55);
  padding: 0.75rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Logo image in the header */
header .logo-img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(28, 26, 21, 0.55);
  object-fit: cover;
  flex-shrink: 0;
}

/* Brand text stack next to logo */
.brand-lines {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rml-blue);
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--rml-text-muted);
}

/* HOME HERO STYLES -------------------------------------------------------- */

.hero {
  padding-top: 2.8rem;
  padding-bottom: 3.6rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr);
  gap: 2.5rem;
}

.hero-eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rml-text-muted);
  margin: 0 0 0.6rem;
}

.hero-copy h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
  color: var(--rml-blue);
}

.hero-subtitle {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--rml-text-muted);
}

.hero-body {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.hero-strip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  background-color: var(--rml-surface);
  border-radius: var(--rml-radius-pill);
  box-shadow: var(--rml-shadow-soft);
  font-size: 0.82rem;
  color: var(--rml-blue-soft);
}

.hero-dot {
  opacity: 0.75;
}

/* HERO VISUAL & ASIDE ----------------------------------------------------- */

.hero-visual {
  display: grid;
  gap: 1.1rem;
}

.hero-art {
  margin: 0;
  border-radius: var(--rml-radius-lg);
  overflow: hidden;
  background-color: #f3e7d8;
  box-shadow: var(--rml-shadow-soft);
  border: 1px solid rgba(120, 92, 58, 0.6);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-art-caption {
  margin: 0;
  padding: 0.65rem 0.85rem 0.75rem;
  font-size: 0.82rem;
  color: var(--rml-text-muted);
  background: linear-gradient(to right, #f3e7d8, #f7f1e6);
}

/* HERO ASIDE CARD (used in current markup) */
.hero-aside {
  padding: 1.05rem 1rem;
  border-radius: var(--rml-radius-lg);
  background: linear-gradient(145deg, #273a55, #1a283e);
  color: #e8edf4;
  box-shadow: var(--rml-shadow-soft);
  border: 1px solid rgba(7, 19, 33, 0.65);
}

.hero-aside-heading {
  font-size: 1.02rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.hero-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.9rem;
}

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.hero-list li::before {
  content: "•";
  color: var(--rml-orange);
  margin-top: 0.1rem;
}

/* CHAT PLACEHOLDER -------------------------------------------------------- */

.chat-widget-placeholder {
  margin-top: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  background-color: #f3e7d8;
  border: 1px dashed rgba(120, 92, 58, 0.7);
  font-size: 0.8rem;
  color: var(--rml-text-muted);
}

/* BUTTONS ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: var(--rml-radius-pill);
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.btn-primary {
  background: radial-gradient(circle at 20% 15%, #ffe8c1, #f7933c);
  color: #241c14;
  box-shadow: 0 12px 26px rgba(40, 27, 14, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(40, 27, 14, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 7px 16px rgba(40, 27, 14, 0.45);
}

/* SERVICE TILE GRID ------------------------------------------------------- */

.services {
  background:
    radial-gradient(circle at top left, rgba(247, 147, 60, 0.08), transparent 55%),
    radial-gradient(circle at top right, rgba(18, 58, 90, 0.07), transparent 55%);
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}

.service-card {
  background-color: var(--rml-surface);
  border-radius: var(--rml-radius-md);
  padding: 1.4rem 1.25rem;
  box-shadow: var(--rml-shadow-soft);
  border: 1px solid rgba(120, 92, 58, 0.4);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  /* subtle “colored pencil” corner accent */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(247, 147, 60, 0.22), transparent 55%),
    linear-gradient(-45deg, rgba(18, 58, 90, 0.12), transparent 60%);
  mix-blend-mode: multiply;
  opacity: 0.65;
  pointer-events: none;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--rml-blue-soft);
  position: relative;
}

.service-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--rml-text-muted);
  position: relative;
}

/* ABOUT SECTION ----------------------------------------------------------- */

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr);
  gap: 2rem;
}

.about-main p {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.about-aside {
  background-color: var(--rml-surface);
  border-radius: var(--rml-radius-md);
  padding: 1.15rem 1.15rem 1.2rem;
  box-shadow: var(--rml-shadow-soft);
  border: 1px solid rgba(120, 92, 58, 0.45);
}

.about-aside h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.02rem;
  color: var(--rml-blue-soft);
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
}

.values-list li {
  margin-bottom: 0.65rem;
}

.value-label {
  display: block;
  font-weight: 600;
}

.value-desc {
  display: block;
  color: var(--rml-text-muted);
  font-size: 0.9rem;
}

/* CONTACT SECTION --------------------------------------------------------- */

.contact {
  background-color: #efe3d1;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.8rem;
}

.contact-form {
  background-color: var(--rml-surface);
  border-radius: var(--rml-radius-md);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--rml-shadow-soft);
  border: 1px solid rgba(120, 92, 58, 0.5);
}

.field-group {
  margin-bottom: 1rem;
}

.field-group label,
.field-group legend {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--rml-blue-soft);
}

.required-indicator {
  color: var(--rml-orange);
  margin-left: 0.18rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.65rem;
  border: 1px solid var(--rml-border-subtle);
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--rml-text);
  background-color: #ffffff;
}

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

input::placeholder,
textarea::placeholder {
  color: #a39a91;
}

.choice-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.choice-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.choice-item input[type="radio"] {
  accent-color: var(--rml-orange);
}

.form-status {
  min-height: 1.1rem;
  margin: 0.4rem 0 0.2rem;
  font-size: 0.85rem;
  color: var(--rml-blue-soft);
}

.contact-note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--rml-text-muted);
}

.contact-aside {
  font-size: 0.94rem;
  color: var(--rml-text-muted);
}

.contact-aside h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.02rem;
  color: var(--rml-blue-soft);
}

/* KNOWLEDGE BASE SECTION -------------------------------------------------- */

.knowledge-base {
  background: radial-gradient(circle at bottom, rgba(18, 58, 90, 0.12), transparent 60%);
}

.kb-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.3rem;
  margin-top: 1.5rem;
}

.kb-card {
  background-color: var(--rml-surface);
  border-radius: var(--rml-radius-md);
  padding: 1.2rem 1.2rem;
  box-shadow: var(--rml-shadow-soft);
  border: 1px solid rgba(120, 92, 58, 0.45);
}

.kb-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--rml-blue-soft);
}

.kb-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--rml-text-muted);
}

/* FOOTER ------------------------------------------------------------------ */

.site-footer {
  background-color: var(--rml-blue);
  color: #e5edf6;
  padding: 1.5rem 0;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.footer-brand {
  margin: 0;
  font-weight: 600;
}

.footer-copy {
  margin: 0;
  color: #c6d3e5;
}

.footer-meta {
  margin: 0;
}

/* TYPOGRAPHY & LINKS ------------------------------------------------------ */

p {
  font-size: 0.96rem;
}

a {
  color: var(--rml-blue-soft);
}

a:hover {
  text-decoration: underline;
}

/* RESPONSIVE BREAKPOINTS -------------------------------------------------- */

@media (min-width: 640px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    align-items: flex-start;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kb-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  }

  .about-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  }
}

@media (min-width: 900px) {
  .section {
    padding: 4rem 0;
  }

  .hero-copy h1 {
    font-size: 2.25rem;
  }

  header {
    padding: 0.8rem 1.8rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
