/*
 * Empower Finance - site styles.
 * Colours and fonts match the WordPress site (Astra theme + Elementor).
 */

@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --teal: #006c8b;          /* Primary */
  --teal-dark: #00495d;     /* Footer */
  --teal-light: #9bcec8;    /* Accent */
  --brand-orange: #f7901e;  /* Original orange. Too light to read on white, so used for decoration only. */
  --orange: #c96a00;        /* Headings: original orange darkened to pass WCAG AA for large text */
  --orange-text: #a85600;   /* Small orange text: passes WCAG AA on white and light grey */
  --orange-on-teal: #ffb35c;/* Card headings on the teal background */
  --text: #55606c;          /* Strong text */
  --text-strong: #1a202c;
  --grey-light: #f2f3f3;    /* Shaded sections, header */
  --grey: #eaeaea;          /* Form section */
  --border: #d0d5db;
  --white: #fff;
  --red: #d40000;
  --heading-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

h1, h2, h3 { font-family: var(--heading-font); line-height: 1.2; margin: 0 0 .5em; }

p { margin: 0 0 1em; }

a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--orange-text); }

:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

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

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 16px; background: var(--teal); color: var(--white); }
.skip-link:focus { top: 8px; color: var(--white); }

/* Buttons ---------------------------------------------------------------- */

