/*
Theme Name: TP Transcription Ireland
Theme URI: https://tptranscription.ie/
Author: TP Transcription Limited
Description: Bespoke Irish website theme for TP Transcription Limited. Includes Irish service pages, accessible navigation, localisation, plugin integration and automatic page setup.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: tp-transcription-ireland
*/

@font-face {
  font-family: "Galano";
  src: url("assets/fonts/galanogrotesque-light-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Galano";
  src: url("assets/fonts/galanogrotesque-medium-webfont.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Galano";
  src: url("assets/fonts/galanogrotesque-italic-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --tp-teal: #59b5b2;
  --tp-teal-dark: #237f82;
  --tp-navy: #1a5a72;
  --tp-ink: #344851;
  --tp-muted: #5b6a72;
  --tp-mint: #eef8f7;
  --tp-line: #d7e8e7;
  --tp-white: #fff;
  --tp-shadow: 0 12px 34px rgba(40, 155, 159, .16);
  --tp-radius: 16px;
  --tp-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tp-ink);
  background: var(--tp-white);
  font-family: "Galano", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--tp-teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--tp-navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  color: var(--tp-navy);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.28rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.15rem; }
p, ul, ol { margin-top: 0; margin-bottom: 1.25rem; }

.tp-container { width: min(var(--tp-width), calc(100% - 40px)); margin-inline: auto; }
.tp-narrow { width: min(820px, 100%); }
.tp-section { padding: clamp(58px, 8vw, 96px) 0; }
.tp-section--mint { background: var(--tp-mint); }
.tp-section--tight { padding: 42px 0; }
.tp-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--tp-teal-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.tp-lead { max-width: 780px; color: var(--tp-muted); font-size: clamp(1.1rem, 2vw, 1.28rem); }
.tp-centred { text-align: center; }
.tp-centred .tp-lead { margin-inline: auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { width: auto; height: auto; clip: auto; margin: 8px; padding: 10px 14px; z-index: 9999; background: #fff; }

/* Header */
.tp-topbar { padding: 8px 0; background: var(--tp-navy); color: #fff; font-size: .84rem; }
.tp-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tp-topbar a { color: #fff; text-decoration: none; }
.tp-topbar a:hover { text-decoration: underline; }
.tp-site-header { position: relative; z-index: 100; background: #fff; box-shadow: 0 6px 22px rgba(20, 58, 70, .08); }
.tp-header__inner { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.tp-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.tp-brand img,
.tp-brand .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(225px, 46vw);
  max-height: 74px;
  object-fit: contain;
  object-position: left center;
}
.tp-brand__country { padding: 4px 9px; border-left: 2px solid var(--tp-teal); color: var(--tp-navy); font-size: .88rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tp-nav { display: flex; align-items: center; gap: 20px; }
.tp-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tp-menu li { position: relative; margin: 0; }
.tp-menu a { display: block; padding: 12px 10px; color: var(--tp-ink); font-size: .95rem; font-weight: 600; text-decoration: none; }
.tp-menu a:hover, .tp-menu .current-menu-item > a, .tp-menu .current-menu-ancestor > a { color: var(--tp-teal-dark); }
.tp-menu .sub-menu {
  position: absolute; left: 0; top: 100%; display: none; width: 245px; margin: 0; padding: 10px;
  border-top: 3px solid var(--tp-teal); border-radius: 0 0 10px 10px; background: #fff; box-shadow: var(--tp-shadow); list-style: none;
}
.tp-menu li:hover > .sub-menu, .tp-menu li:focus-within > .sub-menu { display: block; }
.tp-menu .sub-menu a { padding: 9px 10px; font-size: .9rem; }
.tp-menu-toggle { display: none; padding: 10px 14px; border: 0; border-radius: 6px; background: var(--tp-navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* Buttons */
.tp-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tp-button, .wp-element-button, input[type="submit"] {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px;
  border: 2px solid var(--tp-teal); border-radius: 999px; background: var(--tp-teal); color: #fff;
  font-family: inherit; font-size: .98rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.tp-button:hover, .wp-element-button:hover, input[type="submit"]:hover { border-color: var(--tp-teal-dark); background: var(--tp-teal-dark); color: #fff; }
.tp-button--outline { border-color: var(--tp-teal); background: transparent; color: var(--tp-navy); }
.tp-button--white { border-color: #fff; background: #fff; color: var(--tp-navy); }
.tp-button--white:hover { border-color: var(--tp-mint); background: var(--tp-mint); color: var(--tp-navy); }

/* Home */
.tp-hero {
  position: relative; isolation: isolate; min-height: 640px; display: flex; align-items: center; color: #fff;
  background: url("assets/images/home-carousel.jpg") center / cover no-repeat;
}
.tp-hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(17, 65, 82, .94) 0%, rgba(26, 90, 114, .82) 55%, rgba(26, 90, 114, .25) 100%); }
.tp-hero__content { width: min(760px, 100%); padding: 85px 0; }
.tp-hero h1 { color: #fff; }
.tp-hero p { max-width: 700px; font-size: clamp(1.12rem, 2vw, 1.32rem); }
.tp-hero .tp-kicker { color: #aee4e1; }
.tp-trust-line { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .95rem; }
.tp-trust-line li::before { content: "✓"; margin-right: 7px; color: #bcece9; font-weight: 700; }

.tp-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
.tp-service-card { overflow: hidden; border-radius: var(--tp-radius); background: #fff; box-shadow: var(--tp-shadow); }
.tp-service-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.tp-service-card__body { padding: 25px; }
.tp-service-card p { color: var(--tp-muted); font-size: .96rem; }
.tp-card-link { color: var(--tp-teal-dark); font-weight: 700; text-decoration: none; }
.tp-card-link::after { content: " →"; }

.tp-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 90px); align-items: center; }
.tp-split img { width: 100%; border-radius: var(--tp-radius); box-shadow: var(--tp-shadow); }
.tp-checks { margin: 22px 0; padding: 0; list-style: none; }
.tp-checks li { position: relative; margin: 0 0 10px; padding-left: 28px; }
.tp-checks li::before { position: absolute; left: 0; content: "✓"; color: var(--tp-teal-dark); font-weight: 700; }
.tp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.tp-stat { padding: 24px; border: 1px solid var(--tp-line); border-radius: 12px; background: #fff; text-align: center; }
.tp-stat strong { display: block; color: var(--tp-teal-dark); font-size: 2rem; line-height: 1.1; }
.tp-stat span { color: var(--tp-muted); font-size: .9rem; }

.tp-badges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; align-items: center; margin-top: 35px; }
.tp-badges img { max-width: 145px; max-height: 110px; margin: auto; object-fit: contain; }
.tp-quote { margin: 0; padding: 32px; border-left: 5px solid var(--tp-teal); border-radius: 8px; background: #fff; box-shadow: var(--tp-shadow); }
.tp-quote p { font-size: 1.15rem; font-style: italic; }
.tp-quote cite { color: var(--tp-navy); font-style: normal; font-weight: 700; }

/* Interior pages */
.tp-page-hero { padding: clamp(56px, 8vw, 92px) 0; background: linear-gradient(135deg, var(--tp-navy), #267990); color: #fff; }
.tp-page-hero h1 { color: #fff; }
.tp-breadcrumbs { margin-bottom: 18px; color: #d8eeee; font-size: .86rem; }
.tp-breadcrumbs a { color: #fff; }
.tp-content { padding: clamp(50px, 7vw, 86px) 0; }
.tp-content__inner { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(35px, 6vw, 74px); align-items: start; }
.tp-entry { min-width: 0; }
.tp-entry > *:first-child { margin-top: 0; }
.tp-entry h2 { margin-top: 1.5em; }
.tp-entry h3 { margin-top: 1.35em; }
.tp-entry img { border-radius: 10px; }
.tp-sidebar { position: sticky; top: 24px; padding: 25px; border-radius: 12px; background: var(--tp-mint); }
.tp-sidebar h2 { font-size: 1.3rem; }
.tp-sidebar ul { padding-left: 20px; }
.tp-sidebar .tp-button { width: 100%; margin-top: 10px; }
.tp-callout { margin: 28px 0; padding: 24px; border-left: 5px solid var(--tp-teal); border-radius: 6px; background: var(--tp-mint); }
.tp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 30px 0; }
.tp-card { padding: 24px; border: 1px solid var(--tp-line); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(40, 155, 159, .08); }
.tp-card h3 { margin-top: 0; }
.tp-card p:last-child { margin-bottom: 0; }
.tp-price-table, .tp-entry table { width: 100%; border-collapse: collapse; margin: 25px 0; font-size: .95rem; }
.tp-price-table th, .tp-price-table td, .tp-entry th, .tp-entry td { padding: 13px 12px; border: 1px solid var(--tp-line); text-align: left; vertical-align: top; }
.tp-price-table th, .tp-entry th { background: var(--tp-navy); color: #fff; }
.tp-price-table tr:nth-child(even) td, .tp-entry tr:nth-child(even) td { background: #f7fbfb; }
.tp-faq details { margin-bottom: 12px; border: 1px solid var(--tp-line); border-radius: 9px; background: #fff; }
.tp-faq summary { padding: 17px 20px; color: var(--tp-navy); font-weight: 700; cursor: pointer; }
.tp-faq details > div { padding: 0 20px 18px; }
.tp-table-scroll { max-width: 100%; overflow-x: auto; }
.tp-people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 34px 0; }
.tp-person { overflow: hidden; border: 1px solid var(--tp-line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(40, 155, 159, .08); }
.tp-person__media { position: relative; display: flex; width: 100%; aspect-ratio: 4 / 3; align-items: center; justify-content: center; overflow: hidden; background: var(--tp-mint); }
.tp-person__media img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: cover; object-position: 50% 20%; }
.tp-person__initial { display: grid; width: 112px; height: 112px; place-items: center; border-radius: 50%; background: var(--tp-teal); color: #fff; font-size: 3.5rem; font-weight: 700; }
.tp-person__body { padding: 24px; }
.tp-person__body h2 { margin-top: 0; font-size: 1.5rem; }
.tp-person__body > *:last-child { margin-bottom: 0; }
.tp-person__role { min-height: 3.4em; color: var(--tp-muted); font-weight: 600; }
.tp-button--small { min-height: 42px; padding: 9px 17px; font-size: .9rem; }
.tp-profile-detail { display: grid; grid-template-columns: minmax(240px, 34%) minmax(0, 1fr); gap: clamp(30px, 6vw, 70px); align-items: start; }
.tp-profile-detail__media { display: grid; width: 100%; aspect-ratio: 4 / 5; place-items: center; overflow: hidden; border-radius: 14px; background: var(--tp-mint); box-shadow: var(--tp-shadow); }
.tp-profile-detail__media img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; object-position: 50% 18%; }
.tp-profile-detail__media .tp-person__initial { width: 132px; height: 132px; font-size: 4rem; }
.tp-profile-detail__content h2 { margin-top: 1.35em; }
.tp-testimonial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 34px 0; }
.tp-testimonial { margin: 0; padding: 26px; border-left: 5px solid var(--tp-teal); border-radius: 10px; background: var(--tp-mint); }
.tp-testimonial img { display: block; width: auto; max-width: 180px; height: 70px; margin: 0 0 18px; border-radius: 0; object-fit: contain; object-position: left center; }
.tp-testimonial cite { display: block; margin-top: 16px; color: var(--tp-navy); font-style: normal; font-weight: 700; }
.tp-policy-source { margin: 0 0 28px; padding: 18px 20px; border: 1px solid var(--tp-line); border-left: 5px solid var(--tp-teal); border-radius: 8px; background: var(--tp-mint); }
.tp-policy-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 30px 0; }
.tp-policy-list article { padding: 20px; border: 1px solid var(--tp-line); border-radius: 10px; }
.tp-policy-list h2 { margin: 0 0 8px; font-size: 1.25rem; }
.tp-policy-list p { margin: 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; max-width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #b9cccc; border-radius: 6px; background: #fff; color: var(--tp-ink); font: inherit;
}
textarea { min-height: 150px; }

.tp-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tp-post-card { padding: 24px; border: 1px solid var(--tp-line); border-radius: 12px; background: #fff; }
.tp-post-card h2 { font-size: 1.35rem; }
.tp-post-card time { color: var(--tp-muted); font-size: .86rem; }
.navigation.pagination { margin-top: 38px; }

/* Footer */
.tp-cta { padding: 54px 0; background: var(--tp-teal); color: #fff; }
.tp-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.tp-cta h2 { color: #fff; }
.tp-footer { padding: 62px 0 22px; background: #102f3c; color: #d5e5e9; }
.tp-footer a { color: #fff; }
.tp-footer__grid { display: grid; grid-template-columns: 1.25fr .8fr .8fr 1fr; gap: 38px; }
.tp-footer h2 { color: #fff; font-size: 1.15rem; }
.tp-footer ul { margin: 0; padding: 0; list-style: none; }
.tp-footer li { margin-bottom: 7px; }
.tp-footer__logo { width: 220px; padding: 12px; border-radius: 8px; background: #fff; }
.tp-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: .82rem; }

@media (max-width: 1040px) {
  .tp-menu-toggle { display: inline-flex; }
  .tp-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 14px 20px 24px; background: #fff; box-shadow: var(--tp-shadow); }
  .tp-nav.is-open { display: block; }
  .tp-menu { display: block; }
  .tp-menu a { padding: 11px 4px; }
  .tp-menu .sub-menu { position: static; display: block; width: auto; padding: 0 0 0 18px; border: 0; box-shadow: none; }
  .tp-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .tp-topbar__inner, .tp-cta__inner, .tp-footer__bottom { display: block; }
  .tp-topbar__inner span:last-child { display: none; }
  .tp-header__inner { min-height: 88px; }
  .tp-brand img, .tp-brand .custom-logo { max-width: min(175px, 46vw); }
  .tp-brand__country { font-size: .72rem; }
  .tp-hero { min-height: 560px; background-position: 62% center; }
  .tp-hero::before { background: rgba(17, 65, 82, .89); }
  .tp-service-grid, .tp-split, .tp-cards, .tp-post-grid, .tp-content__inner, .tp-people-grid, .tp-testimonial-grid, .tp-policy-list, .tp-profile-detail { grid-template-columns: 1fr; }
  .tp-profile-detail__media { max-width: 420px; }
  .tp-stats { grid-template-columns: 1fr; }
  .tp-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-sidebar { position: static; }
  .tp-footer__grid { grid-template-columns: 1fr; }
  .tp-cta .tp-buttons { margin-top: 22px; }
  .tp-price-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
