/* D.R. Tighe & Company - landing page styles
   Colours: navy is the saved brand navy; red is the logo's red (trial accent). */

@font-face {
  font-family: "DM Serif Display";
  src: url("fonts/dm-serif-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #112D5A;
  --navy-deep: #0C2246;
  --red: #D41421;          /* logo red: buttons, tag, accents on light backgrounds */
  --red-dark: #B5101C;     /* hover state */
  --red-soft: #F07C86;     /* only red allowed as text on navy */
  --white: #FFFFFF;
  --mist: #F3F5F9;
  --ink: #112D5A;
  --slate: #4F5A6E;        /* secondary text on white and mist */
  --on-navy-muted: rgba(255, 255, 255, 0.85);
  --rule: rgba(17, 45, 90, 0.14);

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);
}

*, *::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(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.6;
}
@media (min-width: 48rem) {
  body { font-size: 1.125rem; }  /* 18px */
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: 1rem; }

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--white);
  color: var(--navy);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-header :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-small {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
  background: var(--red);
  color: var(--white);
}
.btn-small:hover { background: var(--red-dark); }

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-height: 2.75rem;
}
.brand img { width: 2.75rem; height: 2.75rem; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1;
  white-space: nowrap;
}
.brand-est {
  display: none;
  font-size: 0.875rem;
  color: var(--on-navy-muted);
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}
.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.6rem;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  color: var(--white);
}
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 0.3em; }

@media (max-width: 39.99rem) {
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; }
  .site-nav li:first-child a { padding-left: 0; }
  .nav-call { display: none; }   /* the hero's call button sits just below on small screens */
}
@media (min-width: 40rem) {
  .brand-est { display: inline; }
}
/* Header logo shows on desktop only; phones and tablets use the hero logo beside "Tax Specialists" */
@media (max-width: 59.99rem) {
  .brand picture { display: none; }
}

/* Hero */
.hero {
  background: var(--navy);
  color: var(--white);
}
.hero-inner {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
}
.hero-logo {
  margin: 0;
  display: none;          /* large logo shown from 60rem; small kicker logo below that */
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.kicker-logo { flex: none; }
.kicker-logo img {
  width: 4rem;
  height: 4rem;
}
.kicker-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
}
.tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.kicker-detail {
  color: var(--on-navy-muted);
  font-size: 1rem;
  text-wrap: balance;
}
.hero h1 {
  font-size: clamp(2.6rem, 1.2rem + 5.2vw, 4.75rem);
  letter-spacing: -0.015em;
  line-height: 1.04;
  max-width: 17ch;
}
.lede {
  margin-top: 1.5rem;
  max-width: 36rem;
  color: var(--on-navy-muted);
  font-size: 1.0625rem;
  text-wrap: pretty;
}
@media (min-width: 48rem) {
  .lede { font-size: 1.25rem; }
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 60rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 3rem;
  }
  .hero-logo { display: block; }
  .hero-logo img { width: 19rem; height: 19rem; }
  .kicker-logo { display: none; }
  .hero h1 { font-size: clamp(3.5rem, 1.6rem + 3.4vw, 4.5rem); }
  .hero-kicker { margin-bottom: 1.5rem; }
}

/* Controlled headline breaks from tablet width up:
   "The tax expertise / you need, from / people who know you." */
@media (min-width: 40rem) {
  .hero h1 { max-width: none; }
  .hero h1 .hl { display: block; }
}

/* Section shared */
.eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem);
  letter-spacing: -0.01em;
}

