/*
Theme Name: Nest Wealth Management Restored
Theme URI: https://nestwealthmanagement.com/
Author: Nest Wealth Management Site Recovery
Description: Pixel-matched restoration of the archived Nest Wealth Management WordPress site shown in the supplied reference screenshots. Includes Home, FAQ, Contact, navigation, forms, and local media assets.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nest-wealth-restored
*/

@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&display=swap');

:root {
  --nwm-blue: #2f74b9;
  --nwm-blue-dark: #16558d;
  --nwm-ink: #202838;
  --nwm-muted: #3c4658;
  --nwm-soft: #f5f8fb;
  --nwm-line: #e7edf3;
  --nwm-white: #fff;
  --nwm-dark-panel: #1b2230;
  --nwm-width: 1070px;
  --nwm-font: "Bree Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--nwm-ink);
  font-family: var(--nwm-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--nwm-blue); }
button, input, textarea { font: inherit; }
.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;
}

.site-header { background: #fff; border-top: 1px solid #a7a7a7; }
.site-header__inner {
  width: min(calc(100% - 42px), var(--nwm-width));
  min-height: 69px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.site-brand {
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.primary-nav ul { display: flex; gap: 25px; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
  color: #293245;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
}
.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: #111827; }
.menu-toggle { display: none; }

.nwm-wrap { width: min(calc(100% - 42px), var(--nwm-width)); margin: 0 auto; }
.nwm-pattern {
  background-color: #f8fbfd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160' viewBox='0 0 220 160'%3E%3Cg fill='none' stroke='%23e8eef3' stroke-width='1.1' opacity='.72'%3E%3Cpath d='M8 18l14 8-8 12 18 9M49 4l-6 16 15 7-5 15M80 12l13-8 7 17 12-4M132 8l-5 14 15 6-4 13M170 4l12 12-8 11 14 9M202 22l-10 8 12 13-8 10M17 70l12-11 11 13-8 12M63 58l-8 13 14 8-9 13M99 61l15 7-6 13 11 10M143 58l9 11-11 14 16 5M187 62l-9 12 13 9-7 15M4 120l13-8 8 15-11 11M46 112l10 9-8 15 15 7M91 115l-7 13 13 9-4 15M132 111l15 8-7 13 12 9M178 113l9 12-10 13 17 7M211 103l-11 9 9 14-13 8'/%3E%3C/g%3E%3C/svg%3E");
}

/* Home hero */
.home-hero {
  position: relative;
  min-height: 259px;
  background: url('assets/images/home-hero.jpg') center 54% / cover no-repeat;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(210, 220, 223, .76);
}
.home-hero__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 42px), var(--nwm-width));
  min-height: 259px;
  margin: 0 auto;
  padding: 28px 0 22px;
}
.home-hero__kicker { margin: 0 0 8px; color: var(--nwm-blue-dark); font-size: 15px; }
.home-hero h1 {
  max-width: 1020px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 4.25vw, 54px);
  line-height: 1.08;
  letter-spacing: .01em;
}
.home-hero__actions { display: flex; justify-content: center; gap: 8px; margin-top: 27px; }
.nwm-button {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 17px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 2px;
  background: var(--nwm-blue);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.nwm-button:hover, .nwm-button:focus { background: #245f9b; color: #fff; }

/* Home introduction */
.home-intro { padding: 57px 0 54px; background: #fff; }
.home-intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.home-testimonial { text-align: center; padding: 0 18px; }
.home-testimonial__label { margin: 0 0 12px; color: var(--nwm-blue); font-size: 15px; }
.home-testimonial blockquote { margin: 0; font-size: 24px; line-height: 1.48; }
.home-testimonial__person { margin-top: 16px; font-size: 14px; line-height: 1.45; }
.home-testimonial__person strong { display: block; }
.home-exams { padding: 0 10px; }
.home-exams h2 { margin: 0 0 15px; font-size: 25px; line-height: 1.2; }
.home-exams h2:nth-of-type(2) { margin-top: 38px; }
.home-exams p { margin: 0 0 27px; font-size: 15px; }

/* Services */
.home-services { min-height: 335px; padding: 55px 0 58px; }
.home-services h2 { margin: 0 0 34px; text-align: center; font-size: 24px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.service-card { position: relative; min-width: 0; }
.service-card__image {
  width: 205px;
  height: 205px;
  margin: 0 auto;
  border: 8px solid #fff;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
}
.service-card__label {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 180px;
  min-height: 55px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  color: #1e293b;
  font-size: 18px;
  line-height: 1.3;
  box-shadow: 0 1px 1px rgba(15, 23, 42, .04);
}
.service-card--financial .service-card__image { background-image: url('assets/images/financial-planning.jpg'); }
.service-card--investment .service-card__image { background-image: url('assets/images/investment-management.jpg'); }
.service-card--retirement .service-card__image { background-image: url('assets/images/retirement-planning.jpg'); }
.service-card--estate .service-card__image { background-image: url('assets/images/estate-management.jpg'); }

/* Biography */
.home-bio { padding: 56px 0 58px; background: #fff; }
.home-bio__label { margin: 0 0 9px; color: var(--nwm-blue); font-size: 15px; }
.home-bio__top { display: grid; grid-template-columns: 520px 1fr; gap: 30px; align-items: start; }
.home-bio__portrait { width: 520px; }
.home-bio__top-copy { padding-top: 201px; font-size: 15px; line-height: 1.65; }
.home-bio__top-copy p { margin: 0 0 27px; }
.home-bio__bottom h2 {
  width: 540px;
  margin: 36px 0 20px;
  font-size: 25px;
  font-style: italic;
  line-height: 1.45;
}
.home-bio__bottom { font-size: 15px; line-height: 1.65; }
.home-bio__bottom p { margin: 0 0 28px; }

/* Interior hero */
.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(7, 15, 24, .62); }
.page-hero__content { position: relative; z-index: 1; }
.page-hero h1 { margin: 0; font-size: 24px; line-height: 1.2; }
.page-hero p { margin: 16px 0 0; font-size: 14px; }
.faq-hero { min-height: 279px; background: url('assets/images/faq-hero.jpg') center 48% / cover no-repeat; }
.contact-hero { min-height: 126px; background: url('assets/images/contact-hero.jpg') center 47% / cover no-repeat; }
.contact-hero::before { background: rgba(15, 23, 42, .48); }

/* FAQ */
.faq-main { padding: 72px 0 84px; background: #fff; }
.faq-grid { display: grid; grid-template-columns: 630px 1fr; gap: 28px; align-items: start; }
.faq-left h2 { margin: 0 0 24px; font-size: 24px; }
.faq-item { border-bottom: 1px solid #eef1f5; }
.faq-question {
  width: 100%;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #111827;
  text-align: left;
  cursor: pointer;
}
.faq-question::before {
  content: "⌄";
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #202938;
  color: #fff;
  font-size: 16px;
  line-height: 1;
}
.faq-item.is-open .faq-question::before { content: "⌃"; }
.faq-answer { display: none; padding: 17px 17px 19px; border: 1px solid #e7ebf0; border-bottom: 0; font-size: 15px; }
.faq-item.is-open .faq-answer { display: block; }
.faq-answer p { margin: 0; }
.faq-right { padding-left: 2px; }
.faq-right h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.35; }
.faq-form-card { padding: 35px 56px 62px; background: var(--nwm-soft); border-radius: 5px; }
.nwm-field { position: relative; margin-bottom: 15px; }
.nwm-field input, .nwm-field textarea {
  width: 100%;
  border: 0;
  background: #fff;
  color: var(--nwm-ink);
  padding: 14px 13px;
  outline: none;
}
.nwm-field textarea { min-height: 112px; resize: vertical; }
.nwm-field input:focus, .nwm-field textarea:focus { box-shadow: 0 0 0 2px rgba(47,116,185,.25); }
.nwm-submit { width: 100%; min-height: 51px; text-transform: uppercase; font-size: 16px; }
.nwm-honeypot { position: absolute !important; left: -10000px !important; }
.nwm-form-notice { margin: 0 0 16px; padding: 10px 13px; background: #e8f5eb; border: 1px solid #bddfc4; color: #205c2e; }
.nwm-form-notice--error { background: #fff0f0; border-color: #edc4c4; color: #8b1e1e; }

/* Contact */
.contact-main { padding: 55px 0 51px; min-height: 558px; }
.contact-grid { display: grid; grid-template-columns: 1fr 470px; gap: 72px; align-items: start; }
.contact-left h2 { margin: 0 0 33px; font-size: 24px; line-height: 1.55; }
.contact-items { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 58px; }
.contact-item__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 11px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--nwm-blue);
  color: #fff;
}
.contact-item__icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 2; }
.contact-item h3 { margin: 0 0 8px; color: var(--nwm-blue); font-size: 16px; }
.contact-item p { margin: 0; color: #313a4a; font-size: 15px; line-height: 1.55; }
.contact-item a { color: #202838; text-decoration: none; }
.contact-form-card { padding: 53px 52px 77px; background: var(--nwm-dark-panel); color: #fff; border-radius: 5px; }
.contact-form-card label { display: block; margin-bottom: 6px; font-size: 14px; }
.contact-form-card .required { color: #ff5b5b; }
.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  padding: 13px 12px;
  border: 1px solid #687386;
  background: transparent;
  color: #fff;
  outline: none;
}
.contact-form-card textarea { min-height: 113px; resize: vertical; }
.contact-form-card input:focus,
.contact-form-card textarea:focus { border-color: #9dbfe2; box-shadow: 0 0 0 2px rgba(47,116,185,.2); }
.contact-form-card .nwm-field { margin-bottom: 17px; }
.contact-form-card .nwm-submit { min-height: 52px; text-transform: none; font-size: 17px; }

.site-footer { min-height: 141px; display: grid; place-items: center; background: #fff; }
.site-footer p { margin: 0; color: #2f3746; font-size: 14px; }
.site-footer a { color: var(--nwm-blue); }

.generic-page { width: min(calc(100% - 42px), var(--nwm-width)); margin: 0 auto; padding: 70px 0 90px; }
.generic-page h1 { font-size: 42px; }

@media (max-width: 1050px) {
  .home-bio__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home-bio__portrait { width: 100%; }
  .home-bio__top-copy { padding-top: 80px; }
  .faq-grid { grid-template-columns: minmax(0, 1.4fr) minmax(300px, .9fr); }
  .contact-grid { grid-template-columns: 1fr 430px; gap: 38px; }
  .service-grid { gap: 14px; }
  .service-card__image { width: 190px; height: 190px; }
}

@media (max-width: 820px) {
  .site-header__inner { min-height: 64px; }
  .menu-toggle { display: inline-flex; padding: 8px 11px; border: 1px solid #d9dee5; background: #fff; border-radius: 3px; color: #202838; }
  .primary-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-top: 1px solid #e7ebf0; box-shadow: 0 8px 18px rgba(15,23,42,.08); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { width: min(calc(100% - 42px), var(--nwm-width)); margin: 0 auto; padding: 12px 0 18px; flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: 11px 0; }
  .home-intro__grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 32px 18px; }
  .home-bio__top { grid-template-columns: 1fr; }
  .home-bio__top-copy { padding-top: 0; }
  .home-bio__bottom h2 { width: auto; }
  .faq-form-card, .contact-form-card { padding: 34px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .site-brand { font-size: 19px; }
  .home-hero__inner { padding-top: 32px; }
  .home-hero h1 { font-size: 38px; }
  .home-hero__actions { justify-content: flex-start; flex-direction: column; align-items: flex-start; }
  .home-intro { padding: 48px 0; }
  .home-intro__grid { gap: 45px; }
  .home-testimonial blockquote { font-size: 21px; }
  .service-grid { grid-template-columns: 1fr; }
  .contact-items { grid-template-columns: 1fr; gap: 25px; }
  .faq-form-card, .contact-form-card { padding: 26px 20px; }
  .site-footer { min-height: 110px; padding: 24px; text-align: center; }
}
