@charset "UTF-8";

/*
Theme Name: Strategic Financials 2026
Theme URI: https://strategicfinancials.co.nz/
Description: Strategic Financials – single-page landing for bookkeeping and payroll. Figtree + Hand Of Sean.
Version: 1.0.0
Author: Strategic Financials
Author URI: https://strategicfinancials.co.nz
Text Domain: strategic-financials
*/

/* Design tokens – match strategic-financials-lander.png */
:root {
  --font-sans: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-hand: 'Hand of Sean', cursive;
  --strategic-blue: #283547;
  --strategic-orange: #FF7020;
  --strategic-footer: #1e2a3a;
  --strategic-form-bg: #354a5f;
  --strategic-light-green: #E8F5E9;
  --strategic-light-blue: #E8F4F8;
  --strategic-light-orange: #FFF4E6;
  --h1-size: clamp(2.25rem, 2.5vw + 1.25rem, 3.5rem);
  --h2-size: clamp(1.75rem, 1.8vw + 0.9rem, 2.5rem);
  --h3-size: clamp(1.25rem, 1.2vw + 0.6rem, 1.75rem);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

/* Skip link – visible only on focus for keyboard/screen reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--strategic-blue);
  color: #fff;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body,
.font-sans {
  font-family: var(--font-sans);
}
body {
  font-size: 16px;
  font-weight: 400;
  color: #374151;
  margin: 0;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--strategic-blue);
}

.font-hand {
  font-family: var(--font-hand);
  color: inherit;
  background-image: url('images/underline.svg');
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 100% 0.4em;
  padding-bottom: 0.2em;
  display: inline-block;
  font-weight: 300;
}

/* Problem/solution benefit quotes: hand font, primary color, no underline */
.problem-solution-benefits .font-hand {
  background-image: none;
  padding-bottom: 0;
  color: var(--strategic-orange);
}

/* About section signature: hand font, no underline */
.about-popout-signature .font-hand {
  background-image: none;
  padding-bottom: 0;
}

.text-strategic-orange { color: var(--strategic-orange); }
.bg-strategic-orange { background-color: var(--strategic-orange); }
.bg-strategic-blue { background-color: var(--strategic-blue); }
.bg-strategic-footer { background-color: var(--strategic-footer); }

/* Hero – full-width hero.jpg + blue gradient overlay (opaque left → transparent right) */
.hero-section {
  min-height: 600px;
}
@media (min-width: 768px) {
  .hero-section {
    height: 600px;
  }
}
@media (max-width: 767px) {
  .hero-section {
    min-height: 0;
    height: auto;
  }
}
.hero-section .hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-section .hero-overlay {
  background: linear-gradient(to right, rgb(15 116 199) 0%, rgb(15 116 199 / 97%) 40%, rgba(15, 116, 199, 0.25) 70%, transparent 100%);
}
.hero-section .wrap { max-width: 1200px; }

/* FAQ accordion */
.faq-item .faq-question {
  font-size: 1.125rem;
  font-weight: 700;
}
@media (min-width: 768px) {
  .faq-item .faq-question {
    font-size: 1.25rem;
  }
}
.faq-item [data-answer] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.active [data-answer] {
  max-height: 2000px;
}
.faq-item .faq-chevron {
  transition: transform 0.2s ease;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* Contact Form 7 in #quote – structure: one <p> with labels + wraps + submit */
#quote .quote-form-cf7 .hidden-fields-container {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
}
#quote .quote-form-cf7 .wpcf7-form {
  margin: 0;
}
#quote .quote-form-cf7 .wpcf7-form > p {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
#quote .quote-form-cf7 .wpcf7-form br {
  display: none;
}
/* Hide label text – placeholders only; label is just a wrapper for the field */
#quote .quote-form-cf7 .wpcf7-form label {
  display: block;
  font-size: 0;
  line-height: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
}
#quote .quote-form-cf7 .wpcf7-form label .wpcf7-form-control-wrap {
  display: block;
  font-size: 1rem;
  line-height: normal;
}
#quote .quote-form-cf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Shared field style + left padding for icons */
#quote .quote-form-cf7 input.wpcf7-form-control,
#quote .quote-form-cf7 select.wpcf7-form-control,
#quote .quote-form-cf7 textarea.wpcf7-form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  background-repeat: no-repeat;
  background-position: 0.75rem center;
  background-size: 1.25rem 1.25rem;
  min-height: 3rem;
}
#quote .quote-form-cf7 input.wpcf7-form-control:focus,
#quote .quote-form-cf7 select.wpcf7-form-control:focus,
#quote .quote-form-cf7 textarea.wpcf7-form-control:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
#quote .quote-form-cf7 input.wpcf7-not-valid,
#quote .quote-form-cf7 select.wpcf7-not-valid,
#quote .quote-form-cf7 textarea.wpcf7-not-valid {
  border-color: rgba(255, 112, 32, 0.6);
  background-color: rgba(255, 112, 32, 0.06);
}
/* Icons – white stroke 60% opacity (encoded for data URI) */
#quote .quote-form-cf7 input[name="your-name"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-opacity='0.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E");
}
#quote .quote-form-cf7 input[name="your-phone"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-opacity='0.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E");
}
#quote .quote-form-cf7 input[name="your-email"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-opacity='0.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E");
}
#quote .quote-form-cf7 select[name="service-type"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-opacity='0.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E");
}
#quote .quote-form-cf7 textarea[name="your-message"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-opacity='0.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z'/%3E%3C/svg%3E");
  background-position: 0.75rem 0.75rem;
}
#quote .quote-form-cf7 textarea.wpcf7-form-control {
  min-height: 5rem;
  height: auto;
  resize: vertical;
  max-height: 12rem;
  padding-top: 0.875rem;
}
#quote .quote-form-cf7 select.wpcf7-form-control {
  padding-right: 2.5rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
