/**
 * Site Stylesheet
 * 
 * Purpose:
 * - Provides a clean, professional layout for a personal/agency-style site that
 *   offers website design, managed hosting, and ongoing maintenance.
 * - Uses background images (generated textures) + restrained typography to
 *   project "quiet competence" rather than gimmicky tech visuals.
 *
 * Structure:
 * - Base / tokens
 * - Layout (container, grid)
 * - Header / nav
 * - Hero
 * - Sections / cards
 * - Testimonials
 * - Footer
 * - Forms
 * - Utilities
 * - Responsive rules
 */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  /* Color tokens */
  --bg: #f3f1ec;
  --surface: #fffefa;
  --surface-2: #f2efe8;
  --ink: #1f2731;
  --muted: #5b6876;
  --border: rgba(31, 39, 49, 0.12);

  --brand: #2a5b73;       /* primary button / accents */
  --brand-ink: #f8fbff;
  --accent: #d07a3f;

  --dark: #1f2a33;        /* dark sections */
  --dark-ink: rgba(255,255,255,0.94);
  --dark-muted: rgba(255,255,255,0.72);

  /* Typography */
  --font: "Manrope", "Segoe UI", Arial, sans-serif;
  --display: "Fraunces", "Times New Roman", serif;

  /* Layout */
  --container: 1120px;
  --radius: 16px;

  /* Shadows */
  --shadow-sm: 0 6px 18px rgba(16,24,40,0.08);
  --shadow-md: 0 14px 40px rgba(16,24,40,0.14);
  --shadow-lg: 0 22px 60px rgba(16,24,40,0.18);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1000px 600px at 80% -10%, rgba(42, 91, 115, 0.12), transparent 60%),
    radial-gradient(600px 420px at 10% 0%, rgba(208, 122, 63, 0.10), transparent 55%);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
}

/* Container */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246,247,249,0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a.active {
  color: var(--ink);
  background: rgba(47,95,134,0.10);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
}

