:root {
  --navy: #10243f;
  --navy-2: #17365d;
  --gold: #c89b3c;
  --cream: #f8f4ec;
  --ink: #1d2433;
  --muted: #667085;
  --white: #ffffff;
  --line: #e7e0d4;
  --success: #117a4a;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(16, 36, 63, 0.14);
  --sidebar-width: 290px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--cream); line-height: 1.6; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
a, button, input, textarea, label { -webkit-tap-highlight-color: rgba(200,155,60,.25); }

.site-shell { min-height: 100vh; display: flex; }
.sidebar { width: var(--sidebar-width); background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: var(--white); position: fixed; top: 0; bottom: 0; left: 0; padding: 28px 22px; display: flex; flex-direction: column; gap: 24px; z-index: 50; }
.logo-card { border: 1px dashed rgba(255,255,255,.55); border-radius: 18px; min-height: 112px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; background: rgba(255,255,255,.07); }
.logo-card img { max-width: 100%; max-height: 100px; display: block; }
.logo-placeholder strong { display: block; font-size: 18px; letter-spacing: .04em; }
.logo-placeholder span { color: rgba(255,255,255,.75); font-size: 13px; }
.logo-card.has-logo { border-style: solid; background: rgba(255,255,255,.96); padding: 12px; }
.logo-card.has-logo a { display: block; width: 100%; }
.logo-card.has-logo img { width: 100%; height: auto; max-height: 120px; object-fit: contain; display: block; }
.nav { display: grid; gap: 8px; margin-top: 5px; }
.nav a { text-decoration: none; padding: 12px 14px; border-radius: 12px; color: rgba(255,255,255,.9); font-weight: 700; min-height: 46px; display: flex; align-items: center; }
.nav a.active, .nav a:hover, .nav a:focus-visible { background: rgba(200,155,60,.22); color: #fff; outline: none; }
.side-contact { margin-top: auto; border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; font-size: 14px; color: rgba(255,255,255,.8); }
.side-contact a { color: #fff; text-decoration: none; font-weight: 700; }
.content { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); min-width: 0; }
.mobile-topbar, .nav-toggle-input, .nav-overlay, .mobile-sticky-cta { display: none; }

.hero { background: radial-gradient(circle at right top, rgba(200,155,60,.28), transparent 36%), linear-gradient(120deg, #fff, #f4ead9); padding: 56px clamp(24px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(24px, 4vw, 38px); align-items: center; max-width: 1180px; }
.eyebrow { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; margin: 12px 0 18px; color: var(--navy); }
h2 { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.15; color: var(--navy); margin: 0 0 16px; }
h3 { color: var(--navy); margin: 0 0 10px; }
p { overflow-wrap: anywhere; }
.lead { font-size: clamp(17px, 1.7vw, 19px); color: #344054; max-width: 720px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 800; border: 2px solid transparent; text-align: center; cursor: pointer; }
.btn-primary { background: var(--gold); color: #111827; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn:focus-visible { outline: 3px solid rgba(200,155,60,.45); outline-offset: 3px; }
.photo-card { background: #fff; border-radius: 26px; padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.photo-placeholder { border: 2px dashed #d0b575; border-radius: 20px; min-height: 420px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); background: #fbf8f0; padding: 22px; }
.photo-placeholder strong { display: block; color: var(--navy); font-size: 20px; }
.professional-photo-card { overflow: hidden; padding: 0; }
.professional-photo { width: 100%; height: clamp(320px, 38vw, 440px); object-fit: cover; object-position: center top; display: block; border-radius: 26px; background: #ffffff; }
.section { padding: 54px clamp(24px, 6vw, 80px); }
.container { max-width: 1180px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 10px 25px rgba(16,36,63,.06); min-width: 0; }
.card .icon { width: 42px; height: 42px; border-radius: 14px; background: rgba(200,155,60,.18); display: grid; place-items: center; margin-bottom: 14px; }
.list { padding-left: 20px; }
.list li { margin-bottom: 8px; }
.band { background: var(--navy); color: #fff; border-radius: 26px; padding: clamp(22px, 4vw, 30px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.band h2 { color: #fff; margin-bottom: 8px; }
.band p { color: rgba(255,255,255,.82); margin: 0; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
label { font-weight: 800; color: var(--navy); }
input, textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 12px; padding: 14px 14px; font: inherit; font-size: 16px; background: #fff; }
textarea { min-height: 150px; resize: vertical; }
.required { color: var(--danger); }
.notice { padding: 14px 16px; border-radius: 12px; font-weight: 700; margin-bottom: 16px; }
.notice.success { background: #e8f5ee; color: var(--success); border: 1px solid #b7dfc9; }
.notice.error { background: #ffedeb; color: var(--danger); border: 1px solid #f5c2bd; }
.honeypot { display: none; }
.footer { padding: 28px clamp(24px, 6vw, 80px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding-bottom: calc(28px + var(--safe-bottom)); }

@media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr; } .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 900px) {
  body { padding-top: 72px; padding-bottom: calc(72px + var(--safe-bottom)); }
  .mobile-topbar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 72px; align-items: center; justify-content: space-between; padding: 10px 16px; background: rgba(16,36,63,.98); color: #fff; box-shadow: 0 8px 25px rgba(16,36,63,.18); }
  .mobile-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; font-weight: 800; }
  .mobile-brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: #fff; padding: 4px; flex: 0 0 auto; }
  .mobile-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-toggle-button { width: 48px; height: 48px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); display: grid; place-content: center; gap: 5px; cursor: pointer; flex: 0 0 auto; }
  .nav-toggle-button span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 999px; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle-input { display: block; position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.36); z-index: 40; }
  .site-shell { display: block; min-height: auto; }
  .sidebar { width: min(86vw, 330px); position: fixed; top: 0; bottom: 0; left: 0; transform: translateX(-105%); transition: transform .25s ease; padding: 92px 20px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; box-shadow: 20px 0 45px rgba(0,0,0,.25); z-index: 50; }
  .nav-toggle-input:checked ~ .nav-overlay { display: block; }
  .nav-toggle-input:checked ~ .site-shell .sidebar { transform: translateX(0); }
  .nav-toggle-input:checked + .mobile-topbar .nav-toggle-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-input:checked + .mobile-topbar .nav-toggle-button span:nth-child(2) { opacity: 0; }
  .nav-toggle-input:checked + .mobile-topbar .nav-toggle-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .content { margin-left: 0; width: 100%; }
  .hero { padding: 34px 18px; }
  .section { padding: 38px 18px; }
  .hero-grid, .info-grid, .band { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .band .btn { width: 100%; }
  .actions .btn { flex: 1 1 190px; }
  .photo-placeholder { min-height: 300px; }
  .side-contact { margin-top: 10px; }
  body.page-home .hero .actions, body.page-services .hero .actions { display: none !important; }
  .hero .professional-photo-card { width: min(100%, 560px); aspect-ratio: 1 / 1; height: auto; margin-left: auto; margin-right: auto; padding: 0; overflow: hidden; display: block; background: #fff; border-radius: 26px; }
  .hero .professional-photo { width: 100%; height: 100% !important; display: block; object-fit: cover !important; object-position: center top; border-radius: 26px; background: #fff; }
  .mobile-sticky-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-bottom)); z-index: 55; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 14px 35px rgba(16,36,63,.18); padding: 8px; backdrop-filter: blur(10px); }
  .mobile-sticky-cta a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; text-decoration: none; font-weight: 800; }
  .mobile-sticky-cta a:first-child { background: var(--gold); color: #111827; }
  .mobile-sticky-cta a:last-child { background: var(--navy); color: #fff; }
  .nav-toggle-input:checked ~ .mobile-sticky-cta { display: none !important; visibility: hidden !important; pointer-events: none !important; }
}

@media (orientation: landscape) and (max-height: 650px) {
  body { padding-top: 72px; }
  .mobile-topbar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 72px; align-items: center; justify-content: space-between; padding: 10px 16px; background: rgba(16,36,63,.98); color: #fff; box-shadow: 0 8px 25px rgba(16,36,63,.18); }
  .content { margin-left: 0 !important; width: 100% !important; }
  .sidebar { width: min(86vw, 330px); position: fixed; top: 0; bottom: 0; left: 0; transform: translateX(-105%); transition: transform .25s ease; padding: 92px 20px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 50; }
  .nav-toggle-input:checked ~ .site-shell .sidebar { transform: translateX(0); }
  .nav-toggle-input:checked ~ .mobile-sticky-cta { display: none !important; visibility: hidden !important; pointer-events: none !important; }
  .hero-grid { grid-template-columns: 1fr !important; justify-items: center !important; }
  .hero .professional-photo-card { width: min(62vh, 420px) !important; height: min(62vh, 420px) !important; max-width: calc(100vw - 48px) !important; max-height: calc(100vh - 110px) !important; aspect-ratio: 1 / 1 !important; margin-left: auto !important; margin-right: auto !important; overflow: hidden !important; padding: 0 !important; border-radius: 26px !important; background: #fff !important; }
  .hero .professional-photo { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center top !important; border-radius: 26px !important; background: #fff !important; }
  body.page-home .hero .actions, body.page-services .hero .actions { display: none !important; }
}

@media (max-width: 520px) {
  body { padding-top: 66px; }
  .mobile-topbar { height: 66px; padding: 9px 12px; }
  .mobile-brand img { width: 42px; height: 42px; }
  .mobile-brand span { font-size: 15px; max-width: calc(100vw - 128px); }
  h1 { font-size: clamp(31px, 10vw, 42px); }
  h2 { font-size: clamp(25px, 8vw, 34px); }
  .lead { font-size: 17px; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .card { padding: 20px; }
  .photo-card, .professional-photo, .hero .professional-photo-card { border-radius: 22px; }
  .footer { font-size: 13px; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .content { margin-left: var(--sidebar-width); }
  .hero { padding-left: 44px; padding-right: 44px; }
  .section { padding-left: 44px; padding-right: 44px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }


/* FINAL iPhone landscape and CTA fixes - 2026-08-02 */
/* Keep the floating Call/Message buttons below the sidebar, and hide them whenever the hamburger menu is open. */
.mobile-sticky-cta {
  z-index: 45 !important;
}

.nav-toggle-input:checked ~ .mobile-sticky-cta,
body:has(.nav-toggle-input:checked) .mobile-sticky-cta {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.nav-toggle-input:checked ~ .site-shell .sidebar,
body:has(.nav-toggle-input:checked) .sidebar {
  z-index: 9999 !important;
}

.nav-toggle-input:checked ~ .nav-overlay,
body:has(.nav-toggle-input:checked) .nav-overlay {
  z-index: 9000 !important;
}

/* iPhone/Safari landscape: keep the image in a square box and show the full portrait instead of a thin eyes-only crop. */
@supports (-webkit-touch-callout: none) {
  @media (orientation: landscape) and (max-height: 650px) {
    body {
      padding-top: 72px !important;
    }

    .content {
      margin-left: 0 !important;
      width: 100% !important;
    }

    .site-shell {
      display: block !important;
    }

    .hero-grid {
      grid-template-columns: 1fr !important;
      justify-items: center !important;
    }

    .hero .professional-photo-card {
      width: min(68vh, 420px) !important;
      height: min(68vh, 420px) !important;
      max-width: calc(100vw - 48px) !important;
      max-height: calc(100vh - 112px) !important;
      aspect-ratio: 1 / 1 !important;
      margin-left: auto !important;
      margin-right: auto !important;
      padding: 0 !important;
      overflow: hidden !important;
      border-radius: 26px !important;
      background: #ffffff !important;
    }

    .hero .professional-photo {
      width: 100% !important;
      height: 100% !important;
      object-fit: contain !important;
      object-position: center center !important;
      border-radius: 26px !important;
      background: #ffffff !important;
    }

    .sidebar {
      width: min(86vw, 330px) !important;
      position: fixed !important;
      top: 0 !important;
      bottom: 0 !important;
      left: 0 !important;
      transform: translateX(-105%);
      z-index: 9999 !important;
    }

    .nav-toggle-input:checked ~ .site-shell .sidebar,
    body:has(.nav-toggle-input:checked) .sidebar {
      transform: translateX(0) !important;
    }
  }
}

/* Android/iPhone landscape top logo size fix - 2026-08-02
   Reason: landscape phone screens can be wider than 900px, so the regular mobile logo rule may not run. */
@media (orientation: landscape) and (max-height: 650px) {
  .mobile-topbar {
    display: flex !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    overflow: hidden !important;
    align-items: center !important;
  }

  .mobile-brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    max-width: calc(100vw - 96px) !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
  }

  .mobile-brand img,
  .mobile-topbar .mobile-brand img {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    padding: 4px !important;
    flex: 0 0 44px !important;
    display: block !important;
  }

  .mobile-brand span {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 15px !important;
  }

  .nav-toggle-button {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
  }
}

/* FINAL Android/iPhone landscape hamburger visibility fix - 2026-08-02
   Fixes the invisible hamburger button in horizontal mobile view while keeping the tap target visible. */
@media (orientation: landscape) and (max-height: 650px) {
  .mobile-topbar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 60 !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    overflow: hidden !important;
    background: rgba(16,36,63,.98) !important;
    color: #ffffff !important;
  }

  .mobile-brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    max-width: calc(100vw - 112px) !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
  }

  .mobile-brand img,
  .mobile-topbar .mobile-brand img {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    padding: 4px !important;
    flex: 0 0 44px !important;
    display: block !important;
  }

  .mobile-brand span {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 15px !important;
  }

  .nav-toggle-button {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    flex: 0 0 48px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,.30) !important;
    display: grid !important;
    place-content: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    background: rgba(255,255,255,.06) !important;
    z-index: 70 !important;
  }

  .nav-toggle-button span {
    display: block !important;
    width: 24px !important;
    height: 3px !important;
    background: #ffffff !important;
    border-radius: 999px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform .2s ease, opacity .2s ease !important;
  }

  .nav-toggle-input:checked + .mobile-topbar .nav-toggle-button span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }

  .nav-toggle-input:checked + .mobile-topbar .nav-toggle-button span:nth-child(2) {
    opacity: 0 !important;
  }

  .nav-toggle-input:checked + .mobile-topbar .nav-toggle-button span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }
}

/* FINAL photo container transparency fix - 2026-08-02
   Removes the white card/container box around hero photos on Home, Services, and Contact. */
.hero .photo-card,
.hero .professional-photo-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.hero .professional-photo {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .hero .photo-card,
  .hero .professional-photo-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  .hero .professional-photo {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}
