:root {
  --atk-ink: #111111;
  --atk-paper: #fcfcfc;
  --atk-muted: #2a2a2a;
  --atk-line: #e6e6e6;

  /* Tweak these if your header height changes */
  --atk-header-h: 84px;
  --atk-hero-top-pad: 110px;
}

/* Site-wide smoothing */
html {
  scroll-behavior: smooth;
}
body {
  background: var(--atk-paper);
  color: var(--atk-ink);
}

/* Links hover */
a:hover {
  opacity: 0.85;
}

/* =========================================
   HEADER: transparent at top, solid on scroll
   ========================================= */

/* Overlay header on top of hero */
.atk-site-header {
  position: fixed; /* overlay */
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    backdrop-filter 0.25s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
}

/* Solid header after scroll */
.atk-site-header.is-scrolled {
  background: rgba(252, 252, 252, 0.92);
  border-bottom-color: var(--atk-line);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* If you add this body class (recommended), main content gets padded down */
.atk-has-fixed-header main {
  padding-top: var(--atk-header-h);
}

/* If first block is a full-width hero cover, pull it up behind the header */
.atk-has-fixed-header main > .wp-block-cover.alignfull:first-child {
  margin-top: calc(var(--atk-header-h) * -1);
}

/* Nav styling like the demo */
.atk-nav a {
  text-decoration: none;
  font-family: var(--wp--preset--font-family--title);
  letter-spacing: 0.02em;
}
.atk-nav a:hover {
  opacity: 0.85;
}

/* =========================================
   HERO (Featured Image Cover)
   ========================================= */

.wp-block-cover.atk-hero {
  min-height: 85vh;
}

/* Push hero content down so it clears the fixed header */
.wp-block-cover.atk-hero .wp-block-cover__inner-container {
  padding-top: var(--atk-hero-top-pad);
}

/* Optional: tighten hero typography a touch */
.wp-block-cover.atk-hero h1 {
  margin-top: 0;
}

/* =========================================
   BUTTON VARIATIONS
   ========================================= */

.atk-btn-outline .wp-element-button {
  background: transparent !important;
  color: var(--atk-ink) !important;
  border: 2px solid var(--atk-ink) !important;
}

.atk-btn-light .wp-element-button {
  background: var(--atk-paper) !important;
  color: var(--atk-ink) !important;
  border: 2px solid var(--atk-paper) !important;
}

/* =========================================
   CARDS + TILES
   ========================================= */

.atk-card {
  border: 1px solid var(--atk-line);
  padding: 24px;
}

.atk-tile {
  border: 1px solid var(--atk-line);
  padding: 24px;
  height: 100%;
}

.atk-tile h3 {
  margin-top: 0;
}

/* Query Loop tiles equal height */
.atk-tiles .wp-block-post {
  height: 100%;
}

.atk-tiles .wp-block-post-featured-image img {
  border: 1px solid var(--atk-line);
}

/* =========================================
   CTA BAND
   ========================================= */

.atk-band {
  background: linear-gradient(180deg, #1a1a2a 0%, #0f0f0f 100%);
  color: var(--atk-paper);
}
.atk-band a,
.atk-band p,
.atk-band h1,
.atk-band h2,
.atk-band h3 {
  color: var(--atk-paper);
}

/* Optional: tighten headings spacing in sections */
.atk-section h2 {
  margin-top: 0;
}

/* =========================================
   CONTACT FORM 7 STYLING
   ========================================= */

.wpcf7 form p {
  margin-bottom: 14px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  border: 2px solid var(--atk-ink);
  border-radius: 0;
  padding: 12px 14px;
  font: inherit;
  background: var(--atk-paper);
  color: var(--atk-ink);
}

.wpcf7 textarea {
  min-height: 140px;
}

.wpcf7 input[type="submit"],
.wpcf7 button,
.wpcf7 input[type="button"] {
  border-radius: 0;
  border: 2px solid var(--atk-ink);
  background: var(--atk-ink);
  color: var(--atk-paper);
  padding: 12px 18px;
  font-family: var(--wp--preset--font-family--title);
  cursor: pointer;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 button:hover,
.wpcf7 input[type="button"]:hover {
  opacity: 0.9;
}

/* =========================================
   RESPONSIVE TWEAKS
   ========================================= */

@media (max-width: 781px) {
  :root {
    --atk-header-h: 72px;
    --atk-hero-top-pad: 96px;
  }

  .atk-card,
  .atk-tile {
    padding: 18px;
  }
}
