/* Red Sand Group — static styles (theme + layout helpers) */
:root {
  --color-bg: #100e0c;
  --color-surface: #1a1613;
  --color-surface-2: #221c18;
  --color-fg: #f3ebe3;
  --color-muted: #a89888;
  --color-subtle: #7a6c60;
  --color-accent: #b54a32;
  --color-accent-soft: #c45d44;
  --color-border: rgb(243 235 227 / 0.12);
  --color-border-strong: rgb(243 235 227 / 0.22);
  --font-sans: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --tracking-label: 0.18em;
  --tracking-display: -0.03em;
  --tracking-tight: -0.02em;
  --shadow-border: 0 0 0 1px rgb(243 235 227 / 0.08);
  --shadow-border-hover: 0 0 0 1px rgb(243 235 227 / 0.16);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-bg);
  color: var(--color-fg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  line-height: 1.5;
}

h1, h2, h3 {
  text-wrap: balance;
  font-family: var(--font-display);
  letter-spacing: var(--tracking-display);
  line-height: 1.15;
  margin: 0;
}

p { text-wrap: pretty; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
::selection { background-color: var(--color-accent); color: var(--color-fg); }

.font-display { font-family: var(--font-display); }
.tracking-label { letter-spacing: var(--tracking-label); }
.tracking-tight { letter-spacing: var(--tracking-tight); }

.press-scale:active:not(:disabled) { transform: scale(0.96); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.rise-in { animation: rise-in 500ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.rise-in-1 { animation-delay: 80ms; }
.rise-in-2 { animation-delay: 160ms; }
.rise-in-3 { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Layout */
.site { display: flex; min-height: 100dvh; flex-direction: column; background: var(--color-bg); color: var(--color-fg); }
.site-main { flex: 1 1 auto; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 72rem; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 640px) { .container { padding-left: 2rem; padding-right: 2rem; } }

/* Header */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
  border-bottom: 1px solid transparent;
  background: transparent;
}
.site-header.is-solid {
  border-bottom-color: var(--color-border);
  background: var(--color-bg);
}
.header-inner {
  display: flex; height: 4rem; align-items: center; justify-content: space-between;
}
.wordmark { display: flex; align-items: center; gap: 0.75rem; }
.wordmark img { width: 2.5rem; height: 2.5rem; object-fit: contain; border-radius: var(--radius-xs); }
.wordmark-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark-text .name { font-family: var(--font-display); font-size: 1rem; letter-spacing: var(--tracking-tight); color: var(--color-fg); }
.wordmark-text .sub { margin-top: 0.125rem; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--color-muted); }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }
.nav-desktop a {
  font-size: 0.875rem; letter-spacing: var(--tracking-tight);
  color: var(--color-muted); transition: color 0.15s;
}
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--color-fg); }

.menu-toggle {
  display: flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--color-fg); padding: 0;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-nav {
  display: none; border-top: 1px solid var(--color-border); background: var(--color-bg);
}
.mobile-nav.is-open { display: block; }
@media (min-width: 768px) { .mobile-nav { display: none !important; } }
.mobile-nav nav {
  display: flex; flex-direction: column; gap: 0.25rem;
  max-width: 72rem; margin: 0 auto; padding: 1.5rem 1.25rem;
}
.mobile-nav a {
  display: flex; min-height: 2.75rem; align-items: center;
  font-family: var(--font-display); font-size: 1.125rem; letter-spacing: var(--tracking-tight);
  color: var(--color-muted);
}
.mobile-nav a.is-active { color: var(--color-fg); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: absolute; left: 1rem; top: 0.75rem; z-index: 50;
  width: auto; height: auto; padding: 0.5rem 0.75rem; margin: 0;
  overflow: visible; clip: auto; white-space: normal;
  background: var(--color-fg); color: var(--color-bg);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 500; border: 0; text-decoration: none;
  transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.btn:active:not(:disabled) { transform: scale(0.96); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn-primary { background: var(--color-fg); color: var(--color-bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-fg) 90%, transparent); }
.btn-secondary {
  background: transparent; color: var(--color-fg);
  box-shadow: var(--shadow-border);
}
.btn-secondary:hover { box-shadow: var(--shadow-border-hover); }
.btn-sm { height: 2.5rem; border-radius: var(--radius-sm); padding: 0 1rem; font-size: 0.875rem; }
.btn-md { height: 2.75rem; border-radius: var(--radius-md); padding: 0 1.25rem; font-size: 0.875rem; }
.btn-lg { height: 3rem; border-radius: var(--radius-md); padding: 0 1.5rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* Hero / sections */
.hero {
  position: relative; isolation: isolate; min-height: 100dvh;
}
.hero-about, .hero-services { min-height: 70dvh; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; outline: 1px solid rgb(243 235 227 / 0.1); outline-offset: -1px;
}
.hero-bg.object-bottom { object-position: bottom; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--color-bg), color-mix(in srgb, var(--color-bg) 55%, transparent), color-mix(in srgb, var(--color-bg) 25%, transparent));
}
.hero-content {
  position: relative; display: flex; min-height: 100dvh; max-width: 72rem;
  margin: 0 auto; flex-direction: column; justify-content: flex-end;
  padding: 7rem 1.25rem 4rem;
}
.hero-about .hero-content, .hero-services .hero-content { min-height: 70dvh; }
@media (min-width: 640px) {
  .hero-content { padding-left: 2rem; padding-right: 2rem; padding-bottom: 5rem; }
}

