/* ============================================================
   Hill Dogs Consulting — www.hilldogs.net
   Main stylesheet
   Colors:  --navy  #1a2b6d  (header/footer/banner)
            --red   #c8372d  (CTAs, active nav, submit)
            --bg    #ebebeb  (page background)
   Font:    Spinnaker (headings, nav), sans-serif (body)
   Width:   980px max-width content
   ============================================================ */

/* --- Reset & base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2b6d;
  --red:  #c8372d;
  --bg:   #ebebeb;
  --white: #ffffff;
  --text:  #2d2d2d;
  --max-w: 980px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* --- Typography -------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Spinnaker&display=swap');

h1, h2, h3 {
  font-family: 'Spinnaker', 'Helvetica Neue', Arial, sans-serif;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.3;
}

/* --- Layout helpers ---------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: var(--white);
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 100px;
  width: auto;
  padding: 5px 0;
}

/* --- Primary navigation ------------------------------------ */
nav {
  display: flex;
  align-items: center;
  gap: 48px;
  align-self: flex-end;
  padding-bottom: 5px;
}

nav > a,
nav > .dropdown > a {
  font-family: 'Spinnaker', 'Helvetica Neue', Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

nav > a:hover,
nav > .dropdown > a:hover,
nav > a.active,
nav > .dropdown > a.active { color: var(--red); }

/* --- Services dropdown ------------------------------------- */
.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid #ddd;
  border-top: 3px solid var(--navy);
  min-width: 240px;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover { display: block; }

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--navy);
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s, color 0.1s;
}

.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--bg); color: var(--red); }

/* --- Mobile nav toggle ------------------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.2s;
}

/* ============================================================
   PAGE BANNER  (navy bar below header — all pages except home)
   ============================================================ */
.page-banner {
  background: var(--navy);
  height: 130px;
  width: 100%;
}

/* ============================================================
   CONTENT CARD  (white box used on service + about + privacy)
   ============================================================ */
.content-card {
  background: var(--white);
  max-width: 800px;
  margin: -60px auto 0;
  position: relative;
  z-index: 10;
  padding: 48px 56px 56px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.content-card h1 {
  font-size: 2rem;
  margin-bottom: 32px;
}

.content-body {
  border-left: 3px solid var(--navy);
  padding-left: 32px;
}

.content-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 24px;
}

.content-body ul {
  margin-bottom: 24px;
}

.content-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.8;
}

.content-body ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--navy);
}

.cta-link {
  display: inline-block;
  color: var(--red);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-top: 8px;
  transition: opacity 0.15s;
}
.cta-link:hover { opacity: 0.75; }

/* Page content wrapper (sets bg and min-height) */
.page-content {
  background: var(--bg);
  min-height: 400px;
  padding-bottom: 64px;
}

/* ============================================================
   HOME PAGE — HERO
   ============================================================ */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0; right: 0;
  width: 42%;
  height: 100%;
  background: rgba(255,255,255,0.88);
  display: flex;
  align-items: center;
}

.hero-text {
  padding: 32px 40px;
}

.hero-text h1 {
  font-size: 2.1rem;
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

/* ============================================================
   HOME PAGE — PRACTICE AREAS
   ============================================================ */
.practice-areas {
  background: var(--white);
  padding: 56px 24px;
}

.practice-areas h2 {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.services-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-tile {
  text-align: center;
}

.service-tile a {
  display: block;
  color: var(--navy);
  transition: opacity 0.15s;
}
.service-tile a:hover { opacity: 0.8; }

.service-tile img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 12px;
}

.service-tile span {
  font-family: 'Spinnaker', 'Helvetica Neue', Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  display: block;
}

/* ============================================================
   HOME PAGE — CONTACT FORM
   ============================================================ */
.contact-section {
  background: var(--navy);
  padding: 64px 24px;
}

.contact-inner {
  max-width: 540px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px 40px;
}

.contact-inner h2 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 28px;
  text-align: center;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
}

.form-group label .req { color: var(--red); }

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--navy); }

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

.btn-submit {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--red);
  color: var(--white);
  font-family: 'Spinnaker', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}
.btn-submit:hover    { background: #a82b22; }
.btn-submit:disabled { background: #999; cursor: not-allowed; }

#form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}
#form-status:not(:empty) { display: block; }
.form-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.form-error   { background: #ffebee; color: #b71c1c; border: 1px solid #ef9a9a; }

/* ============================================================
   ABOUT PAGE — HERO PHOTO BANNER
   ============================================================ */
.about-banner {
  height: 260px;
  overflow: hidden;
}

.about-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.about-content {
  background: var(--white);
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 56px 72px;
}

.about-content h1 {
  font-size: 2rem;
  margin-bottom: 32px;
}

.about-content p,
.about-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.about-content ul {
  margin-bottom: 20px;
  padding-left: 0;
}

.about-content ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 12px;
}

.about-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--navy);
}

.about-content strong { color: var(--navy); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  padding: 14px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}


.social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.social-icons a:hover { color: var(--white); }

.social-icons svg { width: 20px; height: 20px; fill: currentColor; }

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-link {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.footer-link:hover { color: var(--white); }

.scroll-top {
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
  cursor: pointer;
  background: none;
  border: none;
}
.scroll-top:hover { opacity: 1; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Service page titles */
.content-card h1 {
  animation: slideInLeft 0.55s ease-out both;
}

/* Home hero overlay (Option B: subtle 60px travel) */
.hero-overlay {
  animation: slideInLeft 0.65s ease-out both;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .content-card h1,
  .hero-overlay { animation: none; }
}

/* ============================================================
   RESPONSIVE  (≤ 700px)
   ============================================================ */
@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: 2px solid var(--navy);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 8px 0;
    z-index: 99;
  }

  nav.open { display: flex; }

  nav > a,
  nav > .dropdown > a {
    display: block;
    width: 100%;
    padding: 12px 24px;
    border-bottom: 1px solid #eee;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-top: none;
    background: var(--bg);
    display: none;
  }

  .dropdown.open .dropdown-menu { display: block; }

  .hero-overlay { width: 100%; background: rgba(255,255,255,0.82); }
  .hero { height: auto; }
  .hero-img { height: 220px; }
  .hero-overlay { position: relative; width: 100%; height: auto; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .content-card { margin: 0; padding: 32px 20px; box-shadow: none; }
  .content-body { padding-left: 16px; }
  .about-content { padding: 32px 20px; }
  .contact-inner { padding: 32px 20px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
