/* Rosenthal Consulting — site styles (brand: navy #1e2d53, sky #35a9e0, Zilla Slab + Montserrat) */

@font-face { font-family: "Zilla Slab"; src: url("/fonts/zilla-slab-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("/fonts/zilla-slab-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-var-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --navy: #1e2d53;
  --navy-deep: #15203d;
  --sky: #35a9e0;
  --sky-deep: #2e89b5;
  --slate: #474b6f;
  --text: #494949;
  --muted: #6a6f7a;
  --grey: #f5f5f5;
  --mist: #d4e1e7;
  --footer: #007db2;
  --link: #1b7db0;
  --white: #ffffff;

  --serif: "Zilla Slab", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 0.4rem + 2.4vw, 2rem);
  --section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: #3a3a3a; font-weight: 700; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 4px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }

/* Buttons: pill, as on the original site */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.6rem 1.75rem;
  border: 2px solid var(--navy); border-radius: 999px;
  background: var(--navy); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; line-height: 1.2;
  text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--sky-deep); border-color: var(--sky-deep); color: #fff; }
.btn-sky { background: var(--sky); border-color: var(--sky); }
.btn-sky:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-small { min-height: 2.5rem; padding: 0.4rem 1.2rem; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.btn-caps { text-transform: uppercase; font-size: 0.9375rem; letter-spacing: 0.04em; }
.actions { margin-top: 2.25rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(30, 45, 83, 0.12); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 90px;
  transition: min-height 0.25s ease;
}
.is-scrolled .header-inner { min-height: 70px; }

.brand { display: flex; align-items: center; text-decoration: none; color: var(--navy); }
.brand-logo { width: 200px; height: auto; transition: width 0.25s ease; }
.is-scrolled .brand-logo { width: 170px; }
.brand-text { display: none; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; }
.brand.no-logo .brand-text { display: inline; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
  position: relative;
  color: rgba(18, 18, 18, 0.85);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 0.4rem;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.site-nav ul a:hover { color: var(--navy); }
.site-nav ul a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; align-items: center; gap: 0.6rem;
  min-height: 2.75rem; padding: 0.4rem 0.6rem;
  border: 0; background: none; color: var(--navy);
  font: inherit; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .js .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 1rem; width: 100%; padding-bottom: 1.25rem; }
  .js .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 0.25rem var(--gutter) 1.5rem;
    background: #fff;
    box-shadow: 0 12px 20px rgba(30, 45, 83, 0.12);
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding-block: 0.9rem; border-bottom: 1px solid #e6e9ee; font-size: 0.875rem; }
  .site-nav ul a::after { display: none; }
  .site-nav .btn { align-self: flex-start; }
}

/* Sections */
section[id] { scroll-margin-top: 80px; }
.section { padding-block: var(--section); }
.section-grey { background: var(--grey); }
.section-mist { background: var(--mist); }
.section-head { max-width: 46rem; margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3rem); text-align: center; }
.section-head h2 + p { margin-top: 1rem; }

/* Hero */
.hero {
  position: relative;
  display: grid; place-items: center;
  min-height: clamp(26rem, 18rem + 22vw, 34rem);
  padding: 4rem var(--gutter);
  background: var(--navy) url("/images/hero.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30, 45, 83, 0.62), rgba(30, 45, 83, 0.74));
}
.hero-inner { position: relative; max-width: 46rem; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
}
.hero h1 span { display: block; }
.hero-tag {
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1rem + 1vw, 2rem);
  line-height: 1.25;
}
.hero .actions { margin-top: 2rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-tag { animation-delay: 0.12s !important; }
  .hero .actions { animation-delay: 0.24s !important; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Problems: flip tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 18.75rem));
  justify-content: center;
  gap: 1.875rem;
  margin: 0; padding: 0; list-style: none;
}
.tile {
  position: relative;
  aspect-ratio: 3 / 2;
  perspective: 1000px;
  cursor: pointer;
}
.tile-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.tile-face {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 1.5rem;
  margin: 0;
  color: #fff;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tile-front { font-weight: 900; font-size: 1.5rem; line-height: 1.2; }
.tile-back { font-size: 1.0625rem; line-height: 1.45; transform: rotateY(180deg); }

.tile:nth-child(odd) .tile-front { background: var(--navy); }
.tile:nth-child(odd) .tile-back { background: var(--slate); }
.tile:nth-child(even) .tile-front { background: var(--sky); }
.tile:nth-child(even) .tile-back { background: var(--sky-deep); }

@media (hover: hover) {
  .tile:hover .tile-inner { transform: rotateY(180deg); }
}
.tile:focus-visible .tile-inner,
.tile.is-flipped .tile-inner { transform: rotateY(180deg); }
.tile:focus-visible { outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .tile-inner { transition: none; transform: none !important; }
  .tile-back { transform: none; opacity: 0; transition: opacity 0.2s; }
  .tile:focus-visible .tile-back, .tile.is-flipped .tile-back { opacity: 1; }
  @media (hover: hover) { .tile:hover .tile-back { opacity: 1; } }
}

.tiles-hint { margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted); text-align: center; }

