/* YPC Virtual Team - shared stylesheet for static rebuild */

:root {
  --color-primary: #0090d1;
  --color-primary-dark: #004d96;
  --color-accent: #7cda24;
  --color-text: #666;
  --color-heading: #182135;
  --color-bg: #fff;
  --color-bg-alt: #f7f9fa;
  --color-border: #e2e6e9;
  --max-width: 1140px;
  --font-body: Verdana, Geneva, sans-serif;
  --font-heading: "Montserrat", Helvetica, Arial, Lucida, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7em;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 500;
  /* Standardized navy, sampled from the header logo's background - the
     same color used site-wide for testimonial names, card titles, etc.
     (--color-heading is left as-is since it's also used for the
     footer's background, not just heading text). */
  color: #1a4383;
  line-height: 1.4em;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.4em; }
h2 { font-size: 1.9em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.2em; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

ul, ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.site-header .logo img {
  max-width: 260px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  color: rgba(0, 0, 0, 0.7);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
}

.main-nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  color: #0c71c3;
}

.main-nav .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  min-width: 260px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 20;
  padding: 6px 0;
}

.main-nav li:hover > .sub-menu {
  display: block;
}

.main-nav .sub-menu li a {
  white-space: nowrap;
}

/* ---------- Hero ----------
   Standardized site-wide rule: any hero/image-text section must use real
   HTML text (never text baked into the image) over a plain dark scrim
   overlay (rgba(0,0,0,0.5) - 50% opacity, within the required 40-60%
   range) between the background photo and the text. Previously some
   pages (Pricing Info) used a blue-gradient + background-blend-mode
   trick instead, and others (Home, Outsourcing Solutions, Data
   Labelling) had no overlay mechanism at all in effect - both are
   replaced by this single .hero--scrim mechanism, applied to every
   hero section on the site. */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 90px 20px;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero--scrim::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

/* Home hero: live site's overlay is a navy-blue gradient (confirmed via
   computed styles: linear-gradient(rgba(0,18,68,.31) 0%, rgba(0,18,68,.82) 100%)),
   not the flat black tint used elsewhere. Applied alongside .hero--scrim
   (for the shared positioning rules) to override just the background on
   this specific page. */
.hero--scrim-navy::before {
  background: linear-gradient(rgba(0, 18, 68, 0.31) 0%, rgba(0, 18, 68, 0.82) 100%);
}

/* Home hero: font sizes unchanged from the earlier bump. Spacing below is
   rebuilt to match the live site's actual structure (confirmed via
   computed styles): every body-text line uses a tight line-height ratio
   of ~1.133 (23.8px/21px live), and the "Business Process Outsourcing
   (BPO) Philippines" line plus the service list below it stack with a 1em
   trailing gap and no extra margin (matching the live page's measured
   rects, which show consecutive list lines touching with zero gap beyond
   that trailing space). The eyebrow/intro/H1/"Outsourced Staffing
   Solutions..." lines above the list carry more visual breathing room on
   the live page (a gap not attributable to the paragraph's own box -
   likely Divi module-level spacing not reachable from a plain element
   read), approximated here with a larger margin. Scoped to this page only
   via .hero--bump-text. */
.hero--bump-text h1 {
  font-size: 2.8em;
  line-height: 1em;
  margin-bottom: 0.4em;
}

.hero--bump-text p,
.hero--bump-text .eyebrow {
  font-size: 1.25em;
  line-height: 1.133em;
  margin-bottom: 1.5em;
}

.hero--bump-text .list-intro,
.hero--bump-text li {
  font-size: 1.25em;
  line-height: 1.133em;
  margin-bottom: 1em;
}

.hero--bump-text li:last-child {
  margin-bottom: 0;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--color-accent);
}

.hero h1,
.hero h2,
.hero h3,
.hero h4 {
  color: #fff;
}

/* Virtual Reception hero only - headings recolored to the site's
   standardized navy instead of white. */
.hero--navy-headings h1,
.hero--navy-headings h4 {
  color: #1a4383;
}

/* Virtual Reception hero only - contact form positioned as a large
   overlay in the right portion of the hero photo (starting ~60-65%
   across, spanning from near the top down past the middle) instead of
   spanning the full width or sitting in a separate section below. Text
   above flows full-width as normal; this is purely an absolutely-
   positioned overlay on top of it, with noticeably larger fields/button
   than the site's default form sizing. */
.hero-form-overlay {
  position: absolute;
  top: 70px;
  left: 64%;
  width: 380px;
  z-index: 2;
}

.hero-form-overlay .contact-form {
  max-width: none;
  margin: 0;
}

@media (max-width: 860px) {
  .hero-form-overlay {
    position: static;
    width: auto;
    margin-top: 30px;
  }
}

.hero p {
  max-width: 640px;
}

/* Outsourcing Solutions hero only - slightly larger text throughout, and
   bold on "Outsourcing Philippines" / "How We Can Help You" specifically
   (the other two paragraphs get the size bump but stay regular weight). */
