/*
Theme Name: CORPORATO International
Theme URI: https://corporatointernational.com/
Author: Website design team
Description: Corporate-information theme for CORPORATO INTERNATIONAL LLC. Creates the 10 site pages on activation; company details and placeholders are edited under Appearance > Customize > CORPORATO Settings. No external requests, no tracking, no cookies set by the theme.
Version: 1.2.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: corporato
*/

/* ---------- Fonts (self-hosted, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0F1B2D;
  --text: #1B2533;
  --body: #3A4554;
  --muted: #5B6573;
  --rule: #D9DDE3;
  --rule-soft: #E3E6EA;
  --paper: #FFFFFF;
  --mist: #F4F5F7;
  --card: #F7F8FA;
  --brass: #8A6A2B;
  --brass-light: #C9AE72;
  --link: #1F3A5F;
  --footer-text: #C5CDD8;
  --footer-muted: #A9B4C3;
  --footer-label: #8FA0B6;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 32px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: #fff; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Placeholder / pending information — remove by filling the values in the Customizer */
.ph {
  background: #FFF1C2;
  color: #5C4300;
  border: 1px dashed #B7791F;
  border-radius: 3px;
  padding: 0 4px;
}
.ph-block { display: inline-block; padding: 4px 8px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.h1-hero { font-size: clamp(38px, 5.2vw, 64px); max-width: 22ch; }
.h1-page { font-size: clamp(36px, 4.6vw, 56px); max-width: 20ch; }
.h1-legal { font-size: clamp(34px, 4vw, 48px); max-width: 28ch; line-height: 1.1; }
.h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; }
.h2-sm { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
.lead { font-size: 19px; line-height: 1.6; color: var(--body); max-width: 62ch; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--ink);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1F3A5F; border-color: #1F3A5F; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 40px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand svg, .brand img { display: block; height: 46px; width: auto; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.main-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--brass);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-mist { background: var(--mist); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }

/* Hero */
.hero { border-bottom: 1px solid var(--rule); }
.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
  padding-top: 96px;
  padding-bottom: 88px;
}
.hero-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-main .btn-row { padding-top: 8px; }

/* Company record card */
.record {
  flex: 1 1 380px;
  min-width: 0;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  background: var(--card);
  padding: 28px;
}
.record .eyebrow { margin-bottom: 8px; }
.record dl { margin: 0; }
.record dl > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.record dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.record dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.record dd { margin: 0; font-size: 16px; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.tabular { font-variant-numeric: tabular-nums; }

/* Numbered cards */
.cards { display: flex; flex-wrap: wrap; gap: 40px; list-style: none; margin: 0; padding: 0; }
.card {
  flex: 1 1 300px;
  min-width: 0;
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cards-4 .card { flex-basis: 220px; padding-top: 20px; gap: 8px; }
.card-num { font-family: var(--serif); font-size: 16px; color: var(--brass); }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.25; }
.cards-4 .card h3 { font-size: 22px; }
.card p { font-size: 16px; line-height: 1.65; color: var(--body); }
.cards-more { margin-top: 40px; }

/* Split layouts */
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.split > * { min-width: 0; }
.split-a { flex: 1 1 380px; }
.split-b { flex: 1 1 420px; }
.split-narrow { flex: 1 1 320px; }
.split-wide { flex: 999 1 560px; }
.split-top { align-items: flex-start; }
.point h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; }
.point p { font-size: 16px; line-height: 1.65; color: var(--body); }

