/* Storefront Merchant Co. — public site.
   Sizes follow "Final Website Design Instructions" (Oct 3, 2026), Part 3,
   and the designer's HTML mockups (02_Mockups/HTML). Desktop / mobile
   (<= 900px) values are listed in the comments next to each element. */
:root {
  --navy: #1B2A41;
  --orange: #E2711D;
  --cream: #F7F3EC;
  --white: #FFFFFF;
  --gray: #5B6B7C;
  --line: #E4DCCB;
  --placeholder: #7C8894;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Footer sits at the bottom of the screen on short pages (About, Services). */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--navy);
  background: var(--cream);
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  font-weight: 600;
  color: var(--navy);
}

a {
  color: inherit;
}

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

/* 1200px content width, 32px side padding (20px on mobile) */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Sections: 72px top and bottom (48px on mobile), cream / white alternating */
.section {
  padding: 72px 0;
}

.section--white {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Section headings: 38px / 30px, 600, navy, centered */
.section h2 {
  font-size: 38px;
  line-height: 1.25;
  text-align: center;
  margin: 0 0 22px;
}

/* Buttons: 18px / 500, white on orange, 8px corners, 13px x 26px */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  padding: 13px 26px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: opacity .15s ease;
}

/* One orange only (#E2711D): hover dims the button slightly, as in the
   designer's mockup, instead of switching to a second shade. */
.btn:hover,
.btn:focus-visible {
  opacity: .92;
}

.btn:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
.connect__icons a:focus-visible,
.link-arrow:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.btn--block {
  display: block;
  width: 100%;
}

.btn:disabled,
.btn.is-loading {
  opacity: .75;
  cursor: not-allowed;
}

.btn .spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin .6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------------------
   Header: white, thin bottom border, sticky. Logo left (58px / 44px tall),
   nav centred (18px / 500), "Schedule a Call" button right.
   ------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 92px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.logo__img {
  height: 58px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 18px;
  font-weight: 500;
}

.site-nav a {
  color: var(--gray);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--navy);
  border-bottom-color: var(--orange);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn--header {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 4px;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle .nav-toggle__open {
  display: block;
}

.nav-toggle .nav-toggle__close,
.nav-toggle.is-active .nav-toggle__open {
  display: none;
}

.nav-toggle.is-active .nav-toggle__close {
  display: block;
}

/* ---------------------------------------------------------------------------
   Home — Hero: text left, 4:3 photo right (about 440px wide)
   ------------------------------------------------------------------------ */
.hero {
  padding: 72px 0;
}

/* Photo column is wide enough for the full 440px photo on desktop
   (the photo itself is capped at 440px by .hero__photo). */
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 72px;
  align-items: center;
}

/* Eyebrow: 16px / 14px, 500, orange on a white pill */
.eyebrow {
  display: inline-block;
  background: var(--white);
  color: var(--orange);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 22px;
}

/* Hero headline: 50px / 34px, 600, line-height 1.2 */
.hero h1 {
  font-size: 50px;
  line-height: 1.2;
  margin: 0 0 20px;
}

/* Subheadline hidden from the Admin Panel: keep the gap above the button
   the same as the gap below the subheadline. */
.hero h1.hero__title--no-sub {
  margin-bottom: 30px;
}

/* Subheadline: 22px / 19px, 400, gray; ELIMINATE 700 orange */
.hero__sub {
  font-size: 22px;
  color: var(--gray);
  max-width: 34em;
  margin: 0 0 30px;
}

.hero__sub strong {
  color: var(--orange);
  font-weight: 700;
}

/* "Se habla español": 16px gray italic with the orange speech-bubble icon */
.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 16px;
  font-style: italic;
  color: var(--gray);
}

.hero__note svg {
  flex-shrink: 0;
  color: var(--orange);
}

/* Never stretched, never taller than the text beside it */
.hero__photo {
  justify-self: end;
  width: 100%;
  max-width: 440px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
}

