:root {
  color-scheme: light;
  --ink: #192235;
  --paper: #f5f5f5;
  --sand: #f0ebe0;
  --accent: #af9451;
  --paper-cream: #f4efe6;
  --accent-earth: #6e5a2a;
  --accent-cool: #2b4f86;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper-cream);
}

h1,
h2,
h3 {
  font-family: "EB Garamond", "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0.015em;
  margin: 0;
}

p {
  margin: 0 0 1rem;
  line-height: 1.65;
}

.hero-text p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
}

.home-page main {
  max-width: 1200px;
}

.not-found-page main {
  max-width: 900px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  padding-top: clamp(0rem, calc(1vw - 0.3rem), 0.3rem);
  border-bottom: 1px solid rgba(25, 34, 53, 0.18);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 3;
  box-shadow: 0 10px 22px rgba(25, 34, 53, 0.08);
}

.logo {
  height: 104px;
  width: 230px;
  object-fit: cover;
  object-position: center bottom;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  line-height: 1;
  font-size: 1rem;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.nav-toggle-button {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-lines::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.nav-toggle-lines::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.nav-toggle:focus-visible + .nav-toggle-button {
  outline: 2px solid rgba(25, 34, 53, 0.4);
  outline-offset: 2px;
}

.nav-toggle:checked + .nav-toggle-button .nav-toggle-lines {
  background: transparent;
}

.nav-toggle:checked + .nav-toggle-button .nav-toggle-lines::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-button .nav-toggle-lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

.top-nav {
  display: flex;
  gap: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.top-nav a {
  position: relative;
  padding-bottom: 0.1rem;
  transition: color 0.2s ease;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--accent);
}

.top-nav a:hover::after,
.top-nav a:focus-visible::after {
  opacity: 0.6;
}

.contact-mini {
  text-align: right;
  font-size: 0.95rem;
}

.contact-mini a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.phone-icon {
  width: 0.90em;
  height: 0.90em;
  fill: currentColor;
  flex-shrink: 0;
  margin-right: 0.1rem;
}

.contact-mini a:hover {
  color: var(--accent);
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: none;
}

.nav-phone .phone-icon {
  width: 0.95em;
  height: 0.95em;
}

.hero {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.home-page .hero {
  grid-template-columns: 1fr;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.not-found-page .hero {
  grid-template-columns: 1fr;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.hero-card {
  background: rgba(250, 247, 241, 0.9);
  border: 1px solid rgba(25, 34, 53, 0.12);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 18px 35px rgba(25, 34, 53, 0.08);
}

.home-page .hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1.1fr);
  grid-auto-rows: auto;
  column-gap: clamp(1.4rem, 3vw, 3rem);
  row-gap: 1rem;
  align-items: flex-start;
}

.not-found-page .hero-card {
  background: rgba(250, 247, 241, 0.9);
  text-align: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
}

.hero-title {
  text-transform: none;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-variant-ligatures: common-ligatures;
  letter-spacing: 0.015em;
}

.home-page .hero-title {
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  font-weight: 500;
}

.not-found-page .hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

p.hero-role {
  color: var(--accent-earth);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  letter-spacing: 0.04em;
  margin: -0.7rem 0 0;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.home-page .hero-subtitle {
  margin-bottom: 0.4rem;
  line-height: 1.4;
  color: var(--accent-cool);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.7rem;
}

.phone-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  font-weight: 600;
}

.phone-inline a {
  color: inherit;
  font-weight: 600;
  transition: color 0.2s ease;
}

.phone-inline a:hover {
  color: var(--accent);
}

.link-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
}

.primary-button {
  background: var(--ink);
  color: var(--paper);
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  font-size: 1.1rem;

}


.home-page .hero .primary-button, .cta-content .primary-button {
  margin-top: 0.2rem;
  align-self: center;
  gap: 0.5rem;
  width: clamp(162px, 25.2vw, 240px);
  justify-content: center;
  text-align: center;
  font-size: clamp(1rem, 2.16vw, 1.35rem);
}

.cta-content .primary-button {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
}

.contact-note {
  font-weight: 600;
  margin: 0.4rem 0 0;
  letter-spacing: 0.01em;
  font-size: 1.2rem;
}

.phone-number {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(25, 34, 53, 0.18);
  background: var(--accent);
  opacity: 1;
}

.link-button {
  border: 1px solid rgba(25, 34, 53, 0.18);
  background: rgba(245, 245, 245, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
}

.link-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(25, 34, 53, 0.14);
  border-color: var(--accent);
}

.hero-photo {
  width: 100%;
  max-width: 400px;
  max-height: 550px;
  border-radius: 32px;
  border: 6px solid var(--paper);
  box-shadow: 0 22px 45px rgba(25, 34, 53, 0.14);
  object-fit: cover;
  object-position: top center;
}

.hero-image {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  grid-column: 2;
  grid-row: 1;
}

.content-panel {
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  border: 1px solid rgba(25, 34, 53, 0.12);
  box-shadow: 0 12px 24px rgba(25, 34, 53, 0.06);
  background: rgba(245, 245, 245, 0.7);
  border-radius: 24px;
  overflow: hidden;
}

.cta-panel {
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.cta-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 26px;
  border: 1px solid rgba(25, 34, 53, 0.12);
  background: rgba(250, 247, 241, 0.95);
  box-shadow: 0 18px 32px rgba(25, 34, 53, 0.08);
}

.cta-content h3 {
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cta-content {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.cta-content p {
  margin-bottom: 1.4rem;
}

.cta-image img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  border-radius: 22px;
  border: 6px solid var(--paper);
  box-shadow: 0 18px 32px rgba(25, 34, 53, 0.14);
  object-fit: cover;
  object-position: top center;
}

.content-block {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.content-block h3 {
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content-block.about {
  background: var(--ink);
  color: var(--paper);
}

.content-block.about details {
  background: rgba(245, 245, 245, 0.08);
  border-color: rgba(245, 245, 245, 0.25);
}

.content-block.about a {
  color: inherit;
}

.content-block.help {
  background: rgba(245, 245, 245, 0.92);
}

.content-block + .content-block {
  border-top: 1px solid var(--accent);
}

.help-columns {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.help-column h4 {
  margin: 0 0 0.75rem;
  font-family: "EB Garamond", "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  letter-spacing: 0.02em;
}

.help-column {
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border-radius: 18px;
  border: 1px solid rgba(25, 34, 53, 0.08);
  /* background: rgba(245, 245, 245, 0.6); */
  background: linear-gradient(
    160deg,
    rgba(246, 242, 234, 0.95) 0%,
    rgba(237, 230, 218, 0.88) 60%,
    rgba(229, 220, 204, 0.82) 100%
  );

}

.help-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.help-list li {
  margin-bottom: 0.4rem;
}

details {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(25, 34, 53, 0.12);
  background: rgba(240, 235, 224, 0.6);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details[open] summary {
  margin-bottom: 0.75rem;
}

footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.85rem;
  padding: 1.5rem;
  color: rgba(25, 34, 53, 0.75);
}

@media (max-width: 680px) {
  .top-bar {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
  }

  .top-bar-actions {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-end;
    width: auto;
  }

  .nav-toggle {
    order: 1;
  }

  .nav-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 999px;
    border: 1px solid rgba(25, 34, 53, 0.18);
    background: rgba(245, 245, 245, 0.95);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    position: relative;
    overflow: visible;
    clip: auto;
    order: 2;
    z-index: 3;
  }

  .top-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(
      165deg,
      rgba(236, 228, 213, 0.98) 0%,
      rgba(224, 212, 193, 0.98) 100%
    );
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 48px rgba(25, 34, 53, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 2;
  }

  .nav-toggle:checked + .nav-toggle-button + .top-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-phone {
    display: inline-flex;
    margin-top: 0.5rem;
  }

  .contact-mini {
    display: none;
  }

}

@media (max-width: 720px) {
  .home-page main {
    padding: 0 1.5rem 2.5rem;
  }

  .hero-card h1, .hero-card .hero-role {
    text-align: center;
  }

  .home-page .hero-card {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  .hero-image {
    grid-column: 1;
    grid-row: auto;
    justify-content: center;
    margin-top: 0.8rem;
  }

  .hero-contact {
    grid-row: auto;
    margin-top: 0;
  }

  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-image {
    order: -1;
  }

  .cta-content .primary-button {
    align-self: center;
    justify-content: center;
  }
  
  .home-page .hero-subtitle {
    text-align: center;
  }
}

@media (min-width: 900px) {
  .help-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
}
