/* ==========================================================================
   Griffin Digital Marketing — Full Styles
   ========================================================================== */

:root{
  --bg: #0b0f14;
  --card: #10151c;
  --ink: #e5e7eb;
  --muted: #9ca3af;
  --brand: #cbd5e1;  /* strokes/borders */
  --accent: #38bdf8; /* focus color */
}

/* Global Styles & Resets */
*, *:before, *:after { box-sizing:border-box; }
html { scroll-padding-top: 5rem; } /* For smooth scroll offset */
body {
  margin: 0;
  padding: 0;
  background: var(--bg) url('./assets/pattern.svg') center/400px repeat;
  color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Selection */
::selection { background-color: var(--accent); color: white; }
::-moz-selection { background-color: var(--accent); color: white; }

/* General Layout & Components */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}
.section { padding: 3rem 0; }
.section h2 { font-size: clamp(22px, 3vw, 34px); margin: 0.25rem 0 1rem; font-weight: 700; }
.section .sub { color: var(--muted); margin-top: -6px; }
.badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
h1, h2, h3 { font-weight: 800; line-height: 1.15; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  display: grid;
  justify-items: center;
  row-gap: 1rem;
  padding: 1.5rem 0 2rem;
}
.header .logo {
  width: clamp(220px, 40vw, 520px);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.35));
}
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-menu a {
  opacity: 0.9;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: opacity 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.nav-menu a:hover,
.nav-menu a:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
.nav-menu a.btn {
  transform: none;
  background: transparent;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
}
.nav-menu a.btn:hover,
.nav-menu a.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  background: #0f172a;
}

/* Buttons */
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--ink);
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn.primary {
  background: #0f172a;
  border-color: #e2e8f0;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  background: #0f172a;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-container {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0 2rem;
}
@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 3rem 0 4rem;
  }
}
.hero-container h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.15; margin: 0 0 1rem; font-weight: 800; }
.hero-container p.lede { color: var(--muted); margin-bottom: 1.5rem; max-width: 600px; font-size: 1.125rem; }
.hero-image {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.04));
  padding: 0.5rem;
  border-radius: 1.5rem;
  border: 1px solid #2b3441;
  animation: float 7s ease-in-out infinite;
}
.hero-headshot {
  border-radius: 1rem;
  animation: fadeIn 0.6s ease both;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card {
  background: var(--card);
  border: 1px solid #1f2937;
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  animation: fadeUp 0.55s ease both;
}
.cards .services-card:nth-child(2) { animation-delay: 0.08s; }
.cards .services-card:nth-child(3) { animation-delay: 0.16s; }
.services-card:hover { transform: scale(1.05); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }

@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card h3 { font-weight: 700; font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p.muted { color: var(--muted); }
.card .icon {
  width: 4rem;
  height: 4rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .icon svg { stroke: var(--muted); }
.card .icon svg circle, .card .icon svg path, .card .icon svg rect { stroke: var(--ink); }

.portfolio-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.portfolio-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  background-color: rgba(30, 41, 59, 0.2);
}
.portfolio-image-container {
  height: 12rem;
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111827;
}
.portfolio-image { object-fit: cover; height: 100%; width: 100%; }

.list { list-style: disc; padding-left: 1.5rem; margin-top: 1rem; }
.list li { color: var(--muted); margin-bottom: 1rem; }
.list li::marker { color: var(--ink); }

/* ==========================================================================
   CTA & Footer
   ========================================================================== */
.cta-card {
  padding: 2rem;
  background: var(--card);
  border-radius: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .cta-card { padding: 3rem; }
}
.cta-card h2 { margin-bottom: 1rem; }
.cta-card p.sub { margin: 0 auto 2rem; max-width: 42rem; }
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  padding: 2rem 1rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
