/*
Theme Name: S365 International
Theme URI: https://s365.pro/
Author: S365.PRO
Description: Custom multilingual theme for S365.PRO international legal and administrative support.
Version: 1.0.4
Text Domain: s365
*/

:root {
  --ink: #0b1830;
  --ink-2: #122541;
  --paper: #f6f7f9;
  --white: #fff;
  --gold: #c9a76a;
  --gold-2: #e6cf9c;
  --muted: #647083;
  --line: rgba(11, 24, 48, .14);
  --shadow: 0 24px 70px rgba(6, 16, 31, .14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 14px; color: #9b7538; font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section { padding: 110px 0; }
.section-title { margin: 0; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4.5vw, 4rem); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; }
.section-intro { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 1.12rem; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 1000; padding: 10px 14px; background: var(--white); color: var(--ink); }
.skip:focus { top: 12px; }

.topline { background: #071326; color: #d9e0e9; font-size: .82rem; }
.topline-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topline-note { opacity: .78; }
.topline-links { display: flex; align-items: center; gap: 18px; }
.topline a { text-decoration: none; }
.header { position: absolute; inset: 36px 0 auto; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.18); color: var(--white); }
.nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { color: var(--gold-2); font-family: Georgia, serif; font-size: 1.55rem; letter-spacing: -.04em; }
.brand-copy { padding-left: 13px; border-left: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.72); font-size: .65rem; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { position: relative; color: rgba(255,255,255,.86); font-size: .92rem; font-weight: 650; text-decoration: none; }
.nav-links > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--gold-2); transition: right .25s ease; }
.nav-links > a:hover::after, .nav-links > a:focus-visible::after { right: 0; }
.nav-cta { padding: 11px 18px; border: 1px solid rgba(255,255,255,.5); border-radius: 100px; }
.lang { position: relative; }
.lang > button { min-width: 48px; border: 0; background: transparent; color: var(--white); cursor: pointer; font-weight: 750; }
.lang-menu { position: absolute; top: 32px; right: 0; display: none; min-width: 124px; padding: 8px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); }
.lang.open .lang-menu { display: grid; }
.lang-menu a { padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.lang-menu a:hover { background: #eef1f5; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: transparent; color: white; cursor: pointer; }

.hero { position: relative; min-height: 810px; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; overflow: hidden; color: var(--white); background: #0a172c; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,14,28,.98) 0%, rgba(5,14,28,.9) 40%, rgba(5,14,28,.38) 68%, rgba(5,14,28,.16) 100%), url("assets/hero.webp") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 170px; background: linear-gradient(transparent, rgba(5,14,28,.75)); pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: flex; align-items: center; padding-top: 125px; padding-bottom: 48px; }
.hero-copy { width: min(720px, 68vw); }
.hero .eyebrow { color: var(--gold-2); }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6.4vw, 6rem); font-weight: 400; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.hero h1 { font-size: clamp(2rem, 4.27vw, 4rem); }
.hero-lead { max-width: 670px; margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 0 23px; border: 1px solid transparent; border-radius: 100px; font-weight: 750; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #0b1830; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); background: rgba(255,255,255,.04); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-outline { border-color: var(--line); background: transparent; color: var(--ink); }
.hero-trust { position: relative; z-index: 3; border-top: 1px solid rgba(255,255,255,.16); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { min-height: 92px; padding: 22px 25px; border-right: 1px solid rgba(255,255,255,.16); }
.trust-item:first-child { border-left: 1px solid rgba(255,255,255,.16); }
.trust-item strong { display: block; font-size: .9rem; }
.trust-item span { color: rgba(255,255,255,.58); font-size: .78rem; }

.problem-band { padding: 40px 0; background: var(--gold); }
.problem-grid { display: grid; grid-template-columns: .8fr 2.2fr; align-items: center; gap: 56px; }
.problem-label { font-size: .75rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.problem-text { margin: 0; font-family: Georgia, serif; font-size: clamp(1.35rem, 2.6vw, 2.15rem); line-height: 1.25; }

.services { background: var(--white); }
.services-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.services-head .section-intro { margin: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 64px; background: var(--line); border: 1px solid var(--line); }
.service-card { position: relative; min-height: 315px; padding: 34px; background: var(--white); overflow: hidden; }
.service-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--gold); transform: scaleY(0); transform-origin: bottom; transition: transform .28s ease; }
.service-card:hover::before { transform: scaleY(1); }
.service-no { color: #a47732; font-size: .77rem; font-weight: 850; letter-spacing: .12em; }
.service-card h3 { margin: 55px 0 16px; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; line-height: 1.15; }
.service-card p { margin: 0; color: var(--muted); }
.service-card a { display: inline-block; margin-top: 24px; color: #77551e; font-weight: 750; text-decoration: none; }

.focus { position: relative; color: white; background: var(--ink); overflow: hidden; }
.focus::before { content: "365"; position: absolute; right: -40px; top: -110px; color: rgba(255,255,255,.035); font-family: Georgia, serif; font-size: 430px; line-height: 1; }
.focus-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: start; }
.focus .eyebrow { color: var(--gold-2); }
.focus .section-title { color: white; }
.focus-copy > p { color: rgba(255,255,255,.67); font-size: 1.1rem; }
.focus-list { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.focus-item { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.focus-item span { color: var(--gold-2); font-weight: 800; }
.focus-item strong { display: block; font-size: 1rem; }
.focus-item small { display: block; margin-top: 5px; color: rgba(255,255,255,.56); font-size: .86rem; }

.process { background: #eef1f5; }
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.process-aside { position: sticky; top: 30px; }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 76px 1fr; gap: 20px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.step-no { color: #9b7538; font-size: .8rem; font-weight: 850; letter-spacing: .1em; }
.step h3 { margin: 0 0 8px; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); }

.clarity { background: var(--white); }
.clarity-panel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.clarity-copy { padding: 58px; }
.clarity-copy h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.05; }
.clarity-copy p { color: var(--muted); }
.clarity-list { padding: 58px; color: white; background: var(--ink-2); }
.checklist { list-style: none; padding: 0; margin: 25px 0 0; }
.checklist li { position: relative; padding: 15px 0 15px 32px; border-bottom: 1px solid rgba(255,255,255,.14); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-2); font-weight: 900; }

.about { background: linear-gradient(135deg, #e7ebf0, #f7f8fa); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about-copy p { color: var(--muted); }
.quote-card { padding: 48px; border-left: 4px solid var(--gold); background: var(--white); box-shadow: var(--shadow); }
.quote-card blockquote { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; line-height: 1.35; }
.quote-card footer { margin-top: 25px; color: var(--muted); font-size: .88rem; }

.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 90px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 780; cursor: pointer; }
.faq-q span:last-child { color: #9b7538; font-size: 1.35rem; transition: transform .2s ease; }
.faq-a { max-height: 0; overflow: hidden; color: var(--muted); transition: max-height .3s ease; }
.faq-a p { margin: 0; padding: 0 45px 24px 0; }
.faq-item.open .faq-a { max-height: 260px; }
.faq-item.open .faq-q span:last-child { transform: rotate(45deg); }

.contact { color: var(--white); background: #071326; }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; }
.contact .eyebrow { color: var(--gold-2); }
.contact .section-title { color: white; }
.contact-copy > p { color: rgba(255,255,255,.62); }
.contact-details { display: grid; gap: 18px; margin-top: 38px; }
.contact-line { display: grid; gap: 3px; }
.contact-line small { color: rgba(255,255,255,.45); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-line a { color: white; font-weight: 750; text-decoration: none; }
.contact-form { padding: 40px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: rgba(255,255,255,.055); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: rgba(255,255,255,.72); font-size: .82rem; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.06); color: white; padding: 13px 14px; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(201,167,106,.14); }
.field select option { color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.form-note { margin: 16px 0 0; color: rgba(255,255,255,.44); font-size: .76rem; }
.form-note a { color: rgba(255,255,255,.68); }

.footer { padding: 42px 0 28px; color: rgba(255,255,255,.62); background: #030a14; font-size: .84rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 50px; }
.footer .brand { color: white; }
.footer p { max-width: 430px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.inner-hero { padding: 235px 0 95px; color: white; background: linear-gradient(135deg, #071326, #142d4d); }
.inner-hero h1 { max-width: 900px; }
.page-template-privacy .inner-hero h1,
.page-template-privacy-en .inner-hero h1,
.page-template-privacy-es .inner-hero h1 { font-size: clamp(2rem, 4.27vw, 4rem); }
.article { padding: 85px 0; background: white; }
.article-narrow { width: min(780px, 100%); }
.article h2 { margin: 42px 0 12px; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 400; }
.article p, .article li { color: var(--muted); }
.admin-bar .header { top: 68px; }
.notice-success { margin: 0 0 22px; padding: 14px 18px; border: 1px solid rgba(201,167,106,.55); border-radius: 10px; color: #f3dfb2; background: rgba(201,167,106,.12); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.legal-page { min-height: 100vh; background: white; }
.legal-head { padding: 24px 0; color: white; background: var(--ink); }
.legal-head .container { display: flex; justify-content: space-between; align-items: center; }
.legal-head a { text-decoration: none; }
.legal-content { width: min(780px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0; }
.legal-content h1 { color: var(--ink); font-size: clamp(2.4rem, 5vw, 4rem); }
.legal-content h2 { margin-top: 42px; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 400; }
.legal-content p, .legal-content li { color: var(--muted); }

@media (max-width: 980px) {
  .nav-links { position: fixed; inset: 0; z-index: 30; display: none; align-content: center; padding: 100px 36px; background: #071326; }
  .nav-links.open { display: grid; gap: 24px; }
  .nav-links > a { font-size: 1.35rem; }
  .menu-toggle { position: relative; z-index: 40; display: inline-grid; place-items: center; }
  .lang { margin-left: auto; }
  .hero-copy { width: min(720px, 88vw); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 55px; }
  .process-grid { grid-template-columns: 1fr; gap: 45px; }
  .process-aside { position: static; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .topline-note { display: none; }
  .topline-inner { justify-content: center; }
  .topline-links a:first-child { display: none; }
  .header { top: 36px; }
  .nav { min-height: 74px; }
  .brand-copy { display: none; }
  .hero { min-height: 780px; align-items: start; }
  .hero::before { background: linear-gradient(90deg, rgba(5,14,28,.98), rgba(5,14,28,.8)), url("assets/hero.webp") 66% center/cover no-repeat; }
  .hero-grid { padding-top: 190px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .hero h1 { font-size: clamp(1.833rem, 9.333vw, 2.8rem); }
  .page-template-privacy .inner-hero h1,
  .page-template-privacy-en .inner-hero h1,
  .page-template-privacy-es .inner-hero h1 { font-size: clamp(1.833rem, 9.333vw, 2.8rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { min-height: 106px; padding: 16px 12px; }
  .trust-item:nth-child(3) { border-left: 1px solid rgba(255,255,255,.16); border-top: 1px solid rgba(255,255,255,.16); }
  .trust-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.16); }
  .trust-item span { display: block; margin-top: 6px; font-size: .7rem; line-height: 1.35; }
  .problem-grid { grid-template-columns: 1fr; gap: 14px; }
  .section { padding: 78px 0; }
  .services-head { display: block; }
  .services-head .section-intro { margin-top: 20px; }
  .service-grid { grid-template-columns: 1fr; margin-top: 42px; }
  .service-card { min-height: auto; padding: 28px; }
  .service-card h3 { margin-top: 34px; }
  .clarity-panel { grid-template-columns: 1fr; }
  .clarity-copy, .clarity-list, .quote-card, .contact-form { padding: 30px 24px; }
  .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
