/* ---------------------------------------------------------
   Norton Writing & Digital Marketing — main stylesheet
   Palette: deep forest green / warm brass / light neutral grey
--------------------------------------------------------- */

:root {
  --forest-900: #14261f;
  --forest-800: #1b3a2f;
  --forest-700: #234a3c;
  --forest-500: #2f6b4f;
  --forest-400: #3f8465;

  --brass-500: #c9a55c;
  --brass-400: #d9bd83;

  --grey-100: #f4f5f3;
  --grey-200: #eceee9;
  --grey-300: #dfe2dc;

  --ink-900: #171a18;
  --ink-700: #3a3f3b;
  --ink-500: #62685f;

  --white: #ffffff;

  --font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-soft: 0 20px 45px -25px rgba(20, 38, 31, 0.35);
  --shadow-card: 0 10px 30px -18px rgba(20, 38, 31, 0.25);

  --wrap: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--grey-100);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--forest-900);
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest-800);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--brass-500);
  outline-offset: 2px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-500);
  margin: 0 0 0.9em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--forest-800);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--forest-700);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -20px rgba(20, 38, 31, 0.5);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1rem;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--forest-800);
  border-color: var(--forest-800);
}

.btn-outline:hover {
  background: var(--forest-800);
  color: var(--white);
  transform: translateY(-2px);
}

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

.site-header {
  background: var(--forest-800);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(20, 38, 31, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.94rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.primary-nav .nav-cta {
  background: var(--brass-500);
  color: var(--forest-900);
  font-weight: 600;
}

.primary-nav .nav-cta:hover {
  background: var(--brass-400);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: transform 0.2s ease;
}

.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 0;
}

.burger::before {
  top: -8px;
}

.burger::after {
  top: 8px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest-900);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  mix-blend-mode: luminosity;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(201, 165, 92, 0.35), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(63, 132, 101, 0.55), transparent 65%),
    linear-gradient(160deg, rgba(20, 38, 31, 0.92), rgba(20, 38, 31, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 128px 24px 108px;
  max-width: 780px;
}

.hero .eyebrow {
  color: var(--brass-400);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  margin-bottom: 0.4em;
}

.hero-lede {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  max-width: 640px;
}

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

/* ---------------------------------------------------------
   Section heads
--------------------------------------------------------- */

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head.light h2,
.section-head.light .section-lede {
  color: var(--white);
}

.section-lede {
  color: var(--ink-500);
  font-size: 1.02rem;
}

/* ---------------------------------------------------------
   Services
--------------------------------------------------------- */

.services {
  padding: 96px 0;
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--grey-300);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -22px rgba(20, 38, 31, 0.32);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--forest-500), var(--forest-800));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3em;
}

.service-tag {
  color: var(--forest-500);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.9em;
}

.service-card p {
  color: var(--ink-700);
}

.service-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grey-200);
  color: var(--forest-800);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---------------------------------------------------------
   About strip
--------------------------------------------------------- */

.about-strip {
  background: var(--grey-200);
  padding: 88px 0;
  position: relative;
}

.about-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text {
  max-width: 660px;
}

.about-text p {
  color: var(--ink-700);
}

.about-link {
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   Testimonials
--------------------------------------------------------- */

.testimonials {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--forest-900);
}

.testimonials-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.testimonials-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(150deg, rgba(20, 38, 31, 0.94), rgba(35, 74, 60, 0.88));
}

.testimonials .wrap {
  position: relative;
  z-index: 2;
}

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

.testimonial-card {
  margin: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  backdrop-filter: blur(6px);
}

.testimonial-card p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.5;
}

.testimonial-card footer {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--brass-400);
}

.testimonial-card footer span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

/* ---------------------------------------------------------
   Blog
--------------------------------------------------------- */

.blog-section {
  padding: 96px 0;
}

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

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--grey-300);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.blog-date {
  color: var(--forest-500);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5em;
}

.blog-card h3 a:hover {
  color: var(--forest-500);
}

.blog-card p {
  color: var(--ink-500);
  font-size: 0.95rem;
}

.blog-more {
  font-weight: 600;
  color: var(--forest-700);
  font-size: 0.92rem;
}

.blog-more:hover {
  color: var(--forest-500);
}

/* ---------------------------------------------------------
   CTA section
--------------------------------------------------------- */

.cta-section {
  background: var(--forest-800);
  background-image:
    radial-gradient(45% 80% at 90% 10%, rgba(201, 165, 92, 0.25), transparent 60%),
    radial-gradient(45% 80% at 5% 100%, rgba(63, 132, 101, 0.5), transparent 60%);
  padding: 88px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-text h2 {
  color: var(--white);
  max-width: 460px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 460px;
}

.cta-actions {
  text-align: center;
}

.cta-actions .btn-primary {
  background: var(--brass-500);
  color: var(--forest-900);
}

.cta-actions .btn-primary:hover {
  background: var(--brass-400);
}

.cta-phone {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.cta-phone a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.site-footer {
  background: var(--forest-900);
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 72px 24px 48px;
}

.footer-logo {
  height: 34px;
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  max-width: 300px;
}

.footer-col h6 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--brass-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

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

@media (max-width: 960px) {
  .service-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest-800);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .primary-nav.is-open {
    max-height: 480px;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 20px;
    gap: 2px;
  }

  .primary-nav a {
    padding: 12px 14px;
  }

  .primary-nav .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .hero-inner {
    padding: 92px 20px 72px;
  }

  .service-grid,
  .blog-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .about-inner,
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 56px 24px 36px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .services,
  .blog-section,
  .about-strip,
  .testimonials,
  .cta-section {
    padding: 64px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