#quote .quote-form-cf7 select:invalid,
#quote .quote-form-cf7 select.wpcf7-form-control:invalid { color: rgba(255, 255, 255, 0.55); }
#quote .quote-form-cf7 select option[value=""] { color: rgba(255, 255, 255, 0.55); }
#quote .quote-form-cf7 select option:not([value=""]) { color: #1f2937; }
#quote .quote-form-cf7 input.wpcf7-form-control::placeholder,
#quote .quote-form-cf7 textarea.wpcf7-form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
/* Submit row – align button and spinner */
#quote .quote-form-cf7 .wpcf7-form > p {
  align-items: stretch;
}
#quote .quote-form-cf7 .wpcf7-submit,
#quote .quote-form-cf7 input.wpcf7-submit {
  width: 100%;
  background: var(--strategic-orange);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-family: var(--font-sans);
  margin-top: 0.25rem;
  transition: opacity 0.2s, transform 0.05s;
}
#quote .quote-form-cf7 .wpcf7-submit:hover,
#quote .quote-form-cf7 input.wpcf7-submit:hover {
  opacity: 0.95;
}
#quote .quote-form-cf7 .wpcf7-submit:active,
#quote .quote-form-cf7 input.wpcf7-submit:active {
  transform: scale(0.99);
}
/* Spinner – hide until sending, then show inline */
#quote .quote-form-cf7 .wpcf7-spinner {
  visibility: hidden;
  margin-left: 0.5rem;
  vertical-align: middle;
}
#quote .quote-form-cf7 .wpcf7-form.sending .wpcf7-spinner,
#quote .quote-form-cf7 .wpcf7-form.submitting .wpcf7-spinner {
  visibility: visible;
}
/* Inline validation message under field */
#quote .quote-form-cf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--strategic-orange);
}
#quote .quote-form-cf7 .wpcf7-response-output {
  margin: 1.25rem 0 0;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--strategic-orange);
}
/* Override CF7 default yellow border – use primary (brand) orange */
#quote .quote-form-cf7 .wpcf7-form.invalid .wpcf7-response-output,
#quote .quote-form-cf7 .wpcf7-form.unaccepted .wpcf7-response-output,
#quote .quote-form-cf7 .wpcf7-form.payment-required .wpcf7-response-output {
  border-color: rgba(255, 112, 32, 0.4);
}
/* Override CF7 default green border on success – use primary (brand) orange */
#quote .quote-form-cf7 .wpcf7-form.sent .wpcf7-response-output {
  border-color: rgba(255, 112, 32, 0.4);
}
#quote .quote-form-cf7 .wpcf7-response-output.wpcf7-mail-sent-ok {
  background: rgba(255, 112, 32, 0.15);
  color: var(--strategic-orange);
  border: 1px solid rgba(255, 112, 32, 0.4);
}
/* Validation / send error – primary (brand) color */
#quote .quote-form-cf7 .wpcf7-response-output.wpcf7-validation-errors,
#quote .quote-form-cf7 .wpcf7-response-output.wpcf7-validation-error,
#quote .quote-form-cf7 .wpcf7-response-output.wpcf7-mail-sent-ng {
  background: rgba(255, 112, 32, 0.12);
  color: var(--strategic-orange);
  border: 1px solid rgba(255, 112, 32, 0.4);
}
#quote .quote-form-cf7 .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Quote section – form field icons (fallback form) */
#quote .form-field-with-icon {
  position: relative;
}
#quote .form-field-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}
#quote .form-field-icon--top {
  top: 1rem;
  transform: none;
}