/* Hero */
.hero {
  background-image: url("../img/bg-hero.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  padding: 64px 0 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 14px 0;
}

.hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 26px 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero .hero-actions {
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
}

.button.primary {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}

.button.secondary {
  background: rgba(255,255,255,0.65);
  border-color: var(--border);
  color: var(--ink);
}

.button:hover { text-decoration: none; transform: translateY(-1px); }
.button:active { transform: translateY(0px); }

.hero-portrait {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(16,24,40,0.14);
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 70% at 30% 20%, rgba(255,255,255,0.25), transparent 60%);
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  height: auto;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.section-title p {
  margin: 10px auto 0;
  max-width: 70ch;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.card {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(47,95,134,0.10);
  color: var(--brand);
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Dark feature block */
.feature {
  background-image: url("../img/bg-dark.jpg");
  background-size: cover;
  background-position: center;
  color: var(--dark-ink);
}

.feature-inner {
  padding: 60px 0;
}

.feature h2 {
  margin: 0 0 10px 0;
  font-size: 34px;
  letter-spacing: -0.03em;
  text-align: center;
}

.feature p {
  margin: 0 auto 34px;
  max-width: 76ch;
  text-align: center;
  color: var(--dark-muted);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.quote {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 22px;
}

.quote p {
  margin: 0 0 12px 0;
  color: var(--dark-ink);
  font-weight: 600;
}

.quote .meta {
  color: var(--dark-muted);
  font-size: 14px;
}

/* Page content */
.page-hero {
  position: relative;
  padding: 64px 0 40px;
  background-image:
    radial-gradient(900px 420px at 5% -10%, rgba(42, 91, 115, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(208, 122, 63, 0.16), rgba(255, 255, 255, 0) 55%),
    url("../img/bg-light.jpg");
  background-size: cover;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 3.8vw, 46px);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 42% 58% 46% 54%;
  border: 1px solid rgba(42, 91, 115, 0.18);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  transform: rotate(10deg);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero--services {
  background-image:
    linear-gradient(120deg, rgba(31, 39, 49, 0.15), rgba(255, 255, 255, 0) 55%),
    url("../img/hero-services.png");
}

.page-hero--portfolio {
  background-image:
    linear-gradient(120deg, rgba(31, 39, 49, 0.12), rgba(255, 255, 255, 0) 55%),
    url("../img/hero-portfolio.jpg");
}

.page-hero--get-started {
  background-image:
    linear-gradient(120deg, rgba(31, 39, 49, 0.12), rgba(255, 255, 255, 0) 55%),
    url("../img/hero-get-started.jpg");
}

.page-hero--contact {
  background-image:
    linear-gradient(120deg, rgba(31, 39, 49, 0.14), rgba(255, 255, 255, 0) 55%),
    url("../img/hero-contact.jpg");
}

.page-hero--design {
  background-image:
    linear-gradient(120deg, rgba(31, 39, 49, 0.12), rgba(255, 255, 255, 0) 55%),
    url("../img/hero-design.jpg");
}

.page-hero--hosting {
  background-image:
    linear-gradient(120deg, rgba(31, 39, 49, 0.16), rgba(255, 255, 255, 0) 55%),
    url("../img/hero-hosting.jpg");
}

.page-hero--management {
  background-image:
    linear-gradient(120deg, rgba(31, 39, 49, 0.16), rgba(255, 255, 255, 0) 55%),
    url("../img/hero-management.jpg");
}

.page {
  padding: 44px 0 72px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.panel-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.panel-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.panel-card--accent {
  background: linear-gradient(135deg, rgba(42, 91, 115, 0.14), rgba(208, 122, 63, 0.18));
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.info-card h2 {
  margin-top: 0;
}

.image-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
}

.image-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.image-card .card-body {
  padding: 18px 20px 22px;
}

.image-card .card-body p {
  margin: 0;
  color: var(--muted);
}

.thumb-card {
  display: grid;
  gap: 14px;
}

.thumb-card img {
  border-radius: 14px;
  border: 1px solid var(--border);
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(42, 91, 115, 0.18);
  background: rgba(42, 91, 115, 0.08);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.list-check li {
  position: relative;
  padding-left: 22px;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(208, 122, 63, 0.15);
}

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.process-steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 18px 54px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.process-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  font-weight: 700;
  color: var(--brand);
}

.cta-panel {
  margin-top: 28px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(42, 91, 115, 0.18);
  background: linear-gradient(120deg, rgba(42, 91, 115, 0.14), rgba(255, 255, 255, 0.4));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}

.cta-panel p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
}

.quote-card {
  background: rgba(42, 91, 115, 0.08);
  border: 1px solid rgba(42, 91, 115, 0.2);
  border-radius: 16px;
  padding: 18px;
}

.quote-card strong {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.work-card h3 { margin: 0 0 8px; }
.work-card p { margin: 0; color: var(--muted); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.badge {
  font-size: 12px;
  font-weight: 700;
  color: rgba(29,36,48,0.86);
  background: rgba(42, 91, 115, 0.12);
  border: 1px solid rgba(42, 91, 115, 0.24);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Forms */
form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

label { font-weight: 700; font-size: 14px; }
input, textarea {
  font: inherit;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16,24,40,0.18);
  background: rgba(255,255,255,0.85);
  outline: none;
}

input:focus, textarea:focus {
  border-color: rgba(47,95,134,0.6);
  box-shadow: 0 0 0 4px rgba(47,95,134,0.14);
}

textarea { min-height: 140px; resize: vertical; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(246,247,249,0.9);
}

.footer-inner {
  padding: 22px 0;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Utilities */
.small { font-size: 14px; color: var(--muted); }
.spacer-24 { height: 24px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 52px 0 44px; }
  .hero-portrait { max-width: 520px; }
  .cards { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex;
    width: 100%;
    padding: 10px 0 6px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .header-inner { flex-wrap: wrap; }
}