/* Clients */
.media-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.media-split:not(:has(figure)) { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }
.media-split figure { margin: 0; }
.media-split figure img { width: 100%; aspect-ratio: 310 / 287; object-fit: cover; border-radius: 4px; box-shadow: 0 18px 40px rgba(30, 45, 83, 0.14); }
.media-split h2 { margin-bottom: 1.1rem; }

/* Services */
.services {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 3rem 2.5rem;
  margin: 0; padding: 0; list-style: none;
}
.service { flex: 0 1 calc((100% - 5rem) / 3); max-width: 22rem; text-align: center; }
.service img { width: 120px; height: 120px; margin: 0 auto 1.25rem; }
.service h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service p { font-size: 0.9375rem; line-height: 1.7; }

/* Experience */
.experience {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.profile { margin: 0; text-align: center; }
.profile-photo {
  position: relative;
  width: 16.5rem; height: 16.5rem; max-width: 100%;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--mist);
}
.profile-photo .monogram {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 4rem; color: var(--sky);
}
.profile-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.profile figcaption { margin-top: 1.5rem; }
.profile h3 { font-size: 1.25rem; }
.profile figcaption p { color: var(--sky-deep); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.02em; }
.experience h2 { margin-bottom: 1.25rem; }

/* Testimonials */
.testimonials { background: var(--navy); color: #f1f1f1; padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem); }
.testimonials h2 { color: #fff; text-align: center; margin-bottom: 2.5rem; }
.slider { position: relative; max-width: 50rem; margin: 0 auto; }
.slides { display: grid; gap: 2.5rem; }
.js .slides { gap: 0; }
.js .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s; }
.js .slide.is-active { opacity: 1; visibility: visible; }
.slide { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.75rem; align-items: start; margin: 0; }
.quote-mark {
  display: grid; place-items: center;
  width: 5.5rem; height: 5.5rem; border-radius: 50%;
  background: rgba(53, 169, 224, 0.16);
  color: var(--sky);
}
.quote-mark svg { width: 2.25rem; height: 2.25rem; }
.slide blockquote { margin: 0; }
.slide blockquote p { font-style: italic; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.6; color: #f1f1f1; }
.slide figcaption { margin-top: 1rem; color: rgba(241, 241, 241, 0.75); }
.slide figcaption strong { color: #fff; }
.slide figcaption span { margin-inline: 0.4rem; color: var(--sky); }

.dots { display: none; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }
.js .dots { display: flex; }
.dots button {
  width: 0.75rem; height: 0.75rem; padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 50%;
  background: transparent; cursor: pointer;
}
.dots button[aria-current="true"] { background: var(--sky); border-color: var(--sky); }

/* Contact */
.contact h2 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3rem); }
.contact-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 18.75rem));
  justify-content: center; gap: 2rem;
  margin-top: 2.5rem; text-align: center;
}
.contact-item svg { width: 2.5rem; height: 2.5rem; margin: 0 auto 1rem; color: var(--navy); }
.contact-item h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.contact-item p { margin: 0; }
.contact-item a { color: var(--link); text-decoration: none; font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }
.contact-address { margin-top: 2.5rem; font-family: var(--serif); font-weight: 700; font-size: 1.125rem; }
.contact-address a { color: var(--navy); text-decoration: none; }
.contact-address a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--footer); color: #f1f1f1; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2rem;
  padding-block: 3.5rem;
}
.footer-logo { width: 200px; }
.footer-brand { display: none; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: #fff; }
.footer-brand.is-visible { display: block; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.4rem; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.2); }
.footer-base .wrap { padding-block: 1.1rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.8); }

/* Legal pages */
.page-title { background: var(--navy); color: #fff; padding-block: clamp(2.5rem, 2rem + 2vw, 3.75rem); text-align: center; }
.page-title h1 { color: #fff; font-size: clamp(2.25rem, 1.75rem + 2vw, 3rem); }
.legal { max-width: 48rem; padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) var(--section); }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.legal ul, .legal ol { padding-left: 1.4rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.35rem; }
.legal ol ol, .legal ol ul { margin-top: 0.35rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid #e3e6ea; }
.legal th { color: var(--navy); border-bottom: 2px solid var(--navy); }
.table-scroll { overflow-x: auto; }

.not-found { padding-block: clamp(4rem, 3rem + 6vw, 8rem); text-align: center; }
.not-found h1 { font-size: clamp(2.5rem, 1.75rem + 3vw, 3.5rem); margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 18.75rem)); }
  .service { flex-basis: calc((100% - 2.5rem) / 2); }
}

@media (max-width: 760px) {
  .media-split, .experience { grid-template-columns: minmax(0, 1fr); }
  .media-split figure { max-width: 26rem; }
  .experience h2 { text-align: center; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .tiles { grid-template-columns: minmax(0, 22rem); }
  .service { flex-basis: 100%; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .slide { grid-template-columns: minmax(0, 1fr); gap: 1rem; text-align: center; }
  .quote-mark { width: 4rem; height: 4rem; margin: 0 auto; }
  .quote-mark svg { width: 1.75rem; height: 1.75rem; }
  .brand-logo { width: 170px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .site-header, .actions, .dots, .site-footer nav { display: none; }
  .hero { background: none; color: #000; min-height: 0; }
  .hero::before { display: none; }
  .hero h1, .hero-tag { color: #000; }
}
