/*
Theme Name: NousAI Lab
Theme URI: https://www.nousailab.com/
Author: NousAI Lab
Description: A clean one-page business theme for NousAI Lab — AI adoption consulting. Sticky header, gradient hero, accent-border service cards, FAQ accordion, native contact form, and a four-column footer. All brand colors and hero content are editable in the Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nousailab
Tags: one-column, custom-colors, custom-logo, custom-menu, sticky-header, business
*/

/* ---------------------------------------------------------------------------
   Design tokens. Exact values extracted from the original site's compiled stylesheet; every value here is
   overridden by the Customizer (Appearance → Customize → Brand Colors), which
   prints its own :root block after this stylesheet.
--------------------------------------------------------------------------- */
:root {
  --nal-primary: #207e18;
  --nal-primary-foreground: #f8f8f8;
  --nal-background: #fbfcfb;
  --nal-foreground: #0d1218;
  --nal-secondary: #e7f2e6;
  --nal-secondary-foreground: #0d1218;
  --nal-muted-foreground: #747474;
  --nal-border: #e1e6e0;
  --nal-radius: 0.625rem;
  --nal-container: 80rem; /* max-w-7xl */
  --nal-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------- Reset -------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--nal-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--nal-foreground);
  background-color: var(--nal-background);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
h4 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  color: var(--nal-foreground);
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--nal-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ------------------------------- Layout --------------------------------- */
.nal-container {
  max-width: var(--nal-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .nal-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .nal-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
.nal-section {
  padding: 5rem 0;
}
.nal-section--white {
  background: #ffffff;
}
.nal-section--gradient {
  background: linear-gradient(
    135deg,
    var(--nal-background) 0%,
    var(--nal-background) 60%,
    color-mix(in srgb, var(--nal-secondary) 20%, var(--nal-background)) 100%
  );
}
.nal-section__heading {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 1rem;
}
.nal-section__sub {
  text-align: center;
  color: var(--nal-muted-foreground);
  max-width: 42rem;
  margin: 0 auto 3rem;
}

/* ------------------------------- Header --------------------------------- */
.nal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--nal-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.nal-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}
.nal-header__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nal-primary);
  text-decoration: none;
}
.nal-header__brand:hover {
  text-decoration: none;
}
.nal-header__brand img {
  max-height: 2.5rem;
  width: auto;
}
.nal-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nal-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nal-nav a {
  color: var(--nal-foreground);
  transition: color 0.15s ease;
}
.nal-nav a:hover {
  color: var(--nal-primary);
  text-decoration: none;
}
@media (min-width: 768px) {
  .nal-nav {
    display: flex;
  }
  .nal-menu-toggle {
    display: none;
  }
}
.nal-menu-toggle {
  background: none;
  border: 1px solid var(--nal-border);
  border-radius: var(--nal-radius);
  padding: 0.4rem 0.7rem;
  font: inherit;
  color: var(--nal-foreground);
  cursor: pointer;
}
.nal-nav--open {
  display: block;
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--nal-border);
  padding: 1rem 1.5rem;
}
.nal-nav--open ul {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

/* ------------------------------- Buttons -------------------------------- */
.nal-btn {
  display: inline-block;
  background: var(--nal-primary);
  color: var(--nal-primary-foreground);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--nal-radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.nal-btn:hover {
  opacity: 0.9;
  text-decoration: none;
  color: var(--nal-primary-foreground);
}
.nal-btn--nav {
  padding: 0.5rem 1rem;
  font-weight: 500;
}
.nal-btn--full {
  display: block;
  width: 100%;
}
.nal-link-cta {
  font-weight: 600;
  color: var(--nal-primary);
  align-self: center;
}

/* -------------------------------- Hero ---------------------------------- */
.nal-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .nal-hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}
.nal-hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .nal-hero h1 {
    font-size: 3.75rem;
  }
}
.nal-hero__tagline {
  font-size: 1.25rem;
  color: var(--nal-muted-foreground);
}
.nal-hero__lead {
  font-size: 1.125rem;
  color: var(--nal-muted-foreground);
}
.nal-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}
@media (min-width: 640px) {
  .nal-hero__actions {
    flex-direction: row;
    align-items: center;
  }
}
.nal-hero__media {
  display: flex;
  justify-content: center;
}
.nal-hero__media img,
.nal-hero__placeholder {
  width: 100%;
  max-width: 28rem;
  border-radius: var(--nal-radius);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}
.nal-hero__placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--nal-primary) 18%, #ffffff),
    color-mix(in srgb, var(--nal-primary) 55%, #ffffff)
  );
}

