/* Palmetto Tech Solutions - site styles */
:root {
  --navy: #00336d;
  --blue: #01477e;
  --green: #47af37;
  --green-dark: #2f7d24;
  --ink: #14213d;
  --text: #3a4659;
  --muted: #5d6a7e;
  --line: #dfe5ee;
  --bg: #ffffff;
  --bg-soft: #f3f7fb;
  --radius: 14px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(0, 35, 80, .06), 0 8px 24px rgba(0, 35, 80, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 16px; }
.brand img { width: 150px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; }
.site-nav a:hover { background: var(--bg-soft); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.site-nav a.btn { color: #fff; margin-left: 8px; }
.site-nav a.btn[aria-current="page"] { box-shadow: none; border-radius: 10px; }
.site-nav a.btn:hover { color: #fff; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--green); }
  .site-nav a.btn { margin: 8px 0 0; text-align: center; }
  .brand img { width: 132px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; font-family: inherit; }
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-soft); border-color: var(--bg-soft); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 12px; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); padding: clamp(56px, 9vw, 112px) 0 clamp(72px, 10vw, 128px); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 54ch; margin-bottom: 28px; }
.hero-mark { justify-self: center; width: min(320px, 100%); opacity: .95; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 0; }
.areas-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; padding: 0; list-style: none; font-size: .95rem; color: var(--muted); }
.areas-line li { display: flex; align-items: center; gap: 8px; }
.areas-line li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--bg-soft); padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 60ch; margin: 0; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--navy); }
.card .more:hover { color: var(--green-dark); }
.icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; }
.icon-green { background: linear-gradient(135deg, var(--green-dark), var(--green)); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { position: relative; padding-top: 56px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--navy); box-shadow: 0 0 0 6px rgba(71,175,55,.18); }
.steps h3 { margin-bottom: .4em; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/20px no-repeat; }

/* Service detail */
.service { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service .fit { background: var(--bg-soft); border-radius: var(--radius); padding: 22px 24px; margin-top: 8px; }
.service .fit h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green-dark); }
.service .fit p { margin: 0; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 20px; } }

/* About values */
.value h3 { display: flex; align-items: center; gap: 10px; }
.value h3::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--green); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: #dbe7f5; border-radius: 20px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 52ch; }

/* CTA directly after a white section: avoid double spacing */
.section:not(.section-soft) + .cta-section { padding-top: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border: 1.5px solid #c9d3e0; border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(1,71,126,.12); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #e9f7e6; color: #1f5c17; border: 1px solid #bfe3b8; }
.form-status.err { background: #fdecec; color: #8a1c1c; border: 1px solid #f3c2c2; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.aside-card { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; }
.aside-card h2 { font-size: 1.3rem; }
.aside-card + .aside-card { margin-top: 20px; }

/* Prose (privacy) */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }

/* Footer */
.site-footer { background: var(--navy); color: #c4d4e8; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid img { width: 190px; margin-bottom: 14px; }
.footer-grid h2 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 20px; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.center { text-align: center; }
.center .btn-row { justify-content: center; }

/* ---------- Motion ----------
   Kept subtle on purpose. Everything below is switched off for
   visitors who ask for reduced motion (see the end of the file). */
:root { --ease: cubic-bezier(.22, .61, .36, 1); }

/* Smooth fade between pages (Chrome, Edge, Safari 18+; others just navigate normally) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Scroll reveal: content eases up into place the first time it's seen.
   Only active when JS has run (html.js), so nothing is ever hidden without it. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Hero: the green line draws itself in, like the circuit lines in the logo */
.wave-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 2.4s var(--ease) .35s forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

/* Hero emblem: a slow, barely-there sway, like a palm in a light breeze */
.hero-mark { transform-origin: 50% 85%; animation: emblem-in 1.1s var(--ease) both, sway 9s ease-in-out 1.2s infinite; }
@keyframes emblem-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(1.6deg) translateY(-3px); } }

/* Cards lift a little on hover; icon tilts; arrow nudges forward */
.card { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.card:hover { transform: translateY(-4px); border-color: #cbd7e6; box-shadow: 0 2px 4px rgba(0,35,80,.06), 0 18px 40px rgba(0,35,80,.10); }
.icon { transition: transform .45s var(--ease); }
.card:hover .icon, .service:hover .icon { transform: rotate(-6deg) scale(1.06); }
.card .more { display: inline-block; transition: color .2s, transform .3s var(--ease); }
.card:hover .more { transform: translateX(4px); }

/* Nav links: green underline grows from the center on hover */
.site-nav a:not(.btn) { position: relative; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--green); transform: scaleX(0); transition: transform .3s var(--ease); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"]::after { display: none; }

/* Buttons: soft green glow on hover */
.btn:hover { box-shadow: 0 6px 18px rgba(1,71,126,.22); }
.btn-light:hover { box-shadow: 0 6px 18px rgba(0,0,0,.18); }

/* Step numbers get a gentle pulse ring as they appear */
.js .steps li.is-in::before { animation: ring 1.2s var(--ease) calc(var(--d, 0s) + .2s) both; }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(71,175,55,.45); } to { box-shadow: 0 0 0 6px rgba(71,175,55,.18); } }

/* CTA band: a slow light sheen drifts across */
.cta-band { position: relative; overflow: hidden; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.08) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 9s ease-in-out infinite; }
@keyframes sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .wave-line { stroke-dashoffset: 0; }
  .btn:hover, .card:hover, .card:hover .icon, .service:hover .icon, .card:hover .more { transform: none; }
}