/* Page hero (inner pages) */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--rule); }
.page-hero .wrap { padding-top: 88px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.page-hero.is-legal .wrap { padding-top: 64px; padding-bottom: 48px; gap: 14px; }
.meta { font-size: 15px; color: var(--muted); }
.draft-notice { align-self: flex-start; padding: 6px 10px; font-size: 14px; margin-top: 4px; }

/* Details list (About) */
.details { margin: 0; border-top: 2px solid var(--ink); }
.details > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.details dt {
  flex: 1 1 220px;
  max-width: 280px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.details dd { flex: 999 1 320px; margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.details .note { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }

/* Callout box */
.callout {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  background: var(--card);
  border: 1px solid var(--rule);
}
.callout > div { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.callout h3 { font-size: 17px; font-weight: 600; }
.callout p { font-size: 16px; color: var(--body); }

/* Dark notice */
.notice {
  flex: 1 1 380px;
  align-self: flex-start;
  background: var(--ink);
  color: #E6EBF1;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.notice .eyebrow { color: var(--brass-light); font-size: 12px; }
.notice p.big { font-family: var(--serif); font-size: 24px; line-height: 1.35; color: #fff; }

/* CTA band */
.cta-band { background: var(--mist); border-top: 1px solid var(--rule); }
.cta-band .wrap {
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  justify-content: space-between;
}
.cta-band .wrap > div { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; }
.cta-band p { font-size: 17px; color: var(--body); }

/* Contact info column */
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info > div { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--rule); padding-top: 20px; }
.contact-info > div:first-child { border-top: 2px solid var(--ink); }
.contact-info h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-info p, .contact-info address { font-size: 17px; line-height: 1.6; color: var(--ink); font-style: normal; }
.contact-info .small { font-size: 15px; color: var(--muted); }

/* ---------- Contact form ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  padding: 32px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field-row .field { flex: 1 1 220px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #7A8494;
  border-radius: 2px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}
.field textarea { min-height: 160px; line-height: 1.5; resize: vertical; }
.form-note { font-size: 14px; line-height: 1.6; color: var(--body); }
.form-required { font-size: 14px; color: var(--muted); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 18px; border: 1px solid; font-size: 15px; line-height: 1.55; }
.form-status h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin-bottom: 6px; }
.form-status.is-success { background: #EEF6F0; border-color: #6E9C7B; color: #1D3B27; }
.form-status.is-success h3 { color: #1D3B27; }
.form-status.is-error { background: #FBEFEE; border-color: #C0726A; color: #5C1E18; }

/* ---------- Legal pages ---------- */
.legal-layout .wrap {
  padding-top: 56px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  align-items: flex-start;
}
.legal-nav { flex: 1 1 240px; max-width: 300px; min-width: 0; border-top: 3px solid var(--ink); padding-top: 16px; }
.legal-nav .label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.legal-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}
.legal-nav a:hover { background: var(--mist); color: var(--ink); }
.legal-nav a[aria-current="page"] { background: #F0F2F5; color: var(--ink); font-weight: 600; }

.prose { flex: 999 1 560px; min-width: 0; max-width: 760px; font-size: 17px; line-height: 1.7; color: #2A3443; }
.prose h2 { margin: 40px 0 10px; font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.3; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 600; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 24px; }
.prose li { margin: 0 0 4px; }
.prose address { font-style: normal; margin: 0 0 14px; }
.prose .caps { font-size: 15px; line-height: 1.75; }
.prose mark.ph { background: #FFF1C2; color: #5C4300; }
.prose p.ph-block { display: block; padding: 12px 14px; font-size: 15px; }
.prose address .ph-block { margin: 2px 0; }

/* Generic page */
.generic .wrap { padding-top: 56px; padding-bottom: 96px; }

/* 404 */
.error-404 .wrap { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--footer-text); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.footer-brand { flex: 2 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand svg { height: 44px; }
.footer-brand p { font-size: 15px; line-height: 1.6; max-width: 34ch; }
.footer-col { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col.wide { flex-basis: 250px; }
.footer-col.contact { flex-basis: 240px; }
.footer-label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--footer-label); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: #E6EBF1; text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col p, .footer-col address { font-size: 15px; line-height: 1.6; font-style: normal; overflow-wrap: anywhere; }
.footer-col .email a { color: #fff; font-weight: 600; min-height: 0; }
.footer-bottom {
  border-top: 1px solid #2A3A52;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  font-size: 14px;
  color: var(--footer-muted);
}

/* Footer, desktop: email and each address line stay on one line */
@media (min-width: 960px) {
  .footer-cols { flex-wrap: nowrap; gap: 40px 48px; }
  .footer-brand { flex: 1 1 240px; }
  .footer-col.contact { flex: 0 0 auto; }
  .footer-col.contact p, .footer-col.contact address { white-space: nowrap; overflow-wrap: normal; }
}
@media (max-width: 959px) {
  .footer-col.contact { flex-basis: 300px; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .brand svg, .brand img { height: 38px; }
  .main-nav ul { gap: 0 20px; }
  .section { padding: 64px 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .page-hero .wrap { padding-top: 56px; padding-bottom: 48px; }
  .record, .form-card { padding: 22px; }
  .notice { padding: 26px; }
  .callout { padding: 22px; }
  .lead { font-size: 17px; }
  .legal-nav { max-width: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .main-nav a, .legal-nav a { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
}

@media print {
  .site-header .main-nav, .legal-nav, .site-footer, .contact-form, .skip-link { display: none !important; }
  .ph { border: 0; background: none; }
}
