/* Piatech Software Consultancy Ltd — site styles */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1a2233;
  --text-muted: #5a6475;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #e3e8ef;
  --max-width: 68rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.0625rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.site-nav a {
  color: var(--text);
  margin-left: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 40rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.hero .actions {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

section.alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* Prose pages (About, Contact) */
.page-header {
  padding: 4rem 0 2.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.page-header p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  max-width: 38rem;
  font-size: 1.1rem;
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul {
  margin: 0 0 1rem 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* Contact */
.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 30rem;
}

.contact-card dt {
  font-weight: 600;
  margin-top: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.contact-card dt:first-child {
  margin-top: 0;
}

.contact-card dd {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg-alt);
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

@media (max-width: 40rem) {
  .site-nav a {
    margin-left: 1rem;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }
}
