/* =========================================
   DriftLayer Tech – warm neutral theme
   Mobile-optimized, works with Pico.css
   ========================================= */

/* ---------- Design tokens ---------- */

:root {
  --drift-bg: #f5efe5;
  --drift-surface: #ffffff;
  --drift-surface-soft: #f2e6d7;
  --drift-border: #e0d4c2;
  --drift-text: #222222;
  --drift-muted: #6b7280;

  /* Warm accent */
  --drift-primary: #c4703c;        /* main accent */
  --drift-primary-soft: #d3814b;   /* hover */
  --drift-primary-subtle: #a65a2c; /* darker accent */
  --drift-primary-glow: rgba(196, 112, 60, 0.33);
}

/* ---------- Global reset / base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  background: radial-gradient(circle at top, #fdf7ef 0, #f5efe5 55%);
  color: var(--drift-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

/* Links */

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

a:hover,
a:focus-visible {
  text-decoration: none;
}

/* Headings */

h1,
h2,
h3 {
  color: #111827;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 2.7vw + 1.6rem, 3rem);
  margin-bottom: 0.9rem;
}

h2 {
  font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

/* Paragraphs */

p {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--drift-text);
}

.lead {
  font-size: 1.05rem;
  color: #374151;
}

/* Eyebrow text */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--drift-primary-subtle);
  margin-bottom: 0.65rem;
}

/* ---------- Header / nav ---------- */

.site-header {
  background: rgba(245, 239, 229, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(209, 213, 219, 0.8);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  padding-block: 0.9rem;
}

/* ---------- Brand wordmark ---------- */

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  flex-wrap: nowrap;
}

.brand-name {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: #1f2933;
}

.brand-divider {
  width: 1px;
  height: 1rem;
  background: linear-gradient(
    to bottom,
    rgba(166, 90, 44, 0.1),
    rgba(166, 90, 44, 0.8),
    rgba(166, 90, 44, 0.1)
  );
  opacity: 0.8;
}

.brand-tagline {
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--drift-muted);
}

/* Nav links */

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.nav a {
  color: #374151;
}

.nav a:hover,
.nav a:focus-visible,
.nav .brand:hover .brand-name,
.nav .brand:hover .brand-tagline {
  color: var(--drift-primary-subtle);
}

/* Nav button */

.btn-nav {
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  background: transparent;
  border: 1px solid rgba(156, 163, 175, 0.7);
  color: #111827;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-nav:hover {
  background: rgba(243, 229, 215, 0.7);
  border-color: rgba(156, 163, 175, 0.9);
}

/* ---------- Layout / sections ---------- */

main {
  flex: 1;
}

section {
  padding-block: 3.5rem;
}

.section {
  background: transparent;
}

.section-alt {
  background: linear-gradient(
    135deg,
    #f9f3ea 0,
    #f3e5d7 40%,
    #f5efe5 100%
  );
}

.section-header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-header p {
  color: var(--drift-muted);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 4.2rem;
  padding-bottom: 3.5rem;
  background: radial-gradient(circle at top, #fff7eb 0, #f5efe5 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

/* Cards / surfaces */

.card,
.hero-card,
.about-card,
.legal-card {
  background: var(--drift-surface);
  border-radius: 1.1rem;
  border: 1px solid var(--drift-border);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  padding: 1.4rem 1.6rem;
}

.hero-card {
  align-self: flex-start;
}

.hero-card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--drift-muted);
  margin-bottom: 0.75rem;
}

/* Grids */

.service-grid,
.project-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

/* Section icon */

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-right: 0.45rem;
  border-radius: 0.9rem;
  font-size: 1.05rem;
  background: radial-gradient(
    circle at 30% 20%,
    #ffe9c9,
    #f0b27a 55%,
    #c4703c 100%
  );
  box-shadow: 0 0 16px var(--drift-primary-glow);
}

/* About card */

.about-card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.about-card li {
  margin-bottom: 0.25rem;
}

/* Legal card */

.legal-card {
  max-width: 32rem;
  margin-inline: auto;
}

/* Process list */

.process-list {
  margin: 0;
  padding-left: 1.25rem;
}

.process-list li {
  margin-bottom: 1.25rem;
}

.process-list h3 {
  margin-bottom: 0.25rem;
}

/* ---------- Buttons ---------- */

.btn-primary,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;

  background: linear-gradient(90deg, #c4703c, #d3814b);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  border: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  box-shadow:
    0 10px 26px var(--drift-primary-glow),
    0 0 0 1px rgba(196, 112, 60, 0.18);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  cursor: pointer;
}

.btn-primary:hover,
button[type="submit"]:hover {
  background: linear-gradient(90deg, #d3814b, #e09155);
  box-shadow:
    0 14px 32px rgba(196, 112, 60, 0.4),
    0 0 0 1px rgba(196, 112, 60, 0.25);
  transform: translateY(-1px);
}

.btn-primary:active,
button[type="submit"]:active {
  transform: translateY(0);
  box-shadow:
    0 8px 18px rgba(196, 112, 60, 0.35),
    0 0 0 1px rgba(196, 112, 60, 0.28);
}

.btn-ghost {
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  background: transparent;
  border: 1px solid rgba(156, 163, 175, 0.7);
  color: #111827;
  font-weight: 500;
  font-size: 0.92rem;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(243, 229, 215, 0.8);
  border-color: rgba(156, 163, 175, 0.9);
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 680px;
}

.contact-form .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.contact-form label {
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  font-size: 0.9rem;
}

/* Form fields: make them light, modern, readable */
.contact-form input,
.contact-form textarea {
  background: #ffffff !important;
  border: 1px solid var(--drift-border) !important;
  color: #333 !important;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9b9b9b !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--drift-primary) !important;
  box-shadow: 0 0 0 3px rgba(196, 112, 60, 0.22);
}

.form-note {
  font-size: 0.85rem;
  color: var(--drift-muted);
  margin-top: 0.75rem;
}

.form-note a {
  color: var(--drift-primary-subtle);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  background: #f4ede3;
  color: var(--drift-muted);
  padding-block: 1.5rem;
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.footer-meta {
  color: var(--drift-primary-subtle);
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 900px) {
  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  }
}

@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem 1rem;
    font-size: 0.86rem;
  }

  .brand {
    flex-wrap: wrap;
    row-gap: 0.1rem;
  }

  section {
    padding-block: 2.6rem;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .about-card {
    margin-top: 1.3rem;
  }

  .service-grid,
  .project-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .card,
  .hero-card,
  .about-card,
  .legal-card {
    padding: 1.15rem 1.2rem;
  }

  .brand-divider {
    height: 0.85rem;
  }
}