.hero__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
}

/* ---------------------------------------------------------------------------
   Home — Why Work With Me: 20px / 18px, centred, about 800px wide
   ------------------------------------------------------------------------ */
.why__body {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 20px;
  line-height: 1.75;
  color: var(--gray);
}

.why__body p {
  margin: 0 0 20px;
}

.why__body p:last-child {
  margin-bottom: 0;
}

.why__body strong,
.why__body b {
  color: var(--navy);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Home — My Background: 300px square photo left, text right
   ------------------------------------------------------------------------ */
.background__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.background__photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
}

.background__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 25%;
}

.section .background__text h2 {
  font-size: 34px;
  text-align: left;
  margin: 0 0 12px;
}

.background__text p {
  font-size: 20px;
  color: var(--gray);
  margin: 0 0 14px;
}

.link-arrow {
  color: var(--orange);
  font-weight: 500;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Home — What I Help With: four items, 34px orange line icons, 18px / 17px
   ------------------------------------------------------------------------ */
.help__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 36px;
}

.help__item {
  text-align: center;
}

.help__item svg {
  display: block;
  margin: 0 auto 12px;
  color: var(--orange);
}

.help__item p {
  margin: 0;
  font-size: 18px;
  color: var(--gray);
}

/* ---------------------------------------------------------------------------
   Home — Let Us Talk: centred form about 520px wide, 17px fields.
   Contact / Schedule a Call land here with 100px of clear space between
   the sticky header and the heading (header height + 28px; main.js does
   the same sum for browsers that ignore scroll-margin).
   ------------------------------------------------------------------------ */
.lead {
  scroll-margin-top: 120px;
}

.lead__sub {
  text-align: center;
  font-size: 19px;
  color: var(--gray);
  margin: -6px auto 30px;
}

.lead__sub p {
  margin: 0;
}

.lead-form,
.lead .alert {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-form__row {
  display: flex;
  gap: 14px;
}

.lead-form__row .field-wrap {
  flex: 1;
  min-width: 0;
}

/* Shared by both forms */
.lead-form input,
.newsletter-form input[type="email"] {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.4;
  padding: 16px 18px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s ease;
}

.lead-form input::placeholder,
.newsletter-form input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.lead-form input:focus,
.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}

.lead-form input.is-invalid,
.newsletter-form input.is-invalid {
  border-color: #C0392B;
}

.field-error {
  display: none;
  color: #C0392B;
  font-size: 15px;
  margin-top: 4px;
}

.field-error.is-visible {
  display: block;
}

.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;
}

/* Optional "send me updates" box on the contact form (unticked by default) */
.lead-form .form-optin {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray);
  cursor: pointer;
}

.lead-form .form-optin input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 17px;
  margin-bottom: 16px;
}

.alert p {
  margin: 0;
}

.alert--success {
  background: #E8F4EA;
  color: #1E6B34;
}

.alert--error {
  background: #FBEAEA;
  color: #A22;
}

/* ---------------------------------------------------------------------------
   Form messages: a large box directly above the form, solid green for
   success and solid red for errors, 19px text (client asked for 18px+).
   Stays until the visitor presses the close button.
   ------------------------------------------------------------------------ */
.form-notice-slot {
  max-width: 520px;
  margin: 0 auto;
}

.newsletter .form-notice-slot {
  max-width: 560px;
}

.form-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 22px;
  padding: 20px 18px 20px 22px;
  border-radius: 10px;
  color: #FFFFFF;
  text-align: left;
  box-shadow: 0 6px 18px rgba(27, 42, 65, .14);
  animation: form-notice-in .25s ease-out;
}

