/* Logical Developers - site styles.
   Design tokens come from the original The7 theme settings (css-vars.css):
   accent #00acce, header #1a1c20, headings #333333, page background #f7f7f7, Roboto.
   Text-on-white colors are slightly darker than the original so they meet WCAG AA contrast. */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
  --accent: #00acce;          /* brand teal: borders, highlights, use on dark */
  --accent-text: #007d99;     /* teal for links/buttons on light backgrounds (AA) */
  --accent-hover: #23aadd;
  --dark: #1a1c20;
  --dark-2: #23272e;
  --heading: #333333;
  --text: #5b5d63;
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --line: #e2e4e8;
  --radius: 2px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  font-family: "Roboto", Helvetica, Arial, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-alt);
}

img { max-width: 100%; height: auto; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }
.center { text-align: center; }
.small { font-size: .85rem; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header (dark, as in the original) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--dark); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 24px; }
.logo img { display: block; width: 210px; height: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: center; }
.main-nav a {
  color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.nav-toggle { display: none; }

/* ---------- Banner + hero ---------- */
.tagline-bar { background: var(--accent); color: #0b2b33; font-size: .9rem; font-weight: 500; text-align: center; padding: 9px 20px; }
.tagline-bar a { color: #0b2b33; font-weight: 700; text-decoration: none; }

.hero {
  color: #d5d9df; padding: 96px 0 104px;
  background:
    radial-gradient(900px 380px at 82% 0%, rgba(0,172,206,.28), transparent 70%),
    linear-gradient(135deg, var(--dark) 0%, #222a33 100%);
}
.hero h1 { color: #fff; font-size: 3rem; max-width: 820px; }
.hero .lead { font-size: 1.15rem; max-width: 800px; }
.hero .lead strong { display: block; color: #fff; font-size: 1.45rem; margin-bottom: .45em; }

/* ---------- Sections ---------- */
section { padding: 72px 0; background: var(--bg); }
section.alt { background: var(--bg-alt); }
.intro-head { text-align: center; max-width: 840px; margin: 0 auto 44px; }

.cols-3 { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
section:not(.alt):not(.ai-section) .card { background: var(--bg-alt); }

.two-col { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr 1fr; }
.two-col.top { align-items: start; }
.gap-top { margin-top: 44px; }
.gap-both { margin: 36px 0; }
.spaced { margin-bottom: 16px; }
.spaced-top { margin-top: 18px; }

.btn {
  display: inline-block; background: var(--accent-text); color: #fff; padding: 13px 26px;
  border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 1rem;
  border: 2px solid var(--accent-text); cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); margin-left: 10px; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--dark); }

.industry-list { columns: 2; padding-left: 20px; }

/* ---------- AI section ---------- */
.ai-section { background: var(--dark); color: #c3c8d0; }
.ai-section h2, .ai-section h3 { color: #fff; }
.ai-section .intro-head p { font-size: 1.1rem; }
.ai-card { background: var(--dark-2); border: 1px solid rgba(255,255,255,.1); border-top: 3px solid var(--accent); }
.ai-card ul { padding-left: 20px; }
.ai-card li { margin-bottom: .7em; }
.ai-card strong { color: #fff; }
.ai-card .note { margin-top: 1.3em; padding-top: 1.1em; border-top: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.ai-tag {
  display: inline-block; margin-bottom: 12px; padding: 2px 10px; font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 20px;
}
.ai-section .btn { background: var(--accent); border-color: var(--accent); color: #0b2b33; }
.ai-section .btn:hover { background: #fff; border-color: #fff; color: var(--dark); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #0b2b33; text-align: center; padding: 52px 20px; }
.cta-band h2 { color: #0b2b33; margin: 0; }
.cta-band .phone { font-size: 2.4rem; font-weight: 700; margin: .2em 0 0; }
.cta-band a { color: #0b2b33; text-decoration: none; }

.migration-items h4 { margin-top: 1.4em; margin-bottom: .3em; }
.migration-items h4:first-child { margin-top: 0; }

/* ---------- Case studies (tabs) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 26px; padding: 0; list-style: none; border-bottom: 2px solid var(--line); }
.tabs button {
  font: inherit; font-weight: 500; background: none; border: 0; padding: 11px 18px; cursor: pointer;
  color: var(--text); border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tabs button:hover { color: var(--accent-text); }
.tabs button[aria-selected="true"] { color: var(--heading); border-bottom-color: var(--accent); font-weight: 700; }
.js .tab-panel { display: none; }
.js .tab-panel.active { display: block; }
.tab-panel .client-logo { max-height: 90px; margin-bottom: 12px; display: block; }
.tab-panel .client-name { margin: 0 0 12px; font-size: 1.8rem; }
.tab-panel .client-name a { color: var(--heading); text-decoration: none; }
.tab-panel li { margin-bottom: .8em; }
.tab-panel ul ul { margin-top: .7em; }
.no-js .tabs { display: none; }
.no-js .tab-panel { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--bg-alt); border-left: 4px solid var(--accent); padding: 22px 26px; margin: 0 0 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.testimonial p { margin: 0 0 .8em; }
.testimonial .who { font-weight: 700; color: var(--heading); margin: 0; }
.testimonial .role { font-size: .9rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 44px; grid-template-columns: 1fr 1.25fr; }
.contact-info h3 { margin-bottom: .2em; }
form label { display: block; font-weight: 500; color: var(--heading); margin: 16px 0 4px; }
form .row { display: flex; gap: 14px; }
form .row > div { flex: 1; }
form input[type=text], form input[type=email], form textarea {
  width: 100%; padding: 11px 13px; font: inherit; color: var(--heading);
  background: #fff; border: 1px solid #b9bec6; border-radius: var(--radius);
}
form input:focus, form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
form textarea { min-height: 160px; resize: vertical; }
form small { color: var(--text); }
.turnstile-box { margin: 20px 0 4px; min-height: 65px; }

.result-page { background: var(--bg); padding: 90px 0; }
.form-note { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px; font-weight: 500; }
.form-note.ok { background: #e6f4ea; color: #1e5b2f; }
.form-note.err { background: #fdecea; color: #8a1c13; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #aab0ba; padding: 44px 0 30px; text-align: center; font-size: .92rem; }
.site-footer a { color: #d5d9df; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.site-footer p { margin: 0; }

/* ---------- Privacy / inner pages ---------- */
.page-title { background: var(--dark); padding: 44px 0; }
.page-title h1 { color: #fff; margin: 0; }
.breadcrumbs { font-size: .9rem; color: #aab0ba; margin-top: 8px; }
.breadcrumbs a { color: var(--accent); }
.prose { max-width: 880px; padding: 52px 24px 72px; margin: 0 auto; background: var(--bg); }
.prose h2 { font-size: 1.15rem; margin-top: 2em; text-transform: uppercase; letter-spacing: .03em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); color: var(--heading); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .industry-list { columns: 1; }
  h1, .hero h1 { font-size: 2.1rem; }
  .hero { padding: 64px 0 72px; }
  section { padding: 52px 0; }

  .nav-toggle { display: block; background: none; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius); padding: 9px 14px; font: inherit; cursor: pointer; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; min-height: 0; }
  .logo img { width: 170px; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0; }
  .main-nav a { display: block; padding: 11px 0; }
  form .row { flex-direction: column; gap: 0; }
  .btn-ghost { margin: 10px 0 0; }
}
