/*
Theme Name: TropicHR
Theme URI: https://tropichr.com/
Author: TropicHR
Description: The TropicHR product marketing site. Provisions its own pages, navigation, SEO metadata, structured data and inquiry form on activation. Payroll and HR software for Caribbean businesses.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tropichr
*/

:root {
  --ink: #153332;
  --muted: #61706d;
  --paper: #f7f5ef;
  --white: #fffefa;
  --teal: #0d6b66;
  --teal-dark: #084a48;
  --coral: #ef7865;
  --sun: #f2c86b;
  --line: #d9dfd8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247,245,239,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-wrap, .container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.04em; font-size: 1.18rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 50% 50% 50% 8px; display: grid; place-items: center; color: var(--white); background: var(--teal); transform: rotate(-15deg); }
.brand-mark span { transform: rotate(15deg); font-family: var(--serif); font-size: 1.1rem; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: .88rem; color: #405653; }
.main-nav ul { display: flex; align-items: center; gap: 24px; padding: 0; margin: 0; list-style: none; }
.main-nav li { padding: 0; margin: 0; list-style: none; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--teal); }
.menu-toggle { display: none; border: 0; padding: 8px; color: var(--ink); background: transparent; cursor: pointer; }
.menu-icon { display: grid; gap: 4px; width: 24px; }
.menu-icon i { display: block; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 19px; background: var(--teal); color: var(--white); text-decoration: none; font-weight: 700; border: 1px solid var(--teal); cursor: pointer; }
.nav-cta:hover, .button:hover { background: var(--teal-dark); }
.button-light { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-light:hover { background: var(--ink); color: var(--white); }
.hero { overflow: hidden; position: relative; padding: 92px 0 108px; background: var(--teal); color: var(--white); }
.hero:after { content: ''; position: absolute; width: 420px; height: 420px; right: -130px; top: -170px; border: 1px solid rgba(242,200,107,.5); border-radius: 50%; box-shadow: 0 0 0 28px rgba(242,200,107,.08), 0 0 0 58px rgba(242,200,107,.06); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.06fr .94fr; gap: 72px; align-items: center; }
.eyebrow { margin: 0 0 15px; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 800; color: var(--coral); }
.hero h1, .page-intro h1 { max-width: 720px; margin: 0; font: 500 clamp(3.3rem, 7vw, 6.5rem)/.94 var(--serif); letter-spacing: -.065em; }
.hero h1 em { color: var(--sun); font-style: normal; }
.hero-copy { max-width: 570px; margin: 26px 0 31px; color: #d7ece8; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button-light { color: var(--white); border-color: rgba(255,255,255,.55); }
.hero .button-light:hover { background: var(--white); color: var(--teal-dark); }
.hero-panel { padding: 28px; color: var(--ink); background: var(--white); border-radius: 4px; box-shadow: 18px 18px 0 var(--coral); }
.hero-panel-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.hero-panel h2 { margin: 0; font: 500 1.65rem var(--serif); }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-size: .73rem; font-weight: 700; }
.status:before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #53aa72; }
.pay-row { display: flex; justify-content: space-between; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.pay-row span { color: var(--muted); }
.pay-total { display: flex; justify-content: space-between; padding-top: 20px; font-weight: 800; }
.section { padding: 102px 0; }
.section-tight { padding: 68px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section h2, .page-intro h2 { max-width: 650px; margin: 0; font: 500 clamp(2.2rem, 4vw, 4.3rem)/1 var(--serif); letter-spacing: -.05em; }
.section-intro { max-width: 490px; color: var(--muted); }
.paper { background: var(--paper); }
.white { background: var(--white); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { min-height: 260px; padding: 28px; background: var(--white); }
.feature-number { color: var(--coral); font-family: var(--serif); font-size: 1.5rem; }
.feature h3, .audience h3, .pricing-card h3 { margin: 24px 0 10px; font-size: 1.2rem; }
.feature p, .audience p, .pricing-card li { color: var(--muted); font-size: .94rem; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.audience { padding: 22px; background: #e8eee8; border-left: 4px solid var(--teal); }
.audience h3 { margin: 0 0 6px; }
.band { background: var(--coral); color: var(--ink); }
.band .section-head { margin-bottom: 0; }
.band h2 { max-width: 760px; }
.band .button { background: var(--ink); border-color: var(--ink); color: var(--white); }
.page-intro { padding: 86px 0 78px; background: var(--teal); color: var(--white); }
.page-intro h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
.page-intro p { max-width: 590px; color: #d7ece8; font-size: 1.1rem; margin: 24px 0 0; }
.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: 78px; align-items: start; }
.prose { max-width: 750px; }
.prose h2 { font-size: 2.25rem; margin-top: 0; }
.prose h3 { margin-top: 34px; }
.prose p, .prose li { color: var(--muted); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.pricing-card { padding: 30px; background: var(--white); border: 1px solid var(--line); }
.pricing-card.featured { border: 2px solid var(--teal); transform: translateY(-15px); }
.pricing-card .tag { color: var(--coral); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 800; }
.price { margin: 22px 0 3px; font: 500 2.8rem var(--serif); letter-spacing: -.05em; }
.price small { font: .85rem var(--sans); color: var(--muted); letter-spacing: 0; }
.pricing-card ul { min-height: 205px; padding-left: 18px; }
.pricing-card li { margin: 10px 0; }
.pricing-note { margin-top: 28px; color: var(--muted); font-size: .83rem; }
.country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.country { padding: 26px; border-top: 3px solid var(--sun); background: var(--white); }
.country h3 { margin: 0 0 5px; font: 500 1.65rem var(--serif); }
.country p { margin: 0; color: var(--muted); }
.form-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.form-card { padding: 34px; background: var(--white); border: 1px solid var(--line); }
.field { margin-bottom: 17px; }
.field label { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; font: inherit; }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.notice { padding: 14px 17px; margin-bottom: 20px; background: #e8eee8; border-left: 3px solid var(--teal); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; min-height: 280px; padding: 26px; background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.post-card .meta { color: var(--coral); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.post-card h2 { margin: auto 0 10px; font: 500 1.7rem/1.08 var(--serif); }
.post-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.single-post { max-width: 800px; margin: 0 auto; }
.single-post h1 { margin: 12px 0 26px; font: 500 clamp(2.8rem, 6vw, 5.5rem)/.98 var(--serif); letter-spacing: -.06em; }
.site-footer { padding: 58px 0 28px; background: var(--teal-dark); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; padding-bottom: 54px; }
.site-footer p, .site-footer a { color: #b9d3ce; font-size: .88rem; }
.site-footer a { text-decoration: none; }
.footer-title { margin: 0 0 14px; color: var(--sun); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-bottom { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); color: #b9d3ce; font-size: .78rem; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 0 0 4px 0; }
.skip-link:focus { left: 0; }
.faq { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.faq-item { padding: 24px 26px; background: var(--white); }
.faq-item h3 { margin: 0 0 8px; font-size: 1.1rem; }
.faq-item p { margin: 0; color: var(--muted); font-size: .94rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 8px 0 8px 26px; color: var(--muted); border-bottom: 1px solid var(--line); }
.checklist li:before { content: ''; position: absolute; left: 0; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; padding: 8px 13px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-size: .85rem; }
.pagination .current { background: var(--teal); color: var(--white); border-color: var(--teal); }

@media (max-width: 820px) {
  .nav-wrap { min-height: 68px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 68px; left: 0; right: 0; display: none; padding: 18px 20px 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 22px rgba(21,51,50,.08); }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: block; }
  .main-nav li { margin: 0; }
  .main-nav a { display: block; padding: 10px 0; }
  .main-nav .nav-cta { display: inline-flex; margin-top: 10px; padding: 10px 15px; }
  .menu-toggle.is-open .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.is-open .menu-icon i:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { padding: 70px 0 82px; }
  .hero-grid, .two-col, .form-wrap { grid-template-columns: 1fr; gap: 42px; }
  .hero-panel { max-width: 520px; box-shadow: 10px 10px 0 var(--coral); }
  .section { padding: 74px 0; }
  .section-head { display: block; }
  .section-intro { margin-top: 18px; }
  .feature-grid, .audience-grid, .pricing-grid, .country-grid, .post-grid, .faq { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card ul { min-height: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .nav-wrap, .container { width: min(100% - 28px, 1160px); }
  .brand { font-size: 1rem; }
  .hero h1, .page-intro h1 { font-size: 3.5rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}