/* Brownstone Technologies: espresso, copper and ivory, with local fonts only. */

/* Base */
:root { --copper: #A44732; --ivory: #FFF8EB; --primary: #352B28; --bs-body-color: var(--primary); --bs-body-bg: var(--ivory); --bs-body-font-family: Georgia, 'Times New Roman', serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--ivory); color: var(--primary); font-family: Georgia, 'Times New Roman', serif; line-height: 1.6; }
/* Short pages keep the footer at the bottom of the window. */
main { flex: 1 0 auto; }
a { color: inherit; }
button, a { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--copper); outline-offset: 5px; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--ivory); padding: 12px; z-index: 1100; }
.skip-link:focus { top: 0; }

/* Typography */
h1, h2, h3 { font-weight: 400; line-height: 1.1; letter-spacing: -.04em; }
h1 { font-size: clamp(3rem, 5.6vw, 5.2rem); margin: 24px 0; }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h3 { font-size: 1.6rem; }
.eyebrow { font-family: Arial, sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: .2em; line-height: 1.6; color: var(--copper); margin: 0 0 20px; }
.copper-rule { width: 50px; height: 4px; background: var(--copper); margin-bottom: 24px; }
.hero-description { font-size: 1.4rem; line-height: 1.4; margin: 24px 0 32px; }

/* Layout */
.container-xl { max-width: 1280px; padding-left: 32px; padding-right: 32px; }

/* Header and navigation */
.site-header { background: var(--ivory); position: relative; z-index: 10; }
.navbar { min-height: 110px; border-bottom: 1px solid var(--copper); }
.navbar-brand { padding: 0; max-width: 48%; }
.navbar-brand img { width: 310px; height: auto; max-width: 100%; display: block; }
.nav-link { font-size: 1rem; font-weight: 400; color: var(--primary); }
.nav-link:hover { color: var(--copper); }
.navbar-nav .nav-link[aria-current] { color: var(--copper); text-decoration: underline; text-underline-offset: 6px; }
.navbar-nav .btn[aria-current] { background: var(--copper); color: var(--ivory); }