.form-notice:focus {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.form-notice--success {
  background: #1E7B3C;
}

.form-notice--error {
  background: #B42318;
}

.form-notice__icon {
  flex: 0 0 auto;
  margin-top: 1px;
}

.form-notice__text {
  flex: 1;
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
  color: #FFFFFF;
}

.form-notice__close {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -6px -6px -6px 0;
  padding: 0;
  color: #FFFFFF;
  background: rgba(255, 255, 255, .16);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease;
}

.form-notice__close:hover {
  background: rgba(255, 255, 255, .3);
}

.form-notice__close:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

@keyframes form-notice-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .form-notice {
    animation: none;
  }
}

/* "By submitting, you agree…" line under both forms */
.form-consent {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray);
  text-align: center;
}

.form-consent a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent a:hover {
  color: var(--orange);
}

/* Cloudflare Turnstile (only when switched on). Invisible for most visitors;
   when it does need a click it shows here, above the button. */
.form-turnstile:empty {
  display: none;
}

/* ---------------------------------------------------------------------------
   Home — Let Us Connect: three 32px navy icons, orange on hover
   ------------------------------------------------------------------------ */
.section.connect {
  padding: 48px 0;
}

.section.connect h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.connect__icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 8px;
}

.connect__icons a {
  display: block;
  color: var(--navy);
  transition: color .15s ease;
}

.connect__icons a:hover {
  color: var(--orange);
}

.connect__icons svg {
  display: block;
}

/* ---------------------------------------------------------------------------
   Home — Stay In The Loop: centred, 56px padding, one field + button
   ------------------------------------------------------------------------ */
.section.newsletter {
  padding: 56px 0;
  scroll-margin-top: 92px;
}

.section.newsletter h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.newsletter__sub {
  text-align: center;
  font-size: 18px;
  color: var(--gray);
  margin: 0 0 24px;
}