/* Testimonials carousel – Swiper */
.testimonials-swiper { padding-bottom: 3rem; }
.testimonials-swiper .swiper-slide { height: auto; }
.testimonials-swiper .swiper-wrapper { align-items: stretch; }
.testimonials-swiper .swiper-slide > div { height: 100%; }
.testimonials-swiper .testimonial-card { display: flex; flex-direction: column; min-height: 0; }
.testimonials-swiper .testimonial-preview { flex: 1; min-height: 0; }
/* Pagination dots – centered, one row */
.testimonials-swiper .swiper-pagination { position: relative; bottom: 0; margin-top: 1.5rem; }
.testimonials-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--strategic-blue);
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}
.testimonials-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--strategic-orange);
  transform: scale(1.2);
}

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

.about-popout{
  background:#f6f8fb;
  position:relative;
}

/* ✅ LEFT PANEL ONLY */
.about-popout-panel{
  position:absolute;
  inset:0;
  background:var(--strategic-blue);
  z-index:0;
}

/* ✅ SOFT EDGE BLEND */
.about-popout-blend{
  position:absolute;
  top:0;
  bottom:0;
  left:58%;
  width:260px;
  background:linear-gradient(
    to right,
    rgba(40,53,71,1) 0%,
    rgba(40,53,71,.6) 45%,
    rgba(40,53,71,0) 100%
  );
  z-index:1;
}

/* ensure height for absolute image */
@media (min-width:1024px){
  .about-popout{
    min-height:560px;
  }
}

/* portrait pop-out */
.about-popout-image{
  position: absolute;
  right: 0;
  top: -70px;
  bottom: 0;
  width: 720px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
}

/* large monitors: give image breathing room from the edge */
@media (min-width: 1280px) {
  .about-popout-image {
    right: 5%;
  }
}

.about-popout-image img{
  width:100%;
  height:auto;
  display:block;
}

/* text width control */
@media (min-width:1024px){
  .about-popout-left{
    max-width:650px;
  }
}

/* mobile */
@media (max-width:1023px){

  .about-popout-panel{ width:100%; }
  .about-popout-blend{ display:none; }

  .about-popout-image{
    position:relative;
    top:0;
    right:0;
    width:100%;
    max-width:100%;
    margin-top:36px;
    padding-left:1rem;
    padding-right:1rem;
    box-sizing:border-box;
  }

  .about-popout-image img{
    max-width:100%;
    height:auto;
    width:100%;
    object-fit:cover;
    object-position:center top;
  }
}

/* overlay block */
.about-popout-signature{
  position: absolute;
  right: 40px;
  bottom: 18px;
  text-align: center;
  z-index: 4;
}

/* optional subtle readability boost */
.about-popout-signature p{
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* About stats – 50% bigger than base (was text-4xl / text-sm) */
.about-stats .about-stat-number {
  font-size: 3.375rem;
  font-weight: 800;
  color: var(--strategic-orange);
}
.about-stats .about-stat-label {
  font-size: 1.3125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

/* About stats – responsive so they don’t overflow on mobile */
@media (max-width: 767px) {
  .about-stats .about-stat-number {
    font-size: 2rem;
  }
  .about-stats .about-stat-label {
    font-size: 0.875rem;
  }
}
@media (max-width: 480px) {
  .about-stats .about-stat-number {
    font-size: 1.5rem;
  }
  .about-stats .about-stat-label {
    font-size: 0.75rem;
  }
}

/* mobile — move below image */
@media (max-width:1023px){

  .about-popout-image{
    position:relative;
    top:0;
    right:0;
    width:100%;
    max-width:100%;
    margin-top:36px;
  }

  .about-popout-signature{
    position: absolute;
    bottom: 20px;
    right: 50px;
    margin-top: 12px;
    text-align: left;
  }

  /* stats grid: smaller gap on small screens */
  .about-popout .grid.grid-cols-3{
    gap:1rem;
  }
}
@media (max-width: 767px) {
  .about-stats {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  .about-stats > div {
    min-width: 0;
    overflow: hidden;
  }
}
@media (max-width: 480px) {
  .about-stats {
    gap: 0.25rem;
  }
}
