/* ==========================================================================
   DILWORTH STRONG — BRAND STYLESHEET
   Colors: #30392C (primary), #6F7C6A (secondary), #171B13 (dark), #F5F3EF (off-white)
   Fonts:  Times New Roman (brand/serif), Avenir → Nunito Sans (body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,600;6..12,700&display=swap');

/* --------------------------------------------------------------------------
   CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  --primary:       #30392C;
  --primary-hover: #3a4534;
  --secondary:     #6F7C6A;
  --dark:          #171B13;
  --white:         #FFFFFF;
  --off-white:     #F5F3EF;
  --border:        #DDD9D2;
  --text:          #1C2019;
  --text-muted:    #5A5F56;

  --serif:  'Times New Roman', 'Georgia', Times, serif;
  --sans:   'Avenir Next', 'Avenir', 'Nunito Sans', 'Century Gothic', sans-serif;

  --nav-h:         72px;
  --max-w:         1200px;
  --px:            clamp(20px, 5vw, 60px);
  --py:            clamp(64px, 8vw, 100px);
  --transition:    220ms ease;
}

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--sans); color: var(--text); background: var(--white);
        line-height: 1.65; -webkit-font-smoothing: antialiased; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: bold;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p  { color: var(--text-muted); line-height: 1.7; max-width: 68ch; }
.lead { font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.75; }

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

.section           { padding: var(--py) 0; }
.section--alt      { background: var(--off-white); }
.section--primary  { background: var(--primary); }
.section--dark     { background: var(--dark); }

.section--primary h2,.section--primary h3,.section--primary h4,.section--primary p,
.section--dark h2,.section--dark h3,.section--dark h4,.section--dark p { color: var(--white); }

/* Eyebrow label */
.eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}
.section--primary .eyebrow,
.section--dark    .eyebrow { color: rgba(255,255,255,0.5); }

