/* ═══════════════════════════════════════════════
   Michael Mills — child theme styles (0.1.0)
   Palette measured from the old costarica-realestate.com (Sep 30, 2026):
   navy #011640 · ocean blue #0062A0 · Costa Rica red #CE1126 · light gray #F2F2F2.
   Font: Montserrat (old site) + Cinzel for the "Michael Mills" name only.
   Rule: colors below are TOKENS; component rules reference tokens only.
════════════════════════════════════════════════ */
:root {
  --targ-primary:         #011640;   /* deep navy — nav, footer, headings */
  --targ-primary-mid:     #0062A0;   /* ocean blue — links, hovers */
  --targ-accent:          #CE1126;   /* Costa Rica red — main action buttons only */
  --targ-accent-dark:     #A50E1F;
  --targ-highlight:       #0062A0;
  --targ-highlight-light: #7FB3D5;
  --targ-surface:         #F2F2F2;   /* light gray section background */
  --targ-surface-dark:    #E4E7EC;
  --targ-white:           #FFFFFF;
  --targ-text:            #1A2640;   /* body copy (navy-tinted, easier on the eye than pure navy) */
  --targ-text-muted:      #5E6A82;   /* darker than the old #808A9F so it passes contrast */
  --targ-border:          #DCE1E8;

  --targ-font-heading:    'Montserrat', system-ui, -apple-system, sans-serif;
  --targ-font-body:       'Montserrat', system-ui, -apple-system, sans-serif;

  --targ-radius:          8px;

  /* child-only tokens */
  --mills-font-name:      'Cinzel', Georgia, serif;
  --mills-overlay:        rgba(1, 22, 64, .55);
  --mills-overlay-soft:   rgba(1, 22, 64, .15);
  --mills-hero-fallback:  linear-gradient(135deg, #011640 0%, #0062A0 100%);
}

/* Bigger, easier text than the old site's 12px */
body { font-size: 16px; line-height: 1.7; color: var(--targ-text); }
.section-title { font-weight: 600; color: var(--targ-primary); }
.logo-brand-name { font-family: var(--mills-font-name); letter-spacing: .04em; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.mills-center { text-align: center; }

/* ── 1. Banner ─────────────────────────────── */
.mills-hero {
  position: relative;
  min-height: 640px;
  padding: calc(var(--targ-utility-height) + var(--targ-nav-height) + 48px) 24px 40px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 40px;
  background: var(--mills-hero-fallback);
  color: var(--targ-white);
  overflow: hidden;
}
.mills-hero.has-photo {
  background: linear-gradient(to top, var(--mills-overlay) 0%, var(--mills-overlay-soft) 60%, var(--mills-overlay) 100%),
              var(--mills-hero-img) center / cover no-repeat;
}
.mills-hero-inner {
  max-width: var(--targ-container); width: 100%; margin: 0 auto;
  display: flex; align-items: flex-end; gap: 32px;
}
.mills-hero-portrait { max-height: 420px; width: auto; margin-bottom: -40px; flex-shrink: 0; }
.mills-hero-text { max-width: 720px; }
.mills-hero-name {
  font-family: var(--mills-font-name); font-size: 22px; letter-spacing: .12em;
  text-transform: uppercase; margin: 0 0 8px; opacity: .9;
}
.mills-hero-title {
  font-size: clamp(34px, 5vw, 60px); font-weight: 700; line-height: 1.08;
  margin: 0 0 12px; color: var(--targ-white);
}
.mills-hero-sub { font-size: clamp(16px, 1.6vw, 20px); margin: 0 0 18px; opacity: .92; }
.mills-hero-phone { color: var(--targ-white); font-weight: 600; text-decoration: none; }
.mills-hero-phone:hover { text-decoration: underline; }

/* search card */
.mills-search {
  position: relative; z-index: 2;
  max-width: var(--targ-container); width: 100%; margin: 0 auto;
  background: var(--targ-white); color: var(--targ-text);
  border-radius: var(--targ-radius); box-shadow: var(--targ-shadow-lg);
  padding: 18px 20px;
}
.mills-search-label {
  margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--targ-primary);
}
.mills-search-fields { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; }
.mills-search select,
.mills-search input[type="text"] {
  width: 100%; height: 48px; padding: 0 12px;
  border: 1px solid var(--targ-border); border-radius: var(--targ-radius);
  font: inherit; font-size: 15px; color: var(--targ-text); background: var(--targ-white);
}
.mills-search .btn-solid { height: 48px; padding: 0 26px; justify-content: center; }

/* ── 2. Property-type cards ───────────────── */
.mills-types { padding: 72px 24px 56px; background: var(--targ-white); }
.mills-types .section-title { margin-bottom: 32px; }
.mills-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mills-type-card {
  position: relative; display: flex; align-items: flex-end;
  aspect-ratio: 16 / 10; border-radius: var(--targ-radius); overflow: hidden;
  text-decoration: none; background: var(--targ-primary); box-shadow: var(--targ-shadow-sm);
  transition: transform var(--targ-transition), box-shadow var(--targ-transition);
}
.mills-type-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mills-type-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--mills-overlay) 0%, transparent 55%);
}
.mills-type-card.no-photo { background: var(--mills-hero-fallback); align-items: center; justify-content: center; flex-direction: column; }
.mills-type-card.no-photo::after { display: none; }
.mills-type-icon { font-size: 42px; color: var(--targ-white); opacity: .85; margin-bottom: 12px; }
.mills-type-label {
  position: relative; z-index: 1; padding: 18px 20px;
  color: var(--targ-white); font-size: 20px; font-weight: 600; letter-spacing: .02em;
}
.mills-type-card.no-photo .mills-type-label { padding: 0; }
.mills-type-card:hover { transform: translateY(-3px); box-shadow: var(--targ-shadow-md); }
.mills-map-link { margin: 32px 0 0; }

