/* Edison Properties — Homepage (XD: 1920×1080 viewport, 1920×1654 artboard) */

:root {
  --teal: #005169;
  --green: #518028;
  --body-gray: #6e6e72;
  --nav-gray: #737378;
  --white: #ffffff;
  --black: #000000;
  --nav-shadow: 0 3px 6px #00000029;
  /* Same families as edisonproperties.com (see fonts.css) */
  --font-titling: "Neutra Display Titling", sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
  /*
   * Desktop width: match edisonproperties.com-style layout — modest side padding, wide hero/body.
   * (Old XD used 416px gutters + 1088px column; live site reads much wider.)
   */
  --content-band-max: 1680px;
  --gutter: clamp(24px, 4vw, 72px);
  --column: min(var(--content-band-max), calc(100vw - 2 * var(--gutter)));
  --content-text: var(--column);

  /* XD character styles (px / line spacing) */
  /* Green links — XD: bold 15px/20px, #518028, underline, letter-spacing 0 */
  --type-link: normal normal bold 15px/20px Roboto, sans-serif;
  --type-body: normal normal normal 15px/20px var(--font-body);
  --type-heading: normal normal normal 22px/26px var(--font-titling);
  --type-hero: normal normal normal 42px/50px var(--font-titling);
  --type-footer: normal normal normal 14px/45px Roboto, sans-serif;
  --type-footer-link: normal normal bold 14px/45px Roboto, sans-serif;
  /* Copyright line — XD: 159×19, right, 14/45 Roboto, #FFF */
  --type-footer-copy: normal normal normal 14px/45px Roboto, sans-serif;
  /* Nav: Roboto Regular 14px/19px, #737378, uppercase — XD */
  --type-nav: normal normal normal 14px/19px Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--body-gray);
  background: var(--white);
}

body.contact-page {
  background: #f4f4f4 0% 0% no-repeat padding-box;
}

.contact-page .page {
  background: #f4f4f4 0% 0% no-repeat padding-box;
}

/* nav-bar: full viewport width (no max-width “card” edges) */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 100px;
  background: var(--white) 0% 0% no-repeat padding-box;
  box-shadow: var(--nav-shadow);
}

/* Same horizontal band as hero + main content (var(--column), centered) */
.nav-bar__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding: 33px 0 0;
  box-sizing: border-box;
}

/* Logo: official PNG (same asset as edisonproperties.com) — XD frame 398×34 */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 398px;
  object-fit: contain;
  object-position: left center;
}

/* Nav: About 66×19 @ 1298, Contact 84×19 @ 1420 → gap 56px; top 41px */
.nav-primary {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-top: 8px;
}

.nav-primary a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: var(--type-nav);
  letter-spacing: 0;
  color: var(--nav-gray);
  text-transform: uppercase;
  text-decoration: none;
  opacity: 1;
  height: 19px;
  line-height: 19px;
}

.nav-primary a:first-child {
  min-width: 66px;
}

.nav-primary a:last-child {
  width: 84px;
}

.nav-primary a:hover {
  opacity: 0.85;
}

/* Mobile menu button — hidden on desktop (shown ≤768px) */
.nav-toggle {
  display: none;
}

/* Hero band matches header/footer width (frame uses var(--column); no extra horizontal padding) */
.hero {
  width: 100%;
  margin: 0 auto;
  padding: 32px 0 0;
}

.hero__frame {
  position: relative;
  width: 100%;
  max-width: var(--column);
  height: 708px;
  margin-left: auto;
  margin-right: auto;
  background: #1a1a1a;
  overflow: hidden;
}

/* Desktop/laptop: cap hero by viewport so content appears sooner below the fold. */
@media (min-width: 769px) {
  .hero__frame {
    height: clamp(440px, 62vh, 708px);
  }
}

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

