/*
Theme Name: T9 Software Solutions
Theme URI: https://example.com/t9-software-solutions
Author: T9 Security GmbH
Description: A responsive one-page corporate software selection and distribution theme for T9 Security GmbH.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: t9-software
*/

:root {
  --t9-paper: #e8e8e8;
  --t9-stone: #b5adab;
  --t9-coral: #f29875;
  --t9-wine: #7b3529;
  --t9-ink: #251f1e;
  --t9-white: #fffdfc;
  --t9-line: rgba(123, 53, 41, .18);
  --t9-radius: 22px;
  --t9-shadow: 0 22px 60px rgba(65, 39, 34, .12);
  --t9-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  color: var(--t9-ink);
  background: var(--t9-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.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; }
.t9-shell { width: min(var(--t9-max), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(232, 232, 232, .92);
  border-bottom: 1px solid rgba(123, 53, 41, .12);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em; }
.brand-logo { display: block; width: 48px; height: 42px; flex: 0 0 48px; object-fit: contain; }
.brand-logo-full { width: 230px; height: auto; flex: 0 1 230px; }
.brand-name { font-size: 1.06rem; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { font-size: .9rem; font-weight: 700; }
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; background: var(--t9-coral); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.nav-cta, .button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; line-height: 1; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.nav-cta { min-height: 42px; color: var(--t9-white) !important; background: var(--t9-wine); padding-inline: 19px; }
.button:hover, .button:focus-visible, .nav-cta:hover, .nav-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(123, 53, 41, .24); }
.button-primary { color: var(--t9-white); background: var(--t9-wine); }
.button-light { color: var(--t9-wine); background: var(--t9-white); }
.button-outline { color: var(--t9-wine); border-color: rgba(123,53,41,.35); background: transparent; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 12px; color: var(--t9-white); background: var(--t9-wine); cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.hero { position: relative; min-height: 720px; display: flex; align-items: center; overflow: hidden; padding: 110px 0; color: var(--t9-white); background: var(--t9-wine); }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(47,32,29,.92) 0%, rgba(74,40,34,.78) 37%, rgba(47,32,29,.34) 68%, rgba(47,32,29,.18) 100%); }
.hero-backdrop { position: absolute; inset: 0; }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-grid { position: relative; z-index: 2; width: min(var(--t9-max), calc(100% - 40px)); margin-inline: auto; }
.hero-copy { max-width: 780px; }
.hero .eyebrow { color: var(--t9-coral); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--t9-wine); font-size: .78rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--t9-coral); border-radius: 5px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 24px; font-size: clamp(3rem, 5.2vw, 5.1rem); line-height: .98; letter-spacing: -.055em; }
h1 em { color: var(--t9-wine); font-style: normal; }
.hero-copy > p { max-width: 650px; margin-bottom: 32px; color: rgba(255,255,255,.84); font-size: 1.14rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button-primary { color: var(--t9-wine); background: var(--t9-coral); }
.hero .button-outline { color: var(--t9-white); border-color: rgba(255,255,255,.62); background: rgba(255,255,255,.08); }

.trust-strip { padding: 0 0 90px; }
.trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--t9-line); border-bottom: 1px solid var(--t9-line); }
.trust-item { padding: 24px 28px; }
.trust-item + .trust-item { border-left: 1px solid var(--t9-line); }
.trust-item strong { display: block; color: var(--t9-wine); font-size: 1.05rem; }
.trust-item span { color: #675e5b; font-size: .88rem; }

.section { padding: 100px 0; }
.section-wine { color: var(--t9-white); background: var(--t9-wine); }
.section-coral { background: var(--t9-coral); }
.section-stone { background: var(--t9-stone); }
.section-head { max-width: 760px; margin-bottom: 50px; }
.section-head.split { max-width: none; display: grid; grid-template-columns: .78fr 1.22fr; align-items: end; gap: 70px; }
.section-head h2, .about-copy h2, .contact-copy h2 { margin-bottom: 18px; font-size: clamp(2.25rem, 4.5vw, 4.2rem); line-height: 1.04; letter-spacing: -.055em; }
.section-head p, .about-copy > p, .contact-copy > p { margin-bottom: 0; color: #5d5451; font-size: 1.04rem; }
.section-wine .section-head p { color: rgba(255,255,255,.72); }
.section-wine .eyebrow { color: var(--t9-coral); }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 295px; padding: 34px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: var(--t9-radius); background: rgba(255,255,255,.06); }
.service-icon { display: grid; width: 50px; height: 50px; margin-bottom: 48px; place-items: center; color: var(--t9-wine); background: var(--t9-coral); border-radius: 15px; }
.service-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.service-card h3 { margin-bottom: 10px; font-size: 1.35rem; }
.service-card p { position: relative; z-index: 1; max-width: 510px; margin-bottom: 0; color: rgba(255,255,255,.72); }

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.benefit-card { min-height: 230px; padding: 30px; border: 1px solid rgba(123,53,41,.17); border-radius: 18px; background: rgba(255,255,255,.28); }
.benefit-card h3 { margin-bottom: 9px; font-size: 1.2rem; }
.benefit-card p { margin-bottom: 0; color: #514744; font-size: .94rem; }

.process-layout { display: grid; grid-template-columns: .83fr 1.17fr; align-items: start; gap: 80px; }
.process-intro { position: sticky; top: 120px; }
.process-intro h2 { margin-bottom: 20px; font-size: clamp(2.35rem, 4.5vw, 4.2rem); line-height: 1.03; letter-spacing: -.055em; }
.process-intro p { color: #5d5451; }
.process-list { counter-reset: step; }
.process-step { counter-increment: step; display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--t9-line); }
.process-step:last-child { border-bottom: 1px solid var(--t9-line); }
.process-step::before { content: "0" counter(step); display: grid; width: 54px; height: 54px; place-items: center; color: var(--t9-white); background: var(--t9-wine); border-radius: 50%; font-weight: 900; }
.process-step h3 { margin: 4px 0 7px; font-size: 1.25rem; }
.process-step p { margin: 0; color: #5d5451; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card { display: flex; min-height: 390px; flex-direction: column; padding: 30px; color: var(--t9-white); background: var(--t9-wine); border-radius: var(--t9-radius); }
.case-tag { align-self: flex-start; margin-bottom: 54px; padding: 7px 11px; color: var(--t9-wine); background: var(--t9-coral); border-radius: 999px; font-size: .71rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.case-card h3 { margin-bottom: 14px; font-size: 1.35rem; line-height: 1.25; }
.case-card p { color: rgba(255,255,255,.7); font-size: .92rem; }
.case-result { margin-top: auto !important; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.17); color: var(--t9-white) !important; }

.about-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 80px; }
.about-grid-simple { display: block; }
.about-grid-simple .about-copy { max-width: 900px; }
.about-panel { padding: 42px; color: var(--t9-white); background: var(--t9-wine); border-radius: 24px; box-shadow: var(--t9-shadow); }
.detail-row { display: flex; justify-content: space-between; gap: 25px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.detail-row:first-child { padding-top: 0; }
.detail-row:last-child { padding-bottom: 0; border: 0; }
.detail-row span { color: rgba(255,255,255,.6); font-size: .82rem; }
.detail-row strong { max-width: 62%; text-align: right; font-size: .92rem; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 80px; }
.contact-copy .eyebrow { color: var(--t9-wine); }
.contact-note { margin-top: 32px; padding-top: 26px; border-top: 1px solid rgba(123,53,41,.25); font-size: .91rem; }
.contact-form { padding: 36px; background: var(--t9-white); border-radius: 24px; box-shadow: var(--t9-shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; color: var(--t9-wine); font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid #cfc7c5; border-radius: 12px; background: #f6f4f3; padding: 13px 14px; color: var(--t9-ink); outline: none; }
.form-field textarea { min-height: 135px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--t9-wine); box-shadow: 0 0 0 3px rgba(242,152,117,.28); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; }
.form-hint { color: #736966; font-size: .78rem; }
.form-message { margin-bottom: 20px; padding: 13px 15px; border-radius: 10px; font-weight: 700; }
.form-message.success { color: #315d43; background: #dfeee4; }
.form-message.error { color: #7b3529; background: #f8dfd6; }

.site-footer { padding: 44px 0 28px; color: rgba(255,255,255,.72); background: #2f201d; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-top .brand { color: var(--t9-white); }
.footer-top .brand { padding: 10px 15px; background: var(--t9-paper); border-radius: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: .86rem; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 28px; padding-top: 24px; font-size: .78rem; }

@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .section-head.split, .process-layout { grid-template-columns: 1fr; gap: 38px; }
  .process-intro { position: static; }
  .benefits-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card:last-child { grid-column: 1 / -1; min-height: 300px; }
}

@media (max-width: 760px) {
  .t9-shell { width: min(100% - 28px, var(--t9-max)); }
  .hero-grid { width: min(var(--t9-max), calc(100% - 28px)); }
  .header-inner { min-height: 70px; }
  .brand-logo-full { width: 190px; flex-basis: 190px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .site-nav { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 25px; padding: 80px 30px; color: var(--t9-white); background: var(--t9-wine); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { font-size: 1.35rem; }
  .site-nav .nav-cta { color: var(--t9-wine) !important; background: var(--t9-coral); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 650px; padding: 80px 0; }
  .hero::before { background: linear-gradient(90deg, rgba(47,32,29,.9) 0%, rgba(47,32,29,.75) 70%, rgba(47,32,29,.5) 100%); }
  .hero-backdrop img { object-position: 58% center; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .hero-copy > p { font-size: 1rem; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item { padding-inline: 0; }
  .trust-item + .trust-item { border-top: 1px solid var(--t9-line); border-left: 0; }
  .section { padding: 74px 0; }
  .services-grid, .benefits-grid, .case-grid, .form-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .benefit-card { min-height: auto; }
  .case-card, .case-card:last-child { grid-column: auto; min-height: 340px; }
  .form-field.full { grid-column: auto; }
  .contact-form { padding: 25px; }
  .form-actions, .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .detail-row { flex-direction: column; gap: 6px; }
  .detail-row strong { max-width: none; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