/* Buttons and forms */
.btn { border-radius: 3px; font-weight: 400; padding: 13px 22px; line-height: 1.3; }
.btn-copper { background: var(--copper); color: var(--ivory); border: 1px solid var(--copper); }
.btn-copper:hover, .btn-copper:focus { background: #873724; border-color: #873724; color: var(--ivory); }
.btn-outline-copper { border: 1px solid var(--copper); color: var(--copper); }
.btn-outline-copper:hover { background: var(--copper); color: var(--ivory); }
.form-control { background: #fffdf8; border-color: #8a7d6f; }
.form-control:focus { border-color: var(--copper); box-shadow: 0 0 0 .2rem #a4473226; }
.contact-form { max-width: 560px; }

/* Keyboard focus. Bootstrap removes the outline from its controls, so restore it. */
.btn:focus-visible, .nav-link:focus-visible, .navbar-toggler:focus-visible, .form-control:focus-visible { outline: 3px solid var(--copper); outline-offset: 5px; }
.nav-link:focus-visible { box-shadow: none; }
/* Copper is too faint on espresso, so dark sections use an ivory outline. */
footer a:focus-visible, .editorial-process a:focus-visible, .editorial-panel a:focus-visible { outline-color: var(--ivory); }

/* Hero */
.editorial-intro { padding-top: 38px; padding-bottom: 34px; }
.editorial-intro h1 { font-size: clamp(3.5rem, 7vw, 6.7rem); line-height: 1; margin: 12px 0; }
.editorial-intro .hero-description { margin: 16px 0 0; font-size: 1.65rem; }
.editorial-feature { display: grid; grid-template-columns: 60% 40%; min-height: 530px; max-width: 1600px; margin: auto; }
.architecture-photo { min-width: 0; position: relative; overflow: hidden; }
.architecture-photo img { height: 100%; width: 100%; object-fit: cover; position: absolute; inset: 0; }
.editorial-panel { background: var(--primary); color: var(--ivory); padding: 65px 50px 28px; position: relative; overflow: hidden; }
.editorial-panel h2 { font-size: clamp(2.5rem, 4.2vw, 4.3rem); position: relative; max-width: 380px; }
.editorial-panel .btn { position: relative; margin-top: 16px; }
.editorial-panel .eyebrow { position: relative; color: #e09475; }
.panel-tagline { position: relative; font-size: 1.15rem; max-width: 380px; }
.roof-lines { position: absolute; width: 90%; height: 180px; right: 0; top: 40px; border: 1px solid #b97c5b; transform: skewY(-17deg); opacity: .3; }
.wire-interface { width: 80%; border: 1px solid #cda58b; border-radius: 8px; margin-top: 35px; padding: 12px; opacity: .45; }
.wire-interface span { font-size: .6rem; }
.wire-interface div { height: 8px; border: 1px solid #cda58b; margin: 10px; width: 75%; }

/* Numbered product rows */
.product-list { padding-top: 48px; padding-bottom: 48px; }
.product-list .eyebrow { margin-top: 16px; }
.product-row { display: flex; gap: 35px; align-items: center; border-bottom: 1px solid var(--copper); padding: 16px 0; }
.product-row:first-child { padding-top: 0; }
.product-row:last-child { border: 0; }
.product-number { color: var(--copper); font-size: 1.8rem; font-style: italic; }
.product-link { display: flex; flex: 1; align-items: center; gap: 20px; min-width: 0; color: var(--primary); text-decoration: none; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.04em; }
.product-link:hover { color: var(--copper); }
.product-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.product-status { font-family: Arial, sans-serif; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); border: 1px solid var(--copper); border-radius: 3px; padding: 4px 9px; white-space: nowrap; }
.product-arrow { color: var(--copper); }

/* Page headers and product pages */
.page-header { padding-top: 38px; padding-bottom: 34px; border-bottom: 1px solid var(--copper); }
.page-header h1 { margin: 12px 0; overflow-wrap: anywhere; }
.page-header .hero-description { margin: 16px 0 0; max-width: 760px; }
.page-body { padding-top: 48px; padding-bottom: 56px; }
.page-body h2 { font-size: 2.25rem; margin-bottom: 20px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { border-top: 1px solid var(--copper); padding: 14px 0; }
.product-image { max-width: 100%; height: auto; margin-bottom: 32px; }

/* Process */
.editorial-process { background: var(--primary); color: var(--ivory); padding: 40px 0; }
.editorial-process h2 { font-size: 3.3rem; }
.editorial-process h3 { font-size: 2.3rem; }
.process-column { border-left: 1px solid #aa7359; padding-left: 32px; }
.process-column p { font-size: 1.1rem; line-height: 1.4; }
.process-column .copper-rule { height: 2px; margin: 18px 0 14px; }
.editorial-process .eyebrow { color: #e09475; text-transform: uppercase; margin-bottom: 12px; }
.text-link { text-decoration: none; border-bottom: 1px solid; padding-bottom: 5px; }

/* About */
.about-section { padding-top: 50px; padding-bottom: 50px; }
.about-section h2 { font-size: 2.25rem; }
.about-section p:last-child { margin-bottom: 0; }

/* Contact call to action */
.contact-section { padding: 65px 0; background: var(--ivory); border-top: 1px solid #dccfbc; }
.contact-section h2 { font-size: clamp(2.5rem, 4.5vw, 4.3rem); margin-bottom: 20px; }
.contact-section .btn { margin-top: 16px; }

/* Footer */
footer { padding: 28px 0; background: var(--primary); color: var(--ivory); }
footer img { max-width: 100%; height: auto; }
footer a { text-decoration: none; font-size: .85rem; }
footer small { font-size: .7rem; opacity: .8; }
.footer-social { list-style: none; margin: 0; padding: 0; }

/* Tablet and phone */
@media (max-width: 991px) {
  .navbar { min-height: 90px; }
  .navbar-brand { max-width: 70%; }
  .navbar-brand img { width: 270px; }
  .navbar-collapse { padding: 20px 0; }
  .nav-item { margin: 4px 0; }
  h1 { font-size: 4rem; }
  .editorial-feature { grid-template-columns: 55% 45%; min-height: 480px; }
  .editorial-panel { padding: 35px 25px; }
  .editorial-panel h2 { font-size: 2.7rem; }
  .process-column { padding-left: 20px; }
  .editorial-process h2 { font-size: 2.8rem; }
}

/* Phone */
@media (max-width: 575px) {
  .container-xl { padding-left: 22px; padding-right: 22px; }
  .navbar { min-height: 82px; }
  .navbar-brand img { width: 240px; }
  h1 { font-size: 3.15rem; }
  h2 { font-size: 2.15rem; }
  .hero-description { font-size: 1.2rem; }
  .editorial-intro { padding-top: 28px; }
  /* Scales down so the longest word still fits a 320px screen. */
  .editorial-intro h1 { font-size: clamp(2.6rem, 15vw, 3.7rem); }
  .editorial-intro .hero-description { font-size: 1.3rem; }
  .editorial-feature { grid-template-columns: 1fr; }
  .architecture-photo { height: 310px; }
  .editorial-panel { padding: 35px 24px; }
  .editorial-panel h2 { max-width: 90%; font-size: 2.9rem; }
  .wire-interface { display: none; }
  .product-row { align-items: baseline; gap: 20px; }
  .product-link { flex-wrap: wrap; gap: 8px 14px; font-size: 1.8rem; }
  .product-name { flex-basis: 100%; }
  .product-number { font-size: 1.4rem; }
  .process-column { border-left: 0; border-top: 1px solid #aa7359; padding-top: 22px; padding-left: 12px; }
  .contact-section { padding: 45px 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