/* Who we work with */
.audience { padding-block: var(--section-y) 0; }
.audience h2 { margin-bottom: 2rem; }
.audience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.audience-list li {
  background: var(--mist);
  border-radius: 1rem;
  padding: 1.5rem;
}
.audience-list h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.audience-list p { color: var(--slate); }
.audience-list .audience-primary {
  background: var(--navy);
  color: var(--white);
  padding: 1.75rem 1.5rem;
}
.audience-primary h3 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); }
.audience-list .audience-primary p {
  color: var(--on-navy-muted);
  max-width: 40rem;
  font-size: 1.0625rem;
}
@media (min-width: 48rem) {
  .audience-list { gap: 1.25rem; }
  /* Tablet: secondary groups as full-width rows, heading beside description */
  .audience-list li:not(.audience-primary) {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 3rem;
    align-items: baseline;
  }
  .audience-list li:not(.audience-primary) h3 { margin-bottom: 0; }
  .audience-list .audience-primary {
    grid-column: 1 / -1;
    padding: 2.25rem 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 3rem;
    align-items: baseline;
  }
  .audience-primary h3 { margin-bottom: 0; }
  .audience-list .audience-primary p { font-size: 1.1875rem; }
  .audience-list li:not(.audience-primary) { padding: 1.75rem 2.5rem; }
}
/* Desktop: secondary groups return to three columns under the business panel (from 1024px) */
@media (min-width: 64rem) {
  .audience-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .audience-list li:not(.audience-primary) {
    display: block;
    padding: 1.75rem;
  }
  .audience-list li:not(.audience-primary) h3 { margin-bottom: 0.5rem; }
}

/* Services */
.services {
  background: var(--mist);
  padding-block: var(--section-y);
  margin-top: var(--section-y);
}
.services-inner {
  display: grid;
  gap: 2.5rem;
}
.section-intro h2 { max-width: 18ch; }
.section-intro > p:last-child {
  margin-top: 1.25rem;
  color: var(--slate);
  max-width: 36rem;
}
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.service-list li {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}
.service-list li:last-child { border-bottom: 1px solid var(--rule); }
.service-list h3 {
  font-size: 1.625rem;
  margin-bottom: 0.4rem;
}
.service-list p {
  color: var(--slate);
  max-width: 40rem;
}

@media (min-width: 60rem) {
  .services-inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 4rem;
    align-items: start;
  }
  .section-intro { position: sticky; top: 2rem; }
  .service-list li {
    display: grid;
    grid-template-columns: 11rem 1fr;
    column-gap: 2.5rem;
    align-items: baseline;
  }
  .service-list h3 { margin-bottom: 0; font-size: 1.5rem; }
}

/* About */
.about { padding-block: var(--section-y); }
.about-inner {
  display: grid;
  gap: 1.75rem;
}
.about-head h2 { max-width: 16ch; }
.about-body { max-width: 38rem; }
.about-body p { font-size: 1.125rem; }
@media (min-width: 48rem) {
  .about-body p { font-size: 1.25rem; line-height: 1.6; }
}
@media (min-width: 60rem) {
  .about-inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 4rem;
    align-items: start;
  }
}

/* Contact */
.contact {
  background: var(--mist);
  padding-block: var(--section-y);
}
.contact-inner {
  display: grid;
  gap: 2.5rem;
}
.contact-intro p:last-child {
  margin-top: 1.25rem;
  color: var(--slate);
  max-width: 32rem;
}
.contact-details {
  margin: 0;
  display: grid;
  border-top: 2px solid var(--navy);
}
.contact-details > div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}
.contact-details dt {
  font-weight: 700;
  padding-top: 0.6rem;
}
.contact-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.contact-details dd { padding-block: 0.6rem; }
.contact-details a {
  display: inline-block;
  padding-block: 0.6rem;
  margin-block: -0.6rem;
  font-weight: 500;
  text-decoration-color: rgba(212, 20, 33, 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}
.contact-details a:hover { color: var(--red); }
@media (min-width: 60rem) {
  .contact-inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 4rem;
    align-items: start;
  }
  .contact-details > div { grid-template-columns: 7rem 1fr; }
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-muted);
  font-size: 0.9375rem;
}
.footer-inner {
  padding-block: 2.5rem;
  display: grid;
  gap: 0.35rem;
}
.footer-inner p + p { margin-top: 0; }
.footer-name {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.25rem;
}

@media print {
  .site-header, .hero, .site-footer { background: none !important; color: #000 !important; }
  .btn { border: 1px solid #000; color: #000; background: none; }
  .skip-link, .site-nav { display: none; }
}