/* Neutraface Display Titling 42px — #FFFFFF, line 50, uppercase, letter-spacing 0 */
.hero__tagline {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  max-width: 22ch;
  padding: 48px 40px;
  font: var(--type-hero);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* content: full width section; text column capped in .content__inner — no min-height so footer can sit under links */
.content {
  width: 100%;
  margin: 0 auto;
  padding: 24px 0 0;
}

.content__inner {
  width: 100%;
  max-width: var(--content-text);
  margin-left: auto;
  margin-right: auto;
}

/* Neutraface Display Titling 22px — #005169, line 26, letter-spacing 0 */
.section-heading {
  margin: 0 0 8px;
  text-align: left;
  font: var(--type-heading);
  letter-spacing: 0;
  color: var(--teal);
  text-transform: none;
}

/* Roboto Regular 15px — #6E6E72, line 20, letter-spacing 0 */
.content p {
  margin: 0 0 24px;
  text-align: left;
  font: var(--type-body);
  letter-spacing: 0;
  color: var(--body-gray);
}

.content p:last-of-type {
  margin-bottom: 0;
}

.section-block + .section-block {
  margin-top: 32px;
}

/* Privacy Policy — tables from Word export */
.privacy-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 24px;
}

.privacy-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  margin: 0;
  font: var(--type-body);
  color: var(--body-gray);
}

.privacy-table th,
.privacy-table td {
  border: 1px solid #d8d8dc;
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
}

.privacy-table th {
  background: #f2f5f6;
  font-weight: 700;
  color: var(--teal);
}

.privacy-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
  font: var(--type-heading);
}

.content .privacy-list {
  list-style: disc;
  margin: 0 0 24px;
  padding-left: 1.25em;
  font: var(--type-body);
  color: var(--body-gray);
}

.content .privacy-list li {
  margin: 0 0 8px;
}

/* Green property links — XD UI (e.g. first line 117×20 @ 417, 1356): Roboto Bold 15/20, #518028 */
.link-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.link-list li {
  margin: 0 0 12px;
}

.link-list li:last-child {
  margin-bottom: 0;
}

.link-list a {
  display: inline-block;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  font: var(--type-link);
  letter-spacing: 0;
  color: #518028;
  opacity: 1;
  line-height: 20px;
  min-height: 20px;
}

.link-list a:hover {
  color: #3f6a22;
  text-decoration: underline;
  opacity: 1;
}

/* Contact page — XD form 812×800 */
.content--contact {
  background: #f4f4f4 0% 0% no-repeat padding-box;
}

.content--contact .content__inner {
  max-width: 812px;
}

.contact-form {
  width: 100%;
  max-width: 812px;
  min-height: 800px;
  margin: 0 auto;
  box-sizing: border-box;
  opacity: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.contact-form__field label {
  display: block;
  width: 100%;
  max-width: 812px;
  min-height: 24px;
  margin: 0 0 8px;
  text-align: left;
  font: normal normal bold 18px/24px Roboto, sans-serif;
  letter-spacing: 0;
  color: #005169;
  opacity: 1;
}

.contact-form__control {
  position: relative;
  width: 100%;
  max-width: 811px;
}

.contact-form__control input[type="text"],
.contact-form__control input[type="email"],
.contact-form__control textarea {
  width: 100%;
  max-width: 811px;
  box-sizing: border-box;
  font: normal normal normal 15px/20px Roboto, sans-serif;
  color: var(--body-gray);
  background: #ffffff 0% 0% no-repeat padding-box;
  border: 1px solid #737378;
  border-radius: 5px;
  opacity: 1;
}

.contact-form__control input[type="text"],
.contact-form__control input[type="email"] {
  height: 67px;
  padding: 0 16px;
}

.contact-form__control textarea {
  min-height: 320px;
  padding: 16px;
  resize: vertical;
  line-height: 20px;
}

.contact-form__error {
  display: none;
  position: absolute;
  left: 16px;
  z-index: 1;
  max-width: calc(100% - 32px);
  font: normal normal normal 16px/21px Roboto, sans-serif;
  letter-spacing: 0;
  color: #c20000;
  opacity: 1;
  text-align: left;
  pointer-events: none;
}

.contact-form__control:not(.contact-form__control--textarea) .contact-form__error {
  top: 50%;
  transform: translateY(-50%);
}

.contact-form__control--textarea .contact-form__error {
  top: 16px;
  transform: none;
}

.contact-form__field--error .contact-form__control input[type="text"],
.contact-form__field--error .contact-form__control input[type="email"],
.contact-form__field--error .contact-form__control textarea {
  background: #ffffff 0% 0% no-repeat padding-box;
  border: 3px solid #c20000;
  border-radius: 5px;
  opacity: 1;
}

.contact-form__field--error .contact-form__error {
  display: block;
}

.contact-form__control input:focus,
.contact-form__control textarea:focus {
  outline: 2px solid rgba(0, 81, 105, 0.35);
  outline-offset: 1px;
}

.contact-form__field--error .contact-form__control input:focus,
.contact-form__field--error .contact-form__control textarea:focus {
  outline: 2px solid rgba(194, 0, 0, 0.45);
  outline-offset: 1px;
}

.contact-form__turnstile {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
}

.contact-form__actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 2%;
}

