/* ============================================================
   SHARED STYLES — The Davis Group
   Covers: base, layout helpers, header, social bar,
   network/contact form, footer, mobile nav.
   Each page keeps only its own page-specific CSS.
============================================================ */

/* =============================================
   FONT
============================================= */
@font-face {
  font-family: 'DidotLTStd-Headline-1';
  src: url('../fonts/DidotLTStd-Headline-1.woff2') format('woff2'),
       url('../fonts/DidotLTStd-Headline-1.woff')  format('woff'),
       url('../fonts/DidotLTStd-Headline-1.ttf')   format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =============================================
   CUSTOM PROPERTIES
============================================= */
:root {
  --dark:       #292b33;
  --darker:     #1e2028;
  --accent:     #c2766a;
  --white:      #ffffff;
  --gray:       #616471;
  --light:      #f7f7f7;
  --border:     rgba(71, 75, 89, 0.3);
  --font-serif: 'DidotLTStd-Headline-1', Georgia, serif;
  --font-sans:  'Mulish', sans-serif;
  --font-nav:   'Montserrat', sans-serif;
  --ease:       0.3s ease;
  --max-w:      1240px;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevent horizontal scroll globally */
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 2;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

p, li, .nbhd-highlight-desc, .nbhd-about-text, .nbhd-intro-text {
  text-wrap: pretty;
}

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

a { text-decoration: none; color: inherit; transition: color var(--ease); }

/* =============================================
   LAYOUT HELPERS
============================================= */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-family: var(--font-nav);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  line-height: 1.15;
}

.section-rule {
  width: 36px;
  height: 1px;
  background: var(--accent);
  margin: 18px auto 0;
}
.section-rule.left { margin-left: 0; }

.section-sub {
  font-family: var(--font-nav);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 16px;
}

/* Ornamental heading — thin lines on both sides of title */
.ornament-heading {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ornament-heading::before,
.ornament-heading::after {
  content: '';
  flex: 1;
  height: 1px;
}
.ornament-heading span {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  letter-spacing: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ornament-heading.orn-light { justify-content: center; }
.ornament-heading.orn-light::before,
.ornament-heading.orn-light::after {
  background: rgba(41,43,51,0.35);
  flex: 0 0 90px;
}
.ornament-heading.orn-light span {
  color: #626470;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 3.3px;
}
.ornament-heading.orn-dark { justify-content: center; }
.ornament-heading.orn-dark::before,
.ornament-heading.orn-dark::after {
  background: rgba(255,255,255,0.35);
  flex: 0 0 90px;
}
.ornament-heading.orn-dark span {
  color: var(--white);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 3.3px;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Outline button */
.outline-btn {
  font-family: var(--font-nav);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid var(--dark);
  padding: 13px 50px;
  color: var(--dark);
  display: inline-block;
  transition: background var(--ease), color var(--ease);
}
.outline-btn:hover { background: var(--dark); color: var(--white); }
.outline-btn.light {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.outline-btn.light:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* =============================================
   HEADER
============================================= */
#site-header {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 22px 40px;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-group {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-group a {
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3.3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.nav-group a:hover { color: var(--accent); opacity: 1; }

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.header-logo img { height: 110px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 20px;
  position: relative;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 4px;
  width: 24px;
  height: 2px;
  background: var(--white);
  transform-origin: center;
  transition: top 0.3s ease, transform 0.35s ease;
}
.nav-toggle span:first-child { top: 5px;  transform: none; }
.nav-toggle span:last-child  { top: 13px; transform: none; }
.nav-toggle.open span:first-child { top: 9px; transform: rotate(45deg); }
.nav-toggle.open span:last-child  { top: 9px; transform: rotate(-45deg); }

/* =============================================
   SOCIAL BAR
============================================= */
.social-bar {
  background: var(--white);
  height: 114px;
  display: flex;
  align-items: center;
  padding: 0 40px;
}
.social-bar-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.social-bar-line {
  flex: 0 0 90px;
  height: 1px;
  background: rgba(41,43,51,0.35);
}
.social-bar-icons {
  display: flex;
  gap: 26px;
  align-items: center;
}
.social-bar-icon {
  color: var(--dark);
  transition: opacity var(--ease);
  display: flex;
  align-items: center;
}
.social-bar-icon:hover { opacity: 0.6; }
.social-bar-icon svg { width: 29px; height: 29px; display: block; }
.social-bar-icon[aria-label="LinkedIn"] svg { width: 33px; height: 33px; }

/* =============================================
   JOIN OUR NETWORK / CONTACT FORM
============================================= */
.network {
  background: var(--dark);
  padding: 104px 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.network::after {
  content: 'CONTACT';
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: var(--font-serif);
  font-size: clamp(80px, 13vw, 190px);
  font-weight: 400;
  color: #1B1C21;
  text-transform: uppercase;
  letter-spacing: 8px;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
  z-index: 0;
}
.network-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.network-copy .section-title { color: var(--white); }
.network-text {
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 300;
  color: #ffffff;
  line-height: 34px;
  letter-spacing: 0.8px;
}

.contact-form { display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-field { margin-bottom: 40px; }
.form-field label {
  display: block;
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgb(150,150,150);
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 18px;
  color: #ffffff;
  outline: none;
  transition: border-color var(--ease);
}
.form-field input:focus,
.form-field textarea:focus { border-bottom-color: rgba(255,255,255,0.85); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #A5A7B1; }
.form-field textarea { resize: none; height: 110px; }
.form-submit {
  font-family: var(--font-nav);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  background: #292B32;
  border: 1px solid rgb(168,168,168);
  padding: 13px 60px;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 10px;
  position: relative;
  z-index: 1;
  transition: background var(--ease), border-color var(--ease);
}
.form-submit:hover { background: var(--darker); border-color: rgb(200,200,200); }

/* Form confirmation message */
.form-confirmation {
  opacity: 0;
  transition: opacity 0.7s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px;
}
.form-confirmation.visible { opacity: 1; }
.form-confirm-check {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 28px;
  flex-shrink: 0;
}
.form-confirm-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.form-confirm-text {
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.65);
  line-height: 2.1;
  max-width: 420px;
}

/* =============================================
   FOOTER
============================================= */
footer { background: transparent; }

.footer-dark {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 80px 0 56px;
}
.footer-logo-area {
  text-align: center;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}
.footer-logo-area img {
  height: 147px;
  width: auto;
  opacity: 0.85;
  margin: 0 auto;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
}
.footer-left { display: flex; flex-direction: column; }
.footer-small-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}
.footer-dir-label {
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer-address {
  font-family: var(--font-nav);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2.9px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
  line-height: 1.7;
}
.footer-disclaimer { font-size: 11px; line-height: 1.9; margin-bottom: 20px; }
.footer-dre {
  font-family: var(--font-nav);
  font-size: 10px;
  letter-spacing: 0.5px;
  line-height: 2;
  color: rgba(255,255,255,0.38);
}
.footer-legal { font-size: 11px; line-height: 1.9; }
.footer-phone {
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.footer-email-link {
  font-family: var(--font-nav);
  font-size: 14px;
  letter-spacing: 0.3px;
  color: var(--white);
  margin-bottom: 24px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.footer-nav a {
  font-family: var(--font-nav);
  font-size: 14px;
  letter-spacing: 0.3px;
  color: var(--white);
  transition: color var(--ease);
}
.footer-nav a:hover { color: var(--accent); }
.footer-attr {
  font-family: var(--font-nav);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}
.footer-badges img { height: 34px; width: auto; opacity: 0.5; }

/* =============================================
   MOBILE NAV OVERLAY
============================================= */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 205;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-hero {
  position: relative;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}
.mobile-nav-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.mobile-nav-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-logo img { height: 92px; width: auto; }
.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  font-size: 22px;
  font-weight: 300;
  font-family: var(--font-sans);
  letter-spacing: 0;
}
.mobile-nav-links {
  background: var(--white);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 8px 0 24px;
}
.mobile-nav-links a {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--dark);
  padding: 22px 24px;
  transition: background var(--ease), color var(--ease);
}
.mobile-nav-links a:hover { color: var(--accent); }
.mobile-nav-links a.active {
  background: var(--dark);
  color: var(--white);
}

/* =============================================
   HERO SCROLL-DOWN CHEVRON
   Shared across all page heroes.
============================================= */
.hero-scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
  opacity: 0.7;
  animation: bounce-down 2.2s ease-in-out infinite;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}
.hero-scroll-down:hover { opacity: 1; }
.hero-scroll-down svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* =============================================
   HERO TOP VIGNETTE
   Sits above the photo overlay (z-index 1) but
   below all foreground content (z-index 5+).
============================================= */
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.10) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* =============================================
   SHARED RESPONSIVE RULES
============================================= */
@media (max-width: 1024px) {
  .nav-group    { visibility: hidden; pointer-events: none; }
  .nav-toggle   { display: flex; position: absolute; top: 62px; right: 40px; z-index: 210; margin-left: 0; }
  .network-inner { grid-template-columns: 1fr; gap: 52px; }
  .footer-cols  { grid-template-columns: 1fr 1fr; }
  .mobile-nav   { display: flex; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  #site-header { top: 0; padding: 16px 20px; }
  .header-logo img { height: 92px; width: auto; max-width: none; }
  .nav-toggle { top: 42px; right: 20px; }
  .ornament-heading.orn-light span,
  .ornament-heading.orn-dark span { font-size: 27px; }
  .social-bar { height: 90px; padding: 0 20px; }
  .footer-logo-area img  { height: 108px; }
  .footer-logo-area      { border-bottom: none; padding-bottom: 32px; }
  .footer-cols           { grid-template-columns: 1fr; gap: 36px; }
  .footer-dark           { padding: 56px 0 40px; }
}


@media (max-width: 480px) {
  .page-hero-title { font-size: 34px; letter-spacing: 2px; }
}

@media (max-width: 480px) {
  .footer-small-cols { grid-template-columns: 1fr; gap: 20px; }
}