.newsletter-form {
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-form__row {
  display: flex;
  gap: 12px;
}

.newsletter-form .form-turnstile {
  margin-top: 12px;
}

.newsletter-form .form-consent {
  margin-top: 14px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
}

.newsletter-form .btn {
  flex-shrink: 0;
}

.newsletter .alert {
  max-width: 560px;
  margin: 0 auto 16px;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   Footer: navy, centred. Name 20px with the 40px store icon inline to its
   left; other lines 16px; copyright 14px.
   ------------------------------------------------------------------------ */
.site-footer {
  flex-shrink: 0;
  background: var(--navy);
  color: #C9D1DB;
  text-align: center;
  padding: 48px 0;
  font-size: 16px;
  line-height: 1.9;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2px;
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.site-footer__icon {
  height: 40px;
  width: auto;
}

.site-footer__tagline {
  font-style: italic;
  color: #9AA6B2;
  margin-bottom: 12px;
}

.site-footer a {
  color: #C9D1DB;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer__copy {
  margin-top: 12px;
  font-size: 14px;
  color: #8793A1;
}

.site-footer__copy a {
  color: #8793A1;
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Inner pages (About, Services, Privacy Policy, 404)
   ------------------------------------------------------------------------ */
.page {
  padding: 72px 0 88px;
}

/* Page heading: 40px, centred */
.page__title {
  font-size: 40px;
  line-height: 1.25;
  text-align: center;
  margin: 0 0 36px;
}

.page__title--tight {
  margin-bottom: 0;
}

.page--center {
  text-align: center;
}

.page__lead {
  font-size: 20px;
  color: var(--gray);
  margin: -16px 0 28px;
}

/* About: white card about 760px wide, 48px padding, 19px left-aligned */
.card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 14px;
  padding: 48px 52px;
  font-size: 19px;
  line-height: 1.8;
  color: var(--gray);
  text-align: left;
  overflow-wrap: break-word;
}

.card p {
  margin: 0 0 22px;
}

.card > :last-child {
  margin-bottom: 0;
}

.card strong {
  color: var(--navy);
  font-weight: 600;
}

.card a {
  color: var(--orange);
}

.card--prose h2 {
  font-size: 22px;
  margin: 32px 0 10px;
}

.card--prose h2:first-of-type {
  margin-top: 8px;
}

.card--prose ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

.card--prose li {
  margin-bottom: 8px;
}

.card__updated {
  font-size: 16px;
  font-style: italic;
}

/* Services: borderless white cards, 4 x 2, 38px icons, bold 18px labels */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.svc {
  background: var(--white);
  border-radius: 14px;
  padding: 38px 20px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.svc svg {
  color: var(--orange);
}

.svc img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.svc h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

/* ---------------------------------------------------------------------------
   About / Services — closing call-to-action: white, full width, directly
   above the footer. Heading 38px / 30px, text 20px / 18px, 64px padding.
   ------------------------------------------------------------------------ */
.main--stack {
  display: flex;
  flex-direction: column;
}

/* The page content takes up any spare height, so the call-to-action and
   the footer stay together at the bottom of the screen. */
.main--stack .page {
  flex: 1 0 auto;
}

.section.cta {
  padding: 64px 0;
  border-bottom: 0;
  text-align: center;
}

.section.cta h2 {
  margin-bottom: 14px;
}

.cta__text {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 20px;
  color: var(--gray);
}

/* Small laptops / tablets in landscape: keep the header on one row */
@media (max-width: 1080px) {
  .site-nav {
    gap: 22px;
  }

  .site-header__inner {
    gap: 16px;
  }
}

/* ---------------------------------------------------------------------------
   Mobile (<= 900px)
   ------------------------------------------------------------------------ */
@media (max-width: 900px) {
  .wrap {
    padding: 0 20px;
  }

  .section {
    padding: 48px 0;
  }

  .section h2 {
    font-size: 30px;
  }

  /* Header: logo, Schedule a Call button and menu icon */
  .site-header__inner {
    height: 76px;
    gap: 12px;
  }

  /* 44px tall, scaling down only if a very narrow phone needs the room */
  .logo {
    flex: 1 1 auto;
  }

  .logo__img {
    height: auto;
    max-height: 44px;
    max-width: 100%;
  }

  .btn--header {
    font-size: 15px;
    padding: 10px 14px;
  }

  .site-header__actions {
    gap: 8px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(27, 42, 65, .08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    border-bottom-color: var(--line);
  }

  .site-nav a.is-active {
    color: var(--orange);
  }

  .lead {
    scroll-margin-top: 128px;
  }

  .section.newsletter {
    scroll-margin-top: 76px;
  }

  /* Hero: text first, photo below */
  .hero {
    padding: 40px 0;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .eyebrow {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    line-height: 1.4;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero__sub {
    font-size: 19px;
  }

  /* Same size limits as desktop (client mockup): at most 440px wide at
     4:3, centred; narrower phones scale it down to the screen width. */
  .hero__photo {
    justify-self: center;
    max-width: 440px;
  }

  .why__body {
    font-size: 18px;
  }

  /* My Background: text first, then the photo — still a 300px square,
     centred, as on desktop. */
  .background__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .background__photo {
    order: 2;
    width: 100%;
    max-width: 300px;
    justify-self: center;
  }

  .section .background__text h2 {
    font-size: 30px;
  }

  .background__text p {
    font-size: 18px;
  }

  .help__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .help__item p {
    font-size: 17px;
  }

  .lead__sub {
    font-size: 18px;
  }

  .newsletter-form__row {
    flex-direction: column;
  }

  .form-notice {
    padding: 18px 14px 18px 16px;
    gap: 12px;
  }

  .form-notice__text {
    font-size: 18px;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .page {
    padding: 48px 0 56px;
  }

  .cta__text {
    font-size: 18px;
  }

  .cta .btn {
    display: block;
    width: 100%;
  }

  .card {
    padding: 32px 26px;
    font-size: 18px;
  }

  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .svc {
    padding: 28px 12px;
  }

  .svc h2 {
    font-size: 17px;
  }
}