/* Divider accent */
.divider {
  width: 44px;
  height: 2px;
  background: var(--secondary);
  margin: 20px 0 28px;
}
.section--primary .divider,
.section--dark    .divider { background: rgba(255,255,255,0.3); }
.divider--center { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary     { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn--primary:hover { background: var(--dark);  border-color: var(--dark); }

.btn--outline     { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--outline:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

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

.btn--light       { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn--light:hover { background: var(--off-white); border-color: var(--off-white); }

/* --------------------------------------------------------------------------
   NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--primary);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

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

/* Logo mark */
.nav__logo        { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav__logo-mark   { width: 38px; height: 38px; flex-shrink: 0; object-fit: contain; }
.nav__logo-text   { display: flex; flex-direction: column; line-height: 1.1; }
.nav__logo-name   {
  font-family: var(--serif);
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__logo-sub    {
  font-family: var(--sans);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
}

/* Desktop links */
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link  {
  padding: 8px 12px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav__link:hover, .nav__link.active { color: var(--white); }

.nav__link--cta {
  margin-left: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.36);
  color: var(--white);
  transition: background var(--transition), border-color var(--transition);
}
.nav__link--cta:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--white);
  display: block;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--dark);
  padding: 16px var(--px) 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
  z-index: 199;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.nav__mobile.is-open { display: block; }
.nav__mobile-link {
  display: block;
  padding: 14px 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition);
}
.nav__mobile-link:hover { color: var(--white); }
.nav__mobile-link:last-child { border-bottom: none; }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #171B13;
  background-image:
    linear-gradient(150deg, rgba(23,27,19,0.68) 0%, rgba(36,46,30,0.45) 50%, rgba(48,57,44,0.25) 100%),
    url('images/toledo-downtown-hero.jpg');
  background-position: center, center;
  background-size: auto, cover;
  background-repeat: no-repeat, no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(23,27,19,0.25) 0%, rgba(23,27,19,0.1) 100%);
  z-index: 0;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--py) 0;
  max-width: 660px;
}
.hero__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 20px;
}
.hero__title    { font-family: var(--serif); color: var(--white); margin-bottom: 24px; }
.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255,255,255,0.68);
  max-width: 52ch;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero__actions  { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------------------
   PAGE BANNER (interior pages)
   -------------------------------------------------------------------------- */
.page-banner {
  background: var(--primary);
  padding: clamp(52px, 7vw, 88px) 0;
}
.page-banner h1        { color: var(--white); margin-bottom: 12px; }
.page-banner .lead     { color: rgba(255,255,255,0.62); max-width: 60ch; }
.page-banner .eyebrow  { color: rgba(255,255,255,0.45); }

.page-banner--pm {
  background: linear-gradient(140deg, var(--dark) 0%, #252f1e 100%);
}

/* --------------------------------------------------------------------------
   GRIDS
   -------------------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.two-col--55 { grid-template-columns: 55fr 45fr; }

/* --------------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: clamp(24px, 3vw, 36px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--secondary);
  box-shadow: 0 6px 28px rgba(48,57,44,0.09);
}
.card--dark { background: var(--primary); border-color: transparent; }
.card--dark h3, .card--dark h4, .card--dark p { color: var(--white); }

.card__icon     { width: 36px; height: 36px; margin-bottom: 20px; color: var(--secondary); }
.card__eyebrow  {
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--secondary); margin-bottom: 10px;
}
.card--dark .card__eyebrow { color: rgba(255,255,255,0.45); }
.card h3, .card h4 { margin-bottom: 12px; }
.card p            { font-size: 0.92rem; }

/* Service card left-border accent */
.card--service { border-left: 3px solid var(--border); }
.card--service:hover { border-left-color: var(--secondary); }

/* --------------------------------------------------------------------------
   TEAM GRID
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 36px;
}
.team-card__photo-wrap {
  width: 100%; aspect-ratio: 3/4; overflow: hidden;
  background: var(--border); margin-bottom: 20px;
}
.team-card__photo           { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card__photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, var(--primary), var(--dark));
  display: flex; align-items: center; justify-content: center;
}
.team-card__initials {
  font-family: var(--serif); font-size: 2.5rem; font-weight: bold;
  color: rgba(255,255,255,0.35); letter-spacing: 0.05em;
}
.team-card__name   {
  font-family: var(--serif); font-size: 1.15rem; font-weight: bold;
  color: var(--text); margin-bottom: 4px;
}
.team-card__title  {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--secondary); margin-bottom: 14px;
}
.team-card__info   { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; }
.team-card__info a { color: var(--primary); transition: color var(--transition); }
.team-card__info a:hover { color: var(--secondary); }

/* --------------------------------------------------------------------------
   CHECK LIST
   -------------------------------------------------------------------------- */
.check-list      { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.check-list__item { display: flex; align-items: flex-start; gap: 14px; }
.check-list__icon {
  flex-shrink: 0; width: 18px; height: 18px;
  color: var(--secondary); margin-top: 3px;
}
.check-list__text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
.form     { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__group { display: flex; flex-direction: column; gap: 7px; }

.form__label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}

.form__input,.form__select,.form__textarea {
  font-family: var(--sans); font-size: 0.95rem; color: var(--text);
  background: var(--white); border: 1px solid var(--border);
  padding: 12px 14px; outline: none; width: 100%;
  transition: border-color var(--transition);
  -webkit-appearance: none; appearance: none;
}
.form__input:focus,.form__select:focus,.form__textarea:focus { border-color: var(--primary); }
.form__textarea { resize: vertical; min-height: 130px; }
.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236F7C6A' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}

/* Newsletter inline */
.newsletter-form { display: flex; max-width: 460px; }
.newsletter-form .form__input { flex: 1; border-right: none; }

/* Form success message */
.form-success {
  padding: 16px 20px;
  background: rgba(111,124,106,0.1);
  border: 1px solid var(--secondary);
  color: var(--primary);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   PORTAL CARDS (Property Management page)
   -------------------------------------------------------------------------- */
.portal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.portal-card {
  border: 1px solid rgba(255,255,255,0.14);
  padding: 32px 28px;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.portal-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.32);
}
.portal-card__label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.42); margin-bottom: 10px;
}
.portal-card__title {
  font-family: var(--serif); font-size: 1.15rem;
  color: var(--white); margin-bottom: 12px;
}
.portal-card__desc { font-size: 0.875rem; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.portal-card__arrow { font-size: 1.25rem; color: var(--secondary); }

/* --------------------------------------------------------------------------
   CTA STRIP
   -------------------------------------------------------------------------- */
.cta-strip {
  padding: clamp(60px, 8vw, 96px) 0;
  background: var(--dark);
  text-align: center;
}
.cta-strip h2   { color: var(--white); margin-bottom: 16px; }
.cta-strip p    { color: rgba(255,255,255,0.6); margin: 0 auto 36px; font-size: 1.05rem; max-width: 56ch; }
.cta-strip__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: clamp(52px, 6vw, 80px) 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: clamp(40px, 5vw, 64px);
}
.footer__brand { max-width: 290px; }

.footer__logo       { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer__logo-mark  { width: 34px; height: 34px; flex-shrink: 0; object-fit: contain; }
.footer__logo-name  {
  font-family: var(--serif); font-weight: bold; font-size: 0.88rem;
  color: var(--white); letter-spacing: 0.1em; text-transform: uppercase;
}
.footer__tagline    { font-size: 0.875rem; color: rgba(255,255,255,0.4); line-height: 1.65; }

.footer__col-head   {
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.32); margin-bottom: 20px;
}
.footer__link       {
  display: block; font-size: 0.875rem; color: rgba(255,255,255,0.58);
  margin-bottom: 11px; transition: color var(--transition);
}
.footer__link:hover { color: var(--white); }
.footer__address    {
  font-style: normal; font-size: 0.875rem;
  color: rgba(255,255,255,0.48); line-height: 1.75;
}
.footer__address a  { color: rgba(255,255,255,0.58); transition: color var(--transition); }
.footer__address a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer__copy        { font-size: 0.76rem; color: rgba(255,255,255,0.28); }
.footer__bottom-links { display: flex; gap: 24px; }
.footer__bottom-link {
  font-size: 0.76rem; color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}
.footer__bottom-link:hover { color: rgba(255,255,255,0.6); }

/* --------------------------------------------------------------------------
   SCROLL REVEAL
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

/* --------------------------------------------------------------------------
   RESPONSIVE — TABLET ≤ 900px
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav__links  { display: none; }
  .nav__toggle { display: flex; }

  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .two-col, .two-col--55 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .portal-grid  { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — MOBILE ≤ 640px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body { overflow-x: hidden; }
  p    { max-width: 100%; }
  .hero__content { width: 100%; }

  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

  .newsletter-form { flex-direction: column; max-width: 100%; }
  .newsletter-form .form__input { border-right: 1px solid var(--border); border-bottom: none; }
  .newsletter-form .btn { width: 100%; justify-content: center; }

  .hero       { min-height: 72vh; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; text-align: center; justify-content: center; }

  .page-banner { padding: 52px 0 44px; }

  .cta-strip__btns { flex-direction: column; align-items: center; }
  .cta-strip__btns .btn { width: 100%; max-width: 320px; text-align: center; justify-content: center; }

  .btn { min-height: 48px; }

  .footer__bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer__bottom-links { justify-content: center; }
}