.label {
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: color-mix(in srgb, var(--color-fg) 80%, transparent);
}
.label-muted { color: var(--color-subtle); }
.label-accent { color: var(--color-accent); }

.section { border-top: 1px solid var(--color-border); }
.section-surface { background: var(--color-surface); }
.section-pad { padding: 4rem 0; }
@media (min-width: 768px) { .section-pad { padding: 6rem 0; } }

.grid-12 { display: grid; gap: 2.5rem; }
@media (min-width: 768px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-start-5 { grid-column-start: 5; }
  .col-start-6 { grid-column-start: 6; }
  .col-start-9 { grid-column-start: 9; }
}
@media (min-width: 1024px) {
  .lg-grid-12 { display: grid; gap: 2.5rem; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg-col-4 { grid-column: span 4; }
  .lg-col-5 { grid-column: span 5; }
  .lg-col-7 { grid-column: span 7; }
  .lg-col-start-9 { grid-column-start: 9; }
}

/* Services page: title + body side by side; body stays wide enough to read */
.service-block {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .service-block {
    grid-template-columns: minmax(11rem, 0.9fr) minmax(22rem, 2.2fr);
    gap: 2.5rem 3rem;
    align-items: start;
  }
}
.service-block .service-body {
  min-width: 0;
  max-width: 42rem;
}

/* Contact page: form + sidebar; form stays wide enough to use */
.contact-block {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-block {
    grid-template-columns: minmax(22rem, 1.6fr) minmax(14rem, 0.9fr);
    gap: 3rem 4rem;
  }
}
.contact-form-col {
  min-width: 0;
  max-width: 40rem;
}
.contact-aside {
  min-width: 0;
}

.text-muted { color: var(--color-muted); }
.text-subtle { color: var(--color-subtle); }
.text-fg { color: var(--color-fg); }
.text-accent { color: var(--color-accent); }

.lead { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; letter-spacing: var(--tracking-tight); }
@media (min-width: 640px) { .lead { font-size: 1.875rem; } }

.display-xl { font-family: var(--font-display); font-size: 3rem; letter-spacing: var(--tracking-tight); line-height: 1.1; }
@media (min-width: 640px) { .display-xl { font-size: 3.75rem; } }
@media (min-width: 768px) { .display-xl { font-size: 4.5rem; } }

.display-lg { font-family: var(--font-display); font-size: 2.25rem; letter-spacing: var(--tracking-tight); }
@media (min-width: 640px) { .display-lg { font-size: 3rem; } }

.display-md { font-family: var(--font-display); font-size: 1.875rem; letter-spacing: var(--tracking-tight); }
.display-sm { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: var(--tracking-tight); }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-sm { max-width: 24rem; }

.btn-row { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } }

/* Cards / lists */
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li { padding: 1.5rem 0; border-top: 1px solid var(--color-border); }
.service-list li:first-child { padding-top: 0; border-top: 0; }
.service-list li:last-child { padding-bottom: 0; }
.service-link {
  display: flex; flex-direction: column; gap: 0.5rem;
}
@media (min-width: 640px) {
  .service-link { flex-direction: row; gap: 2rem; }
}
.service-link:hover .arrow { transform: translateX(4px); color: var(--color-fg); }
.arrow { transition: transform 0.15s, color 0.15s; color: var(--color-subtle); flex-shrink: 0; }

.principles {
  display: grid; gap: 1px; background: var(--color-border);
  margin-top: 3rem;
}
@media (min-width: 768px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle { background: var(--color-surface); padding: 1.5rem; }
@media (min-width: 640px) { .principle { padding: 2rem; } }

.creds { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 640px) { .creds { grid-template-columns: 1fr 1fr; } }
.creds dt { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--color-subtle); }
.creds dd { margin: 0.5rem 0 0; color: var(--color-fg); }

