/* ==========================================================================
   Design tokens — from the client's colours_and_fonts.txt
   ========================================================================== */
:root {
  --color-navy: #131e3d;
  --color-cream: #f4f1ec;
  --color-blue: #5271ff;
  --color-text: #222344;
  --color-white: #ffffff;

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

  --max-width: 1200px;
  --section-padding-y: 76px;
  --section-padding-x: 32px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-navy);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 18px 36px;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn--light {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--light:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--outline {
  background-color: rgba(19, 30, 61, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(19, 30, 61, 0.2);
  color: var(--color-blue);
  padding: 16px 32px;
  box-shadow: 0 4px 12px rgba(19, 30, 61, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  background-color: rgba(19, 30, 61, 0.14);
}

/* ==========================================================================
   Logo (used in header + footer)
   ========================================================================== */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.logo__mark {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
}

.logo__wordmark {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  margin-top: 6px;
  white-space: nowrap;
}

.logo--light { color: var(--color-white); }
.logo--dark { color: var(--color-navy); }

.logo--compact .logo__mark { font-size: 1.5rem; }
.logo--compact .logo__wordmark { font-size: 0.6rem; margin-top: 2px; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--section-padding-x);
  background-color: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.header--scrolled {
  background-color: var(--color-navy);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 2px 12px rgba(19, 30, 61, 0.25);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.header__link:hover {
  border-color: var(--color-blue);
}

.header__phone {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 16px;
  border-radius: 2px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.header__phone:hover {
  border-color: var(--color-blue);
  background-color: rgba(82, 113, 255, 0.15);
}

.header__menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(280px, 80vw);
    background-color: var(--color-navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  }

  .header__nav--open {
    transform: translateX(0);
  }

  .header__menu-btn {
    display: block;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-navy);
  background-image:
    radial-gradient(circle at 75% 30%, rgba(82, 113, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #0d1530 0%, var(--color-navy) 55%, #1a2650 100%);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px var(--section-padding-x) 80px;
  width: 100%;
}

.hero__mark {
  width: 190px;
  height: auto;
  margin-bottom: 4px;
}

.hero__wordmark {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  color: var(--color-white);
  margin-top: 6px;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  color: var(--color-white);
  opacity: 0.85;
  margin-top: 4px;
  margin-bottom: 64px;
}

.hero__headline {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--color-white);
  max-width: 780px;
  font-weight: 400;
  margin-bottom: 48px;
}

@media (max-width: 600px) {
  .hero__inner {
    padding-top: 120px;
  }
}

.header__mark {
  width: 54px;
  height: auto;
}

/* ==========================================================================
   About
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.about__heading {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  margin-bottom: 28px;
  max-width: 420px;
}

.about__text {
  margin-bottom: 20px;
  max-width: 520px;
}

.about__text--last {
  margin-bottom: 32px;
}

.about__photo {
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
}

.about__photo-img {
  width: 95%;
  height: 95%;
  object-fit: cover;
  object-position: top center;
}

.about__photo-icon {
  font-size: 4rem;
  opacity: 0.4;
}

.about__photo-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  opacity: 0.6;
}

@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__photo {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  /* The landscape frame only shows ~40% of this portrait photo's height.
     "top" cropped at the chin; 12% down keeps hair-to-collar in frame. */
  .about__photo-img {
    object-position: center 12%;
  }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.services__photo {
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
}

.services__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.services__photo-icon {
  font-size: 4rem;
  opacity: 0.5;
}

.services__photo-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  opacity: 0.65;
}

.services__heading {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  margin-bottom: 40px;
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.services__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.services__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(19, 30, 61, 0.08);
  border: 1px solid rgba(19, 30, 61, 0.15);
  box-shadow: 0 4px 12px rgba(19, 30, 61, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.services__icon {
  color: var(--color-navy);
  font-size: 1.2rem;
}

.services__link {
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.services__summary:hover .services__link {
  color: var(--color-blue);
}

.services__definition {
  margin-top: 14px;
  margin-left: 64px;
  max-width: 480px;
  font-size: 0.95rem;
  color: var(--color-text);
  opacity: 0.85;
}

.services__cta {
  display: inline-block;
  margin-top: 10px;
  margin-left: 64px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-blue);
}

@media (max-width: 860px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .services__photo {
    aspect-ratio: 16 / 10;
  }

  /* Both faces sit about a third of the way down this tall photo, so
     "top" showed only ceiling. 32% centres the frame on the two people. */
  .services__photo-img {
    object-position: center 32%;
  }
}

/* ==========================================================================
   Contact / Footer
   ========================================================================== */
.contact {
  border-top: 1px solid rgba(19, 30, 61, 0.1);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact__heading {
  font-size: 1.75rem;
  margin-bottom: 28px;
}

.contact__block {
  margin-bottom: 48px;
}

.contact__block:last-child {
  margin-bottom: 0;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact__item a:hover {
  color: var(--color-blue);
}

.contact__icon {
  color: var(--color-blue);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact__hours-day {
  color: var(--color-blue);
  font-weight: 500;
}

.contact__social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.contact__social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: rgba(19, 30, 61, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(19, 30, 61, 0.2);
  box-shadow: 0 4px 12px rgba(19, 30, 61, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: var(--color-navy);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact__social-link:hover {
  background-color: rgba(82, 113, 255, 0.12);
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.contact__logo-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
}

.contact__mark {
  width: 100px;
  height: auto;
  margin-bottom: 4px;
}

.contact__wordmark {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  color: var(--color-navy);
}

.contact__tagline {
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  color: var(--color-navy);
  opacity: 0.85;
  margin-top: 4px;
}

.contact__copyright {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(19, 30, 61, 0.1);
  font-size: 0.8rem;
  color: rgba(34, 35, 68, 0.6);
}

@media (max-width: 700px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__logo-column {
    align-items: flex-start;
    text-align: left;
  }
}

/* ==========================================================================
   Services accordion (native <details>/<summary>)
   ========================================================================== */
.services__detail {
  width: 100%;
}

.services__summary {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  list-style: none; /* removes Firefox's default disclosure triangle */
}

/* removes Chrome/Safari's default disclosure triangle */
.services__summary::-webkit-details-marker {
  display: none;
}

.services__chevron {
  margin-left: auto;
  color: var(--color-navy);
  font-size: 1rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* Rotate the chevron when this <details> is open */
.services__detail[open] .services__chevron {
  transform: rotate(180deg);
}

.services__definition {
  margin-top: 14px;
  margin-left: 52px; /* lines up under the link text, past the icon */
  max-width: 480px;
  font-size: 0.95rem;
  color: var(--color-text);
  opacity: 0.85;
}

.services__cta {
  display: inline-block;
  margin-top: 10px;
  margin-left: 52px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-blue);
}

.services__cta:hover {
  text-decoration: underline;
}