/* Base styles, homepage contact form and footer. Loaded before homepage-specific styles.
 * Rule order is intentional: later responsive refinements preserve the approved design.
 */

:root {
  --ivory: #f7f6f2;
  --white: #ffffff;
  --navy: #091c2b;
  --navy-light: #142e3f;
  --orange: #ff6508;
  --text-muted: #52606b;
  --border: #d8dad7;
  --feature-bg: #eeede9;

  --font-body: Arial, Helvetica, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;

  --container-width: 1280px;
  --page-gutter: clamp(22px, 5vw, 80px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  text-wrap: balance;
}

h2 {
  font-size: clamp(36px, 4.1vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

h3 {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

::selection {
  background: var(--navy);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}

.container {
  width: min(
    var(--container-width),
    calc(100% - var(--page-gutter) - var(--page-gutter))
  );
  margin-inline: auto;
}

.section-space {
  padding-block: clamp(64px, 7.5vw, 112px);
}

.eyebrow {
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button-navy {
  background: var(--navy);
  color: var(--white);
}

.button-orange {
  background: var(--orange);
  color: var(--navy);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  width: fit-content;
  font-size: 12px;
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-color: #a5adb0;
  text-underline-offset: 7px;
  white-space: nowrap;
  transition: text-decoration-color 180ms ease;
}

@media (hover: hover) {
  .button-navy:hover {
    background: #203d50;
  }

  .button-orange:not(:disabled):hover {
    background: #ff8238;
  }

  .text-link:hover {
    text-decoration-color: var(--navy);
  }
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid rgba(9, 28, 43, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 100px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
}

.site-nav > a:not(.button) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav > a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
}

.menu-toggle-icon {
  font-size: 28px;
  line-height: 1;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  min-height: 540px;
  min-height: clamp(540px, 46vw, 720px);
  overflow: hidden;
  background: var(--navy-light);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;

  /*
    Portrait café photograph in a wide desktop frame.
    Favor the windows and counter over the ceiling.
  */
  object-position: 50% 63%;
}

.hero-overlay {
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(4, 14, 21, 0.78) 0%,
    rgba(4, 14, 21, 0.32) 48%,
    rgba(4, 14, 21, 0.08) 100%
  );
}

.hero-content {
  padding-top: 140px;
  padding-bottom: clamp(44px, 5vw, 76px);
}

.hero h1 {
  max-width: 1100px;
  color: var(--white);
  font-size: clamp(48px, 6.1vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.15);
}

.hero h1 span {
  display: block;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(40px, 7vw, 108px);
}

.section-intro {
  padding-top: 10px;
}

.service-list {
  border-top: 1px solid var(--border);
}

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding-block: 27px;
  border-bottom: 1px solid var(--border);
}

.service-item p {
  max-width: 440px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.service-item .text-link {
  align-self: start;
}

.feature {
  background: var(--feature-bg);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

.feature-image {
  min-width: 0;
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.feature-image figcaption {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.feature-content h2 {
  font-size: clamp(34px, 3.5vw, 50px);
}

.feature-description {
  margin-top: 22px;
  color: #344550;
  font-size: 17px;
  line-height: 1.75;
}

.feature-list {
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid #ccd0ce;
  list-style: none;
}

.feature-list li {
  padding-block: 17px;
  border-bottom: 1px solid #ccd0ce;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.site-footer {
  padding-block: 30px;
  background: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand img {
  width: 88px;
  height: 88px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  text-decoration: none;
}

.footer-tagline {
  padding-left: 24px;
  border-left: 1px solid var(--border);
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .services-layout{
    gap: 40px;
  }

  .feature-layout {
    gap: 36px;
  }

  .service-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .footer-inner {
    flex-wrap: wrap;
  }

  .footer-tagline {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px 20px;
    min-height: 88px;
  }

  .brand img {
    width: 70px;
    height: 70px;
  }

  .site-nav {
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding-bottom: 16px;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
  }

  .js .menu-toggle[aria-expanded="true"] + .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 12px 20px;
  }

  .js .site-nav > a:not(.button) {
    min-height: 52px;
    padding-block: 10px;
    border-bottom: 1px solid var(--border);
  }

  .js .site-nav > a[aria-current="page"]::after {
    display: none;
  }

  .js .site-nav > a[aria-current="page"] {
    font-weight: 700;
  }

  .js .site-nav .button {
    margin-top: 18px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-image {
    object-position: 50% 60%;
  }

  .hero h1 {
    font-size: clamp(48px, 7.2vw, 68px);
  }

  .services-layout{
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .section-intro h2 {
    max-width: 560px;
  }

  .service-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
  }

  .feature-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .feature-content {
    max-width: 640px;
  }
}

@media (max-width: 600px) {
  :root {
    --page-gutter: 24px;
  }

  body {
    font-size: 16px;
  }

  h2 {
    font-size: clamp(34px, 9vw, 44px);
  }

  h3 {
    font-size: 18px;
  }

  .section-space {
    padding-block: 56px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
  }

  .header-inner {
    min-height: 80px;
    padding-block: 6px;
  }

  .brand img {
    width: 66px;
    height: 66px;
  }

  .hero {
    min-height: 520px;
    min-height: clamp(500px, 76svh, 660px);
  }

  .hero-image {
    object-position: 48% 58%;
  }

  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(4, 14, 21, 0.84) 0%,
      rgba(4, 14, 21, 0.38) 48%,
      rgba(4, 14, 21, 0.06) 100%
    );
  }

  .hero-content {
    padding-top: 180px;
    padding-bottom: 38px;
  }

  .hero h1 {
    max-width: 440px;
    font-size: clamp(39px, 10.7vw, 60px);
    line-height: 1.07;
    letter-spacing: -0.045em;
  }

  .services-layout {
    gap: 32px;
  }

  .service-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-block: 23px;
  }

  .service-item p {
    font-size: 15px;
  }

  .text-link {
    font-size: 13px;
  }

  .feature-layout {
    gap: 28px;
  }

  .feature-content h2 {
    font-size: clamp(33px, 8.6vw, 42px);
  }

  .feature-description {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.7;
  }

  .feature-list {
    margin-top: 24px;
  }

  .feature-list li {
    padding-block: 15px;
    font-size: 22px;
  }

  .site-footer {
    padding-block: 24px 32px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-brand img {
    width: 80px;
    height: 80px;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 4px 22px;
  }

  .footer-tagline {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    white-space: normal;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(9, 28, 43, 0.06);
}

html {
  scroll-padding-top: 120px;
}

@media (max-width: 900px) {
  .site-header {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
  }

  html {
    scroll-padding-top: 100px;
  }
}