/* ── 3. Featured development ──────────────── */
.mills-dev { padding: 56px 24px; background: var(--targ-surface); }
.mills-dev-inner {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 0;
  background: var(--targ-white); border-radius: var(--targ-radius); overflow: hidden;
  box-shadow: var(--targ-shadow-sm);
}
.mills-dev-text { padding: 48px 44px; align-self: center; }
.mills-dev-text p { color: var(--targ-text-muted); margin: 12px 0 24px; }
.mills-dev-photo { min-height: 340px; background: center / cover no-repeat; }
.mills-dev-photo.no-photo { background: var(--mills-hero-fallback); display: flex; align-items: center; justify-content: center; }
.mills-dev-photo.no-photo i { font-size: 64px; color: var(--targ-white); opacity: .5; }

/* ── 4. Featured properties ───────────────── */
.mills-listings { padding: 72px 24px; background: var(--targ-white); }
.mills-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.mills-more { color: var(--targ-primary-mid); font-weight: 600; text-decoration: none; }
.mills-more:hover { text-decoration: underline; }
.mills-empty {
  padding: 40px; text-align: center; color: var(--targ-text-muted);
  background: var(--targ-surface); border-radius: var(--targ-radius);
}

/* ── 5. Welcome ───────────────────────────── */
.mills-welcome { padding: 72px 24px; background: var(--targ-surface); }
.mills-welcome-inner { display: flex; gap: 48px; align-items: center; }
.mills-welcome-photo { width: 320px; max-width: 40%; border-radius: var(--targ-radius); box-shadow: var(--targ-shadow-md); flex-shrink: 0; }
.mills-welcome-text { max-width: 760px; }
.mills-welcome-text .entry-content { margin: 16px 0 20px; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 1100px) {
  .mills-search-fields { grid-template-columns: 1fr 1fr; }
  .mills-search .btn-solid { grid-column: 1 / -1; }
  .mills-hero-portrait { max-height: 320px; }
}
@media (max-width: 960px) {
  .mills-type-grid { grid-template-columns: repeat(2, 1fr); }
  .mills-dev-inner { grid-template-columns: 1fr; }
  .mills-dev-photo { order: -1; min-height: 240px; }
  .mills-welcome-inner { flex-direction: column; align-items: flex-start; }
  .mills-welcome-photo { max-width: 100%; }
}
@media (max-width: 620px) {
  .mills-hero { min-height: 0; padding-left: 16px; padding-right: 16px; }
  .mills-hero-portrait { display: none; }
  .mills-search-fields { grid-template-columns: 1fr; }
  .mills-type-grid { gap: 12px; }
  .mills-type-label { font-size: 16px; padding: 12px 14px; }
  .mills-types, .mills-listings, .mills-welcome, .mills-dev { padding-left: 16px; padding-right: 16px; }
  .mills-dev-text { padding: 28px 22px; }
}

/* ── Footer: TARG logo on a white card (the logo is navy/red, footer is navy) ── */
.mills-targ-logo {
  display: inline-block; background: var(--targ-white); border-radius: var(--targ-radius);
  padding: 8px 14px; line-height: 0;
}
.mills-targ-logo img { width: 180px; height: auto; }

/* ── 0.1.1: no logo file exists, so the NAME is the logo — keep it visible at every width
   (the parent hides .logo-brand below 1450px because other sites use an image logo). ── */
@media (max-width: 1450px) { .logo-brand { display: flex; } }
@media (max-width: 1250px) and (min-width: 1101px) { .logo-brand-name { font-size: 15px; } }
