/* ============================================
   Towne Interiors  -  Design System
   ============================================ */

/* ---- Font Faces ---- */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/-nFnOHM81r4j6k0gjAW3mujVU2B2K_c.ttf) format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf) format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuI6fMZg.ttf) format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuGKYMZg.ttf) format('truetype');
}

/* ---- Variables ---- */
:root {
  --paper: #F5F0E8;
  --ink: #2C1810;
  --wood: #8B5E3C;
  --signal: #C75D3A;
  --rule: #D4C8B8;
  --muted: #9A8B7A;
  --light: #FFFFFF;
  --shadow: rgba(44, 24, 16, 0.06);
  --shadow-deep: rgba(44, 24, 16, 0.12);

  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --radius: 2px;
  --transition: 0.25s ease-out;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--wood);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

a:hover, a:focus {
  color: var(--signal);
}

a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 500;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  top: 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.kicker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-3);
}

p:last-child {
  margin-bottom: 0;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

.section {
  padding: var(--space-6) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-7) 0;
  }
}

/* ---- Sample Board Frame ---- */
.board {
  background: var(--light);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
  padding: var(--space-4);
}

@media (min-width: 768px) {
  .board {
    padding: var(--space-5);
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--signal);
  color: var(--light);
  border-color: var(--signal);
}

.btn--primary:hover,
.btn--primary:focus {
  background: #B54D2E;
  border-color: #B54D2E;
  color: var(--light);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--secondary:hover,
.btn--secondary:focus {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

/* ---- Header ---- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.site-header__logo img {
  height: 40px;
  width: auto;
}

.site-header__phone {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wood);
  text-decoration: none;
}

@media (min-width: 768px) {
  .site-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
}

/* Nav */
.site-nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }

  .site-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    padding: 4px 0;
    position: relative;
  }

  .site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--signal);
    transition: width var(--transition);
  }

  .site-nav a:hover,
  .site-nav a:focus {
    color: var(--signal);
  }

  .site-nav a:hover::after,
  .site-nav a:focus::after {
    width: 100%;
  }

  .site-nav a[aria-current="page"] {
    color: var(--signal);
  }

  .site-nav a[aria-current="page"]::after {
    width: 100%;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 1px;
}

.hamburger[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--paper);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--rule);
}

.mobile-nav a[aria-current="page"] {
  color: var(--signal);
}

/* ---- Hero ---- */
.hero {
  padding: var(--space-5) 0 var(--space-6);
}

.hero__inner {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

.hero__image {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__content h1 {
  margin-bottom: var(--space-1);
}

.hero__content p {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

/* Hero variant: text-only (inner pages) */
.hero--simple {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero--simple h1 {
  margin-bottom: var(--space-2);
}

.hero--simple p {
  color: var(--muted);
  margin-bottom: 0;
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--light);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow-deep);
}

.card__image {
  overflow: hidden;
}

.card__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.card__body h3,
.card__body h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.card__body p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 0;
  flex: 1;
}

/* ---- Band / Board sections ---- */
.band {
  padding: var(--space-5) 0;
}

.board-section {
  margin-bottom: var(--space-4);
}

.board-section:last-child {
  margin-bottom: 0;
}

/* ---- Value strip ---- */
.value-strip {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: var(--space-4) var(--space-3);
}

.value-strip h2 {
  color: var(--paper);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 0;
}

/* ---- Promise cards ---- */
.promise-card {
  text-align: center;
  padding: var(--space-4);
}

.promise-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.promise-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ---- Category list ---- */
.category-group {
  margin-bottom: var(--space-5);
}

.category-group:last-child {
  margin-bottom: 0;
}

.category-group h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--rule);
}

.category-list {
  display: grid;
  gap: var(--space-2);
}

@media (min-width: 640px) {
  .category-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-list a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--light);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: border-color var(--transition), background var(--transition);
}

.category-list a:hover,
.category-list a:focus {
  border-color: var(--wood);
  background: var(--paper);
  color: var(--wood);
}

.category-list a::after {
  content: '\2192';
  margin-left: auto;
  color: var(--muted);
}

/* ---- Service cards ---- */
.service-card {
  padding: var(--space-4);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

/* ---- Contact section ---- */
.contact-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h2 {
  margin-bottom: var(--space-3);
}

.contact-block {
  margin-bottom: var(--space-4);
}

.contact-block:last-child {
  margin-bottom: 0;
}

.contact-block h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.contact-block p,
.contact-block address {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: var(--space-1);
}

.contact-block a {
  color: var(--wood);
  text-decoration: none;
  font-weight: 500;
}

.contact-block a:hover {
  text-decoration: underline;
}

.hours-list {
  list-style: none;
  font-size: 0.9375rem;
  color: var(--muted);
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-list .day {
  color: var(--ink);
  font-weight: 500;
}

/* ---- Form ---- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.form__group input,
.form__group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--light);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--wood);
  box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.15);
}

.form__group textarea {
  min-height: 120px;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form__notice {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---- Map ---- */
.map-embed {
  width: 100%;
  height: 320px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-6) 0 var(--space-4);
}

.site-footer a {
  color: var(--paper);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.site-footer a:hover,
.site-footer a:focus {
  opacity: 1;
  color: var(--paper);
}

.footer__grid {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-2);
  opacity: 0.9;
}

.footer__brand p {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 0;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
  color: var(--paper);
  opacity: 0.9;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col li {
  font-size: 0.875rem;
}

.footer__hours {
  list-style: none;
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer__hours li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.footer__social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 240, 232, 0.3);
  border-radius: var(--radius);
  opacity: 0.7;
}

.footer__social a:hover {
  opacity: 1;
  border-color: rgba(245, 240, 232, 0.6);
}

.footer__bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.15);
  padding-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__bottom p {
  font-size: 0.8125rem;
  opacity: 0.6;
  margin-bottom: 0;
}

.footer__bottom a {
  opacity: 0.6;
}

.footer__bottom a:hover {
  opacity: 1;
}

/* ---- Reviews Placeholder ---- */
.reviews-placeholder {
  text-align: center;
  padding: var(--space-5);
  border: 2px dashed var(--rule);
  border-radius: var(--radius);
}

.reviews-placeholder p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ---- Sticky Call Bar (mobile) ---- */
.call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--light);
  border-top: 1px solid var(--rule);
  padding: var(--space-2) var(--space-3);
  display: flex;
  gap: var(--space-2);
  z-index: 998;
  box-shadow: 0 -2px 8px var(--shadow);
}

.call-bar .btn {
  flex: 1;
  padding: 12px;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .call-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

body {
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* ---- Utility ---- */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }

.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;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* No-motion fallback: content always visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- 404 / Thanks pages ---- */
.page-simple {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-simple__content {
  max-width: 480px;
}

.page-simple__content h1 {
  margin-bottom: var(--space-3);
}

.page-simple__content p {
  color: var(--muted);
  margin-bottom: var(--space-4);
}