.hero--outsourcing-text h1 {
  font-size: 2.7em;
  font-weight: 700;
}

.hero--outsourcing-text p {
  font-size: 1.15em;
  text-align: justify;
}

.hero--outsourcing-text .subtitle-bold {
  font-weight: 700;
}

/* Two-column hero (text + form side by side), matching Divi's
   3/5 + 2/5 flex-column split (~60/40) with a 5.5% gap. */
.hero-columns {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px 5.5%;
  align-items: start;
}

.hero-columns .hero-text p {
  max-width: none;
}

.hero-text p {
  font-size: 21px;
}

/* Confirmed via computed styles: this is NOT a small uppercase eyebrow
   label on the live site - it's a large 45px headline-style paragraph.
   (Extra specificity needed to beat ".hero-text p" above.) */
.hero-text p.hero-headline {
  font-size: 45px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  margin: 0 0 0.6em;
}

/* Confirmed via computed styles: 30px grey centered text, not a small
   uppercase eyebrow label. */
.lead-text {
  font-size: 30px;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
}

.hero-form-col {
  background: #d0e1fc;
  padding: 18px 25.6px;
  color: var(--color-text);
}

.hero-form-col .contact-form {
  max-width: none;
  margin: 0;
}

/* Extra specificity needed to beat ".hero h1 { color: #fff }". */
.hero-form-col .contact-form-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px;
}