.img-frame { overflow: hidden; border-radius: var(--radius-xl); }
.img-frame img {
  width: 100%; object-fit: cover;
  outline: 1px solid rgb(243 235 227 / 0.1); outline-offset: -1px;
}
.aspect-4-3 { aspect-ratio: 4/3; }
.aspect-3-2 { aspect-ratio: 3/2; }

.card {
  border-radius: var(--radius-xl); background: var(--color-surface);
  padding: 1.5rem; box-shadow: var(--shadow-border);
}
@media (min-width: 640px) { .card { padding: 2rem; } }
.cards-2 { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .cards-2 { grid-template-columns: 1fr 1fr; } }

.points { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .points { grid-template-columns: 1fr 1fr; } }
.points li {
  border-top: 1px solid var(--color-border); padding-top: 0.75rem;
  font-size: 0.875rem; color: var(--color-muted);
}

.cta-row {
  display: flex; flex-direction: column; gap: 1.5rem;
}
@media (min-width: 768px) {
  .cta-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

/* Close / contact hero */
.close-section {
  position: relative; isolation: isolate; overflow: hidden;
  border-top: 1px solid var(--color-border);
}
.close-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.3;
}
.close-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-bg) 80%, transparent); }
.close-content {
  position: relative; max-width: 72rem; margin: 0 auto;
  padding: 5rem 1.25rem;
}
@media (min-width: 640px) { .close-content { padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 768px) { .close-content { padding-top: 7rem; padding-bottom: 7rem; } }

/* Contact form */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 500; letter-spacing: var(--tracking-tight); color: var(--color-muted);
}
.field .optional { font-weight: 400; color: var(--color-subtle); }
.field .error { font-size: 0.875rem; color: var(--color-accent); margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-fg);
  box-shadow: var(--shadow-border);
  font-family: inherit; font-size: 1rem;
  transition: box-shadow 0.15s ease-out;
}
.field input, .field select { height: 2.75rem; padding: 0 1rem; }
.field textarea { min-height: 8rem; padding: 0.75rem 1rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-subtle); }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: var(--shadow-border-hover); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--color-accent); outline-offset: 2px;
}
.form-footer {
  display: flex; flex-direction: column; gap: 0.75rem;
}
@media (min-width: 640px) {
  .form-footer { flex-direction: row; align-items: center; justify-content: space-between; }
}
.form-footer p { font-size: 0.75rem; line-height: 1.5; color: var(--color-subtle); max-width: 20rem; }
.form-success {
  border-radius: var(--radius-xl); background: var(--color-surface);
  padding: 1.5rem; box-shadow: var(--shadow-border);
}
@media (min-width: 640px) { .form-success { padding: 2rem; } }

.aside-block { margin-bottom: 2rem; }
.aside-block ul { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.aside-block li { font-size: 0.875rem; line-height: 1.6; color: var(--color-muted); margin-top: 0.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-bg); }
.footer-grid {
  display: grid; gap: 2.5rem; max-width: 72rem; margin: 0 auto;
  padding: 3.5rem 1.25rem;
}
@media (min-width: 640px) { .footer-grid { padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .footer-brand { grid-column: span 5; }
  .footer-nav { grid-column: span 3; }
  .footer-contact { grid-column: span 4; }
}
.footer-brand .mark { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand .mark img { width: 1.5rem; height: 1.5rem; border-radius: var(--radius-xs); object-fit: contain; }
.footer-brand .mark span { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: var(--tracking-tight); }
.footer-brand p { margin-top: 1rem; max-width: 24rem; font-size: 0.875rem; line-height: 1.6; color: var(--color-muted); }
.footer-nav ul, .footer-contact ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.875rem; color: var(--color-muted); transition: color 0.15s; }
.footer-nav a:hover { color: var(--color-fg); }
.footer-contact a { display: inline-block; margin-top: 1rem; font-size: 0.875rem; color: var(--color-fg); text-underline-offset: 4px; }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact .phone, .footer-contact .loc { margin-top: 0.5rem; font-size: 0.875rem; color: var(--color-muted); }
.footer-contact .note { margin-top: 1.5rem; max-width: 20rem; font-size: 0.875rem; line-height: 1.6; color: var(--color-subtle); }
.footer-bar {
  border-top: 1px solid var(--color-border);
}
.footer-bar-inner {
  display: flex; flex-direction: column; gap: 0.5rem;
  max-width: 72rem; margin: 0 auto; padding: 1.25rem;
  font-size: 0.75rem; color: var(--color-subtle);
}
@media (min-width: 640px) {
  .footer-bar-inner {
    flex-direction: row; align-items: center; justify-content: space-between;
    padding-left: 2rem; padding-right: 2rem;
  }
}

/* Utility */
.space-y-5 > * + * { margin-top: 1.25rem; }
.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-lg { width: 1.25rem; height: 1.25rem; }

.two-col {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; } }