.contact-form__submit {
  box-sizing: border-box;
  width: 208px;
  height: 53px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: #007da3 0% 0% no-repeat padding-box;
  text-align: center;
  font: normal normal bold 21px/21px Roboto, sans-serif;
  letter-spacing: 0;
  color: #ffffff;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-form__submit:hover {
  opacity: 0.92;
}

a.contact-form__submit {
  text-decoration: none;
}

.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 812px;
  margin: 0 auto;
  min-height: 800px;
  padding: 24px 0;
  box-sizing: border-box;
  gap: 32px;
}

.contact-success[hidden] {
  display: none !important;
}

.contact-success__title {
  margin: 0;
  text-align: center;
  font: normal normal normal 38px/46px var(--font-titling);
  letter-spacing: 0;
  color: #005169;
  text-transform: uppercase;
  opacity: 1;
}

.contact-success__message {
  margin: 0;
  max-width: 42em;
  text-align: center;
  font: normal normal normal 15px/20px Roboto, sans-serif;
  letter-spacing: 0;
  color: #6e6e72;
  opacity: 1;
}

.contact-success__home {
  margin-top: 8px;
}

/* bottom-nav: full viewport width teal bar (same pattern as .nav-bar); row matches .nav-bar__inner */
.bottom-nav {
  width: 100%;
  margin: 40px 0 0;
  box-sizing: border-box;
  background: var(--teal) 0% 0% no-repeat padding-box;
}

.bottom-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 32px 0;
}

/* Roboto Regular 14px — #FFFFFF, line 45, letter-spacing 0 */
.footer-address {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 480px;
  text-align: left;
  font: var(--type-footer);
  letter-spacing: 0;
  color: var(--white);
}

.footer-address__line {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.footer-links {
  display: block;
}

.footer-links__sep {
  display: inline;
}

/* Roboto Bold 14px — #FFFFFF, line 45, underline, letter-spacing 0 */
.footer-contact {
  font: var(--type-footer-link);
  letter-spacing: 0;
  color: var(--white);
  text-decoration: underline;
}

.footer-contact:hover {
  opacity: 0.9;
}

/* XD box was ~159px wide; fixed width forced a wrap — keep one line */
.footer-copy {
  box-sizing: border-box;
  margin: 0;
  flex: 0 0 auto;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  font: var(--type-footer-copy);
  letter-spacing: 0;
  color: #ffffff;
  opacity: 1;
}

.cookie-notice {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: min(360px, calc(100vw - 48px));
  background: #ffffff;
  color: #111;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  padding: 18px 18px 16px;
}

.cookie-notice__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cookie-notice__title {
  font: normal normal bold 16px/20px Roboto, sans-serif;
  letter-spacing: 0.12em;
  color: #111;
}

.cookie-notice__close {
  border: none;
  background: transparent;
  padding: 2px 6px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #111;
}

.cookie-notice__body p {
  max-width: 340px;
  margin: 0;
  font: normal normal normal 14px/20px Roboto, sans-serif;
  color: #111;
}

.cookie-notice__body a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-notice__actions {
  margin-top: 14px;
}

.cookie-notice__btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 16px;
  background: var(--teal);
  color: #fff;
  font: normal normal bold 16px/16px Roboto, sans-serif;
  cursor: pointer;
}