.button {
  display: inline-block;
  padding: .75em 1.6em;
  border: 2px solid currentColor;
  border-radius: 60px;
  font-family: var(--heading-font);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  background: transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.button--light { color: var(--white); }
.button--light:hover { background: var(--white); border-color: var(--white); color: var(--teal); }
.button--outline { color: var(--teal); }
.button--outline:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.button--small { font-size: .8125rem; padding: .3em 1em; border-width: 1px; color: var(--orange-text); font-weight: 700; }
.button--small:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* Header ----------------------------------------------------------------- */

.top-bar { background: var(--white); font-size: .875rem; }
.top-bar__inner { display: flex; justify-content: flex-end; align-items: center; gap: 16px; min-height: 36px; padding-top: 4px; padding-bottom: 4px; flex-wrap: wrap; }
.top-bar__link { color: var(--orange-text); font-weight: 700; text-decoration: none; }
.top-bar__link:hover { color: var(--teal); text-decoration: underline; }

.main-header { background: var(--grey-light); }
.main-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.logo img { width: 202px; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.primary-nav a {
  display: block; padding: 10px 16px;
  font-family: var(--heading-font); font-weight: 500; font-size: 1rem; letter-spacing: .02em;
  color: var(--teal); text-decoration: none;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--orange-text); }

.menu-toggle { display: none; }

@media (max-width: 768px) {
  .logo img { width: 143px; }
  .top-bar__inner { justify-content: center; text-align: center; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; border: 1px solid var(--teal); border-radius: 4px;
    background: transparent; color: var(--teal); font: 500 1rem var(--heading-font); cursor: pointer;
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative;
  }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; }
  .menu-toggle__bars::after { top: 6px; }
  .primary-nav { flex-basis: 100%; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { padding: 12px 4px; border-top: 1px solid var(--border); }
  .js .primary-nav { display: none; }
  .js .main-header.is-open .primary-nav { display: block; }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 425px;
  padding: 64px 0 96px;
  background: var(--teal-dark);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.hero--tall { min-height: 573px; }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.hero--darken::after { background: rgba(84, 89, 95, .45); }
.hero__content { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.875rem); font-weight: 700; color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero__subheading {
  font-family: var(--heading-font); font-weight: 500; font-size: clamp(1.25rem, 2.6vw, 1.6875rem);
  line-height: 1.35; max-width: 820px; margin: 0 auto 1.25em; text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.hero .button { margin-top: .5em; }

.wave { position: absolute; left: 0; width: 100%; height: 49px; display: block; z-index: 1; }
.wave--bottom { bottom: -1px; fill: var(--teal); }
.wave--top { top: -1px; fill: var(--white); transform: scaleY(-1); }

/* Sections --------------------------------------------------------------- */

.section { padding: clamp(48px, 7vw, 80px) 0; }
.section--shaded { background: var(--grey-light); }

.title-large {
  font-family: var(--heading-font); font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.6875rem);
  color: var(--orange); text-align: center;
}
.title-small { font-size: clamp(1.375rem, 2.4vw, 1.5625rem); font-weight: 700; color: var(--orange); }
.kicker { font-family: var(--heading-font); font-size: clamp(1.5rem, 3vw, 1.875rem); color: var(--teal); margin-bottom: .4em; }

.intro { padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.intro__inner { display: grid; gap: 32px; align-items: center; }
.intro--with-image .intro__inner { grid-template-columns: 3fr 2fr; }
.intro__text p { font-size: 1.25rem; text-align: center; }
.intro:not(.intro--with-image) .intro__text { max-width: 900px; margin: 0 auto; }
.page-tax-returns-2025 .intro .title-large { font-size: clamp(1.875rem, 3.6vw, 2.8125rem); }
.page-tax-returns-2025 .intro__text p { font-size: 1.0625rem; }

.cards .title-large { font-size: clamp(1.875rem, 3.6vw, 2.8125rem); margin-bottom: 1em; }
.cards__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--teal); color: var(--white);
  padding: 50px 40px 30px;
  border-radius: 0 60px 0 60px;
}
.card:nth-child(2), .card:nth-child(3) { border-radius: 60px 0 60px 0; }
.card h3 { font-size: 1.5625rem; font-weight: 700; color: var(--orange-on-teal); }
.card p { font-size: 1.125rem; }
.card strong { color: var(--white); }

/* Testimonials: quote marks top-left and bottom-right, centred text, as on the old site */
.testimonials__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.testimonial { margin: 0; position: relative; padding: 28px 12px 44px; text-align: center; }
.testimonial::before, .testimonial::after {
  position: absolute; font-family: Georgia, serif; font-weight: 700; font-size: 5rem; line-height: 1; color: var(--teal-light);
}
.testimonial::before { content: "\201C"; left: 0; top: -12px; }
.testimonial::after { content: "\201D"; right: 0; bottom: -28px; }
.testimonial h3 { font-size: 1.5rem; font-weight: 500; color: var(--teal); margin: 0 0 .75em; padding: 0 28px; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { margin-top: .25em; }

.cta { background: #f4f4f4; text-align: center; }
.cta h2 { font-weight: 400; font-size: clamp(1.75rem, 3.2vw, 2.375rem); color: var(--teal); }
.cta__subheading { font-family: var(--heading-font); font-size: clamp(1.375rem, 2.6vw, 1.75rem); color: var(--orange-text); }

.split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split__text p, .split__text li { font-size: 1.125rem; }
.split .split__text > p { font-size: 1.25rem; }
.split__images { display: grid; gap: 20px; }
.split__images img { width: 100%; }

.bullets { padding-left: 1.25em; margin: 0 0 1em; }
.bullets li { margin-bottom: .4em; }

.deadlines .split__inner { align-items: start; }
.deadlines__list h3 { font-family: var(--body-font); font-size: 1.125rem; font-weight: 700; color: var(--text); margin: .2em 0 .3em; }
.deadlines__list li { margin-bottom: 1em; }
.deadlines__list p { margin-bottom: .3em; }
.deadlines .title-small { margin-top: 1em; }
.deadline-label { color: var(--red); }

.message { text-align: center; min-height: 40vh; }

/* Contact form section --------------------------------------------------- */

.form-section { position: relative; background: var(--grey); padding-top: 110px; }
.form-section--plain { padding-top: clamp(48px, 7vw, 80px); }
.form-section__inner { max-width: 760px; }
.form-section__inner--split { max-width: var(--container); display: grid; grid-template-columns: 3fr 2fr; gap: 48px; }
.form-section .title-large { font-size: clamp(1.875rem, 3.4vw, 2.3125rem); }
.form-section__text { font-size: 1.375rem; font-weight: 600; color: var(--teal); text-align: center; }
.form-section__details { padding-top: 24px; }
.form-section__details .form-section__text { text-align: left; }

.contact-form { margin-top: 24px; }
.field { margin: 0 0 18px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; color: var(--teal); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; color: var(--text-strong);
  background: var(--white); border: 1px solid #8f99a4; border-radius: 4px;
}
.field input:focus, .field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(0, 108, 139, .25); outline-offset: 0; }
.field input::placeholder, .field textarea::placeholder { color: #6b7480; }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: .9375rem; margin: 6px 0 0; }
.required { color: var(--red); }
.checkbox { display: flex !important; align-items: center; gap: 10px; font-weight: 400 !important; color: var(--text) !important; margin-bottom: 6px; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--teal); }
.field--trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-notice { padding: 14px 18px; border-radius: 6px; margin: 20px 0; font-weight: 600; }
.form-notice--success { background: #e3f4ee; border: 1px solid #2f8a63; color: #1d5c41; }
.form-notice--error { background: #fdeaea; border: 1px solid var(--red); color: #8a0000; }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.feature-list .icon { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--teal); fill: var(--white); }
.feature-list h3 { font-size: 1.25rem; color: var(--teal); margin: 0 0 .2em; }
.feature-list p { margin: 0; color: #54595f; }

/* Footer ----------------------------------------------------------------- */

.site-footer { background: var(--teal-dark); color: var(--white); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--orange-on-teal); text-decoration: underline; }
.site-footer__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 48px; align-items: start; }
.site-footer__logo img { width: 191px; }
.site-footer__nav ul, .contact-list { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li { margin-bottom: 8px; }
.site-footer__nav a { font-family: var(--heading-font); font-weight: 500; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.contact-list .icon { flex: none; fill: var(--white); }
.site-footer__bottom { background: #6ea6a6; color: var(--text-strong); font-size: .9375rem; }
.site-footer__bottom p { margin: 0; padding: 14px 0; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1024px) {
  .cards__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .intro--with-image .intro__inner, .split__inner, .form-section__inner--split { grid-template-columns: 1fr; }
  .split__images { order: 2; }
  .cards__grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonials__grid { grid-template-columns: 1fr; gap: 48px; }
  .card { padding: 36px 28px 20px; }
  .site-footer__inner { grid-template-columns: 1fr; text-align: left; }
  .hero { padding: 48px 0 80px; min-height: 360px; }
  .hero--tall { min-height: 432px; }
  .form-section { padding-top: 80px; }
}