/* -------------------------------- About --------------------------------- */
.nal-about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .nal-about__grid {
    grid-template-columns: 1fr 1fr;
  }
}
.nal-about h2 {
  font-size: 2.25rem;
}
.nal-about__body p {
  font-size: 1.125rem;
  color: var(--nal-muted-foreground);
}
.nal-callout {
  background: color-mix(in srgb, var(--nal-secondary) 50%, transparent);
  border: 1px solid var(--nal-border);
  border-radius: var(--nal-radius);
  padding: 1.5rem;
  margin-top: 2rem;
}
.nal-callout h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.nal-callout p {
  color: var(--nal-muted-foreground);
  margin: 0;
}
.nal-about__cards {
  display: grid;
  gap: 1rem;
}
.nal-card {
  border-radius: var(--nal-radius);
  padding: 1.5rem;
}
.nal-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.nal-card p {
  margin: 0;
}
.nal-card--primary {
  background: var(--nal-primary);
  color: var(--nal-primary-foreground);
  border-left: 4px solid var(--nal-primary);
}
.nal-card--primary h3 {
  color: var(--nal-primary-foreground);
}
.nal-card--secondary {
  background: var(--nal-secondary);
  border: 1px solid var(--nal-border);
}
.nal-card--secondary p {
  color: var(--nal-muted-foreground);
}

/* ------------------------------- Services ------------------------------- */
.nal-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .nal-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .nal-services__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.nal-service {
  background: #ffffff;
  border-left: 4px solid var(--nal-primary);
  border-radius: var(--nal-radius);
  padding: 1.5rem;
  transition: box-shadow 0.15s ease;
}
.nal-service:hover {
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}
.nal-service__icon {
  width: 3rem;
  height: 3rem;
  background: color-mix(in srgb, var(--nal-primary) 20%, transparent);
  color: var(--nal-primary);
  border-radius: var(--nal-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.nal-service h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.nal-service p {
  color: var(--nal-muted-foreground);
  margin: 0;
}

/* --------------------------------- FAQ ---------------------------------- */
.nal-faq {
  max-width: 48rem;
  margin: 0 auto;
}
.nal-faq details {
  border: 1px solid var(--nal-border);
  border-radius: var(--nal-radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #ffffff;
}
.nal-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  font-weight: 500;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}
.nal-faq summary::-webkit-details-marker {
  display: none;
}
.nal-faq summary:hover {
  background: color-mix(in srgb, var(--nal-secondary) 30%, transparent);
}
.nal-faq summary svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  transition: transform 0.15s ease;
}
.nal-faq details[open] summary svg {
  transform: rotate(180deg);
}
.nal-faq details p {
  padding: 0.5rem 1.5rem 1rem;
  margin: 0;
  color: var(--nal-muted-foreground);
}

/* ------------------------------- Contact -------------------------------- */
.nal-contact {
  max-width: 48rem;
  margin: 0 auto;
}
.nal-contact__panel {
  background: #ffffff;
  border: 1px solid var(--nal-border);
  border-radius: var(--nal-radius);
  padding: 2rem;
}
.nal-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.nal-form input,
.nal-form textarea {
  width: 100%;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--nal-border);
  border-radius: var(--nal-radius);
  font: inherit;
  color: inherit;
  background: #fff;
}
.nal-form input:focus,
.nal-form textarea:focus {
  outline: 2px solid var(--nal-primary);
  outline-offset: 0;
  border-color: transparent;
}
.nal-form textarea {
  resize: none;
}
.nal-notice {
  border-radius: var(--nal-radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid;
}
.nal-notice--success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}
.nal-notice--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.nal-notice p {
  margin: 0;
}
.nal-contact__meta {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--nal-border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .nal-contact__meta {
    grid-template-columns: 1fr 1fr;
  }
}
.nal-contact__meta h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.nal-contact__meta p {
  color: var(--nal-muted-foreground);
  margin: 0;
}
.nal-honeypot {
  position: absolute !important;
  left: -9999px !important;
}

/* -------------------------------- Footer -------------------------------- */
.nal-footer {
  background: var(--nal-secondary);
  color: var(--nal-secondary-foreground);
  border-top: 1px solid var(--nal-border);
  margin-top: 5rem;
}
.nal-footer__inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.nal-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .nal-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.nal-footer h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.nal-footer h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}
.nal-footer p,
.nal-footer li {
  font-size: 0.875rem;
}
.nal-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nal-footer li {
  margin-bottom: 0.5rem;
}
.nal-footer a {
  color: inherit;
  transition: color 0.15s ease;
}
.nal-footer a:hover {
  color: var(--nal-primary);
  text-decoration: none;
}
.nal-footer__bar {
  border-top: 1px solid var(--nal-border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .nal-footer__bar {
    flex-direction: row;
    justify-content: space-between;
  }
}
.nal-footer__bar p {
  font-size: 0.875rem;
  margin: 0;
}

/* ------------------------- Blog / inner pages --------------------------- */
.nal-content {
  padding: 4rem 0;
}
.nal-content article {
  background: #fff;
  border: 1px solid var(--nal-border);
  border-radius: var(--nal-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.nal-content .entry-title a {
  color: var(--nal-foreground);
}
.nal-content .entry-title a:hover {
  color: var(--nal-primary);
  text-decoration: none;
}
.nal-content .entry-meta {
  color: var(--nal-muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* --------------------------- Accessibility ------------------------------ */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute !important;
}