.cookie-notice__btn:hover {
  opacity: 0.92;
}

/* Center main column (hero + body + footer) like XD — full-width header stays edge-to-edge */
.page {
  min-height: 100vh;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

@media (max-width: 1400px) {
  .logo img {
    max-width: min(398px, 100%);
    height: 34px;
    width: auto;
  }

  .nav-primary {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 24px;
  }

  /* Mobile header: logo left, hamburger right — no shadow/border under bar so hero can sit flush */
  .nav-bar {
    height: auto;
    min-height: 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: none;
    box-shadow: none;
  }

  .nav-bar__inner {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    height: auto;
    max-width: none;
    padding: 22px var(--gutter) 16px;
    gap: 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #737378;
    font-size: 32px;
    line-height: 38px;
    letter-spacing: 0;
    opacity: 1;
    cursor: pointer;
    flex-shrink: 0;
    text-align: center;
  }

  .nav-toggle i {
    pointer-events: none;
  }

  .nav-primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    margin-top: 0;
    padding: 12px var(--gutter) 20px;
    background: #fff;
    box-shadow: 0 8px 16px #00000014;
    border-top: 1px solid #e8e8e8;
    z-index: 20;
  }

  .nav-bar--open .nav-primary {
    display: flex;
  }

  .nav-primary a {
    min-width: 0 !important;
    width: auto !important;
    height: auto;
    min-height: 0;
    padding: 14px 0;
    line-height: 1.3;
    justify-content: flex-start;
    text-align: left;
  }

  .logo img {
    max-height: 22px;
    width: auto;
    max-width: 100%;
  }

  /* Hero: flush under nav, full width — no top padding (was creating white gap) */
  .hero {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .hero__frame {
    max-width: none;
    width: 100%;
    height: auto;
    min-height: 280px;
    aspect-ratio: 1088 / 708;
  }

  .hero__tagline {
    font-size: clamp(24px, 8vw, 42px);
    padding: 24px;
  }

  /* Footer margin was creating a white band above teal — keep gap inside .content so #F4F4F4 fills it */
  .content {
    background: #f4f4f4 0% 0% no-repeat padding-box;
    padding-bottom: 40px;
  }

  .bottom-nav {
    margin-top: 0;
  }

  .bottom-nav__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-width: none;
    padding: 24px var(--gutter);
  }

  /* XD mobile: address 302×19, 14/18; Contact 69×19, bold 14/45; © line 159×19, 14/45 — stacked left */
  .footer-address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: none;
    font: normal normal normal 14px/18px Roboto, sans-serif;
  }

  .footer-address__sep {
    display: none;
  }

  .footer-links__sep {
    display: none;
  }

  .footer-address__line {
    display: block;
    box-sizing: border-box;
    max-width: 302px;
    min-height: 19px;
    text-align: left;
    font: normal normal normal 14px/18px Roboto, sans-serif;
    letter-spacing: 0;
    color: #ffffff;
    opacity: 1;
  }

  .footer-contact {
    display: block;
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    min-height: 19px;
    margin: 0;
    padding: 0;
    text-align: left;
    text-decoration: underline;
    font: normal normal bold 14px/45px Roboto, sans-serif;
    letter-spacing: 0;
    color: #ffffff;
    opacity: 1;
    white-space: nowrap;
  }

  .footer-copy {
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    min-height: 19px;
    margin: 0;
    text-align: left;
    font: normal normal normal 14px/45px Roboto, sans-serif;
    letter-spacing: 0;
    color: #ffffff;
    opacity: 1;
    white-space: nowrap;
  }

  /* Contact: inner was full viewport width — inset form from grey band edges */
  .content--contact .content__inner {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    box-sizing: border-box;
  }

  .contact-form {
    min-height: auto;
    gap: 20px;
  }

  .contact-form__actions {
    margin-top: 2%;
  }

  .contact-success {
    min-height: auto;
    padding: 24px 0 40px;
  }
}
