/* Denny Business Inc. — brand from client document */
:root {
  --color-primary: #0b2c4d;
  --color-secondary: #2e2e2e;
  --color-accent: #c9a24d;
  --color-bg: #ffffff;
  --color-muted: #5c6670;
  --color-line: #e8ecf0;
  --font-heading: "Merriweather", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow-soft: 0 12px 40px rgba(11, 44, 77, 0.08);
  --radius: 8px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-secondary);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.top-bar {
  background: var(--color-primary);
  color: #e8eef5;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.top-bar a {
  color: #fff;
}

.top-bar a:hover {
  color: var(--color-accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-primary);
}

.nav-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.nav-main a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-secondary);
}

.nav-main a:hover,
.nav-main li.is-active > a {
  color: var(--color-primary);
}

.nav-main .has-sub {
  position: relative;
}

.nav-main .has-sub > a::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.7;
}

.nav-main .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 0.5rem 0;
  margin-top: 0.35rem;
}

.nav-main .has-sub:hover .submenu,
.nav-main .has-sub:focus-within .submenu {
  display: block;
}

.nav-main .submenu a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.nav-main .submenu a:hover {
  background: #f6f8fb;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: #b8923f;
  border-color: #b8923f;
  color: var(--color-primary);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.hero {
  position: relative;
  background: #0b2c4d;
  color: #f0f4f8;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  overflow: hidden;
  min-height: min(72vh, 720px);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/hero-banner.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 44, 77, 0.96) 0%,
    rgba(11, 44, 77, 0.88) 38%,
    rgba(11, 44, 77, 0.5) 68%,
    rgba(11, 44, 77, 0.28) 100%
  );
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 899px) {
  .hero {
    min-height: 0;
  }

  .hero::before {
    background-position: center center;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(11, 44, 77, 0.92) 0%,
      rgba(11, 44, 77, 0.82) 45%,
      rgba(11, 44, 77, 0.65) 100%
    );
  }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

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

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.hero .btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.75rem;
  backdrop-filter: blur(6px);
}

.hero-card h3 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-accent);
  line-height: 1.2;
}

.stat span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: #f6f8fb;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.eyebrow,
.section-head .eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--color-muted);
  margin: 0;
}

.grid-2 {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--color-accent);
  border-radius: 2px;
  background: rgba(201, 162, 77, 0.15);
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cards.services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 4px 20px rgba(11, 44, 77, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-soft);
  border-color: rgba(201, 162, 77, 0.35);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(11, 44, 77, 0.08), rgba(201, 162, 77, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.card .read-more {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.card .read-more:hover {
  color: var(--color-accent);
}

.why-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.why-item .num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-band {
  background: var(--color-primary);
  color: #e8eef5;
  padding: 3rem 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-band p {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  opacity: 0.92;
}

.site-footer {
  background: #071a2b;
  color: #a8b4c4;
  padding: 3rem 0 1.5rem;
  font-size: 0.875rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer a {
  color: #c5d0dd;
}

.site-footer a:hover {
  color: var(--color-accent);
}

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

.site-footer li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
}

.page-hero {
  background: linear-gradient(120deg, #f6f8fb 0%, #fff 100%);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--color-line);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero .breadcrumb {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.content-narrow {
  max-width: 760px;
}

.content-narrow h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.contact-card {
  background: #f6f8fb;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 1.75rem;
}

.contact-card dl {
  margin: 0;
}

.contact-card dt {
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-top: 1rem;
}

.contact-card dt:first-child {
  margin-top: 0;
}

.contact-card dd {
  margin: 0.25rem 0 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    width: 100%;
    padding: 1rem 0 0;
  }

  .nav-main.is-open {
    display: block;
  }

  .nav-main ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-main li {
    border-bottom: 1px solid var(--color-line);
  }

  .nav-main a {
    display: block;
    padding: 0.65rem 0;
  }

  .nav-main .has-sub .submenu {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0.5rem 1rem;
    margin: 0;
  }

  .nav-main .has-sub.is-open .submenu {
    display: block;
  }

  .nav-main .has-sub > a::after {
    content: "";
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-inner .btn {
    display: none;
  }
}

/* Scroll-in animations (index.html — requires js/scroll-reveal.js + html.js-reveal) */
html.js-reveal .reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js-reveal .reveal-on-scroll.is-in {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

html.js-reveal .reveal-on-scroll.reveal-left {
  transform: translateX(-32px);
}

html.js-reveal .reveal-on-scroll.reveal-left.is-in {
  transform: translateX(0);
}

html.js-reveal .reveal-on-scroll.reveal-right {
  transform: translateX(32px);
}

html.js-reveal .reveal-on-scroll.reveal-right.is-in {
  transform: translateX(0);
}

html.js-reveal .reveal-on-scroll.reveal-fade {
  transform: none;
}

html.js-reveal .reveal-on-scroll.reveal-scale {
  transform: scale(0.96);
}

html.js-reveal .reveal-on-scroll.reveal-scale.is-in {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal-on-scroll,
  html.js-reveal .reveal-on-scroll.is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}