@media (max-width: 860px) {
  .hero-columns {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sections ---------- */
section {
  padding: 60px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* Shared accent-background sections, confirmed via computed styles to be
   the same two colors reused across multiple pages (Divi global colors):
   teal for the mid-page CTA blocks, blue for the bottom contact-form
   sections. */
.section-teal {
  background: #7ebec5;
  color: #fff;
  text-align: center;
}

.section-teal h1,
.section-teal h2,
.section-teal h3,
.section-teal h4 {
  color: #fff;
}

.section-form-blue {
  background: #a8cdff;
  color: #fff;
}

.section-form-blue h1,
.section-form-blue h2,
.section-form-blue h3,
.section-form-blue h4 {
  color: #fff;
}

.banner-slim {
  padding: 8px 20px;
  text-align: center;
  margin: 0 0 30px;
}

.banner-slim h1,
.banner-slim h2,
.banner-slim h3,
.banner-slim h4 {
  font-size: 1em;
  margin: 0;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

/* ---------- About Us page-level treatment ----------
   Confirmed via computed styles: the whole page content area has a
   solid yellow background, and the content is a persistent two-column
   layout (all text stacked in the left column, image + form together
   in the right column, both running the full content height) - not
   just a narrow two-column treatment around one heading. */
.page-yellow {
  background: #ffd45e;
}

.page-columns {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: start;
}

.page-columns img {
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .page-columns {
    grid-template-columns: 1fr;
  }
}

/* ---------- Two-column split (text + image side by side) ---------- */
.split {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5em;
}

.split > div {
  flex: 1 1 320px;
  min-width: 0;
}

/* ---------- Grid / Cards ---------- */
.grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Outsourcing Solutions 4-card section only - stack the cards vertically
   (single column) instead of side by side. Card/box borders unchanged. */
.grid--stacked {
  grid-template-columns: 1fr;
}

/* Virtual Assistants icon-card section only - 3 columns x 2 rows,
   column-major fill (matching the live site's actual order: row 1 =
   Find/Employ/Benefits, row 2 = Hire/Work with/Work with), not a 4-across
   row with a wrapped 5th card. */
.grid--va-icons {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
}

@media (max-width: 700px) {
  .grid--va-icons {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 30px;
  text-align: center;
}

.card img {
  margin: 0 auto 16px;
  width: 72px;
  height: 72px;
}

/* Generic "widen this container" utility - only ~0.5-1in margin on each
   side instead of the standard 1140px max-width. Reused across multiple
   pages' card-grid sections (Home's 3-card section, Outsourcing
   Solutions' 4-card section) where the section should span most of the
   page width; safe to reuse elsewhere for the same effect. */
.container--wide {
  max-width: none;
  padding: 0 64px;
}

@media (max-width: 600px) {
  .container--wide {
    padding: 0 20px;
  }
}

/* Work for Us: live site wraps the whole job-listing content in a thin
   bordered box, currently missing from the build. Scoped so other pages
   using the plain .container aren't affected. */
.container--bordered {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

@media (max-width: 600px) {
  .container--bordered {
    padding: 24px;
  }
}

/* Terms & Conditions: all headings (main title + numbered clause titles)
   recolored to the site's standardized navy; body/clause paragraph text
   left at its current color. Scoped so other pages are unaffected. */
.container--navy-headings h1,
.container--navy-headings h2 {
  color: #1a4383;
}

.card--home img {
  width: 52px;
  height: 52px;
}

.card--home h3 {
  min-height: 2.8em;
  color: #1a4383;
}

.card--home p {
  text-align: justify;
}

/* Outsourcing Solutions "Our Services / Professionally Managed / Virtual
   Staff / Our People Your Team" 4-card section only - icon sits inline to
   the left of the heading instead of centered above it, all text
   (heading + paragraphs) left-aligned, a bit more breathing room between
   paragraphs. Card/box borders and .container--wide section-wide margins
   are unchanged - font-family and colors are untouched throughout. */
.card--outsourcing {
  text-align: left;
}

.card--outsourcing-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.card--outsourcing-header img {
  flex-shrink: 0;
  margin: 0;
}

.card--outsourcing-header h4 {
  margin: 0;
}

.card--outsourcing p {
  text-align: justify;
  line-height: 1.8em;
  margin-bottom: 1.4em;
}

/* "Our Services" box only - tighter paragraph spacing than the other 3
   boxes in this section, which keep the spacing above unchanged. */
.card--outsourcing-services p {
  line-height: 1.5em;
  margin-bottom: 0.8em;
}

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.testimonial cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-weight: 700;
  color: var(--color-heading);
}

/* Home testimonial only - bordered card, italic/bold smaller quote text,
   left-aligned, name/title colored to match the navy sampled from the
   header logo image (#1a4383). Scoped so Data Labelling's testimonial
   (which reuses the shared .testimonial class) is unaffected. */
/* AI Data Labelling hero: contained navy content box (rgba(0,77,150,0.96),
   sampled from the live site) wrapping the heading stack and the "$4.00
   per hour" rate banner only - the box ends there and does NOT extend
   down over the testimonial, which sits in its own separate section
   below with the standard .testimonial--card treatment. */
.hero-content-box {
  background: rgba(0, 77, 150, 0.96);
  padding: 54px 64px;
}

.hero-rate-banner {
  background: rgba(12, 113, 195, 0.7);
  padding: 9px 12.8px 0;
  margin: 0;
}

.hero-rate-banner h4 {
  color: #fff;
  margin: 0;
  padding-bottom: 10px;
}

/* Reusable bordered testimonial-card treatment - used on Home (Starla Ahu)
   and AI Data Labelling (George Samuel). */
.testimonial--card {
  text-align: justify;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.testimonial--card p {
  font-style: italic;
  font-weight: 700;
  font-size: 0.875em;
}

.testimonial--card cite {
  color: #1a4383;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 6.3px 21px;
  border-radius: 6px;
  background: var(--color-accent);
  color: #fff;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 1px;
  border: 3px solid #fff;
  cursor: pointer;
}

.btn:hover {
  background: var(--color-primary);
  text-decoration: none;
}

/* ---------- Forms ---------- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

/* Bordered card wrapper for forms sitting bare in a plain section (no
   colored section background of their own to frame them), so the form
   reads as a distinct element rather than blending into the surrounding
   text. */
.form-card {
  max-width: 640px;
  margin: 0 auto 30px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.form-card .contact-form {
  max-width: none;
  margin: 0;
}

.contact-form label {
  /* Live site's Divi contact form hides labels visually and relies on
     placeholder text inside the field instead (confirmed via computed
     styles - live label rect is 0x0). Kept in the DOM for accessibility. */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form .field {
  margin-bottom: 18px;
  position: relative;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 3px;
  background: #eee;
  font-family: inherit;
  font-size: 14px;
  color: #333;
}

.contact-form ::placeholder {
  color: #999;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Virtual Reception hero form overlay - sizing overrides declared after
   the base .contact-form rules above so they actually win the cascade
   (same selector specificity, later source order wins). */
.hero-form-overlay .field {
  margin-bottom: 20px;
}

.hero-form-overlay input[type="text"],
.hero-form-overlay input[type="email"],
.hero-form-overlay input[type="tel"],
.hero-form-overlay textarea {
  padding: 12px 18px;
  font-size: 18px;
}

.hero-form-overlay textarea {
  min-height: 150px;
}

.hero-form-overlay .btn {
  padding: 10px 40px;
  font-size: 24px;
}

/* ---------- Placeholder for missing/broken images ---------- */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #d9d9d9;
  color: #555;
  border: 1px dashed #999;
  min-height: 220px;
  padding: 20px;
  font-size: 0.9em;
  line-height: 1.4em;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 30px 20px;
  text-align: center;
  background: var(--color-heading);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}

/* Navy sampled from the header logo image (#1a4383) - same treatment used
   on the Home testimonial name/title and the 3-card section titles. */
.text-navy {
  color: #1a4383;
}

.text-link-blue {
  color: var(--color-primary);
}

/* Matches the global h3 font-size (1.5em) for a non-heading element that
   needs to visually align with an h3 elsewhere on the same page. */
.match-h3-size {
  font-size: 1.5em;
}

.list-plain {
  list-style: none;
  padding-left: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
}

table th,
table td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
}

@media (max-width: 767px) {
  .main-nav ul {
    flex-direction: column;
  }
  .main-nav .sub-menu {
    position: static;
    box-shadow: none;
    display: none;
  }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
