/* Davis Central - company intranet home. Look and feel from daviswin.com: white header, Lato body, Cormorant Garamond
   headings, navy buttons with square corners, sand-colored bands, gold accents. Navy/gold = the SharePoint "Davis" theme. */
:root {
  --navy: #212e51; --navy-dk: #182340; --gold: #c6a36a; --ink: #232324; --muted: #605e5c; --hint: #8a8886;
  --sand: #e8e5e0; --sand-lt: #f3f1ee; --line: #dcd9d4; --white: #fff;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: Lato, "Segoe UI", Arial, sans-serif;
  --max: 1440px; --gutter: 32px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.sub { color: var(--muted); font-size: 16px; margin: 6px 0 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--navy); color: var(--navy); background: #fff; padding: 10px 20px; font: 700 13px/1 var(--sans); letter-spacing: 1px; text-transform: uppercase; border-radius: 3px; cursor: pointer; }
.btn:hover { background: var(--sand-lt); text-decoration: none; }
.btn.fill { background: var(--navy); color: #fff; }
.btn.fill:hover { background: var(--navy-dk); }

/* utility strip */
.util { background: var(--sand); font-size: 14px; }
.util .wrap { display: flex; align-items: center; height: 38px; gap: 18px; }
.util .sp { flex: 1; }
.util .teams { white-space: nowrap; background: var(--navy); color: #fff; height: 38px; display: inline-flex; align-items: center; padding: 0 20px; font-weight: 700; }
.util .teams:hover { background: var(--navy-dk); text-decoration: none; }

/* header */
.hdr { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.hdr .wrap { display: flex; align-items: center; height: 88px; gap: 22px; }
.brand { display: flex; align-items: center; gap: 22px; }
.brand img { height: 44px; width: auto; }
.brand .site { font-family: var(--serif); font-size: 28px; color: var(--navy); line-height: 1; padding-left: 22px; border-left: 1px solid var(--line); }
.brand .site small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav > li { list-style: none; position: relative; }
.nav { padding: 0; margin: 0 0 0 auto; }
.nav a, .nav button { font: 400 15px/1 var(--sans); color: var(--ink); background: none; border: 0; padding: 10px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover, .nav button:hover { color: var(--navy); text-decoration: none; }
.nav .on { color: var(--navy); border-bottom: 2px solid var(--gold); }
.nav .caret { font-size: 10px; color: var(--hint); }
.menu { position: absolute; top: 100%; left: -16px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); min-width: 260px; padding: 10px 0; box-shadow: 0 14px 30px rgba(0,0,0,.12); display: none; z-index: 60; }
.menu a { display: block; padding: 9px 18px; font-size: 15px; }
.menu a:hover { background: var(--sand-lt); }
.nav > li.open .menu, .nav > li:focus-within .menu { display: block; }
.search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 3px; height: 40px; width: 230px; padding: 0 10px 0 14px; }
.search input { border: 0; outline: 0; flex: 1; font: 15px var(--sans); color: var(--ink); background: transparent; min-width: 0; }
.search button { border: 0; background: none; color: var(--navy); cursor: pointer; font-size: 18px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.burger { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 3px; width: 44px; height: 40px; font-size: 20px; cursor: pointer; }

/* hero */
.hero { position: relative; color: #fff; background: #0e1424 url("img/hero.jpg") center 45% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,15,30,.88) 0%, rgba(10,15,30,.6) 50%, rgba(10,15,30,.3) 100%); }
.hero .wrap { position: relative; padding-top: 64px; padding-bottom: 64px; max-width: var(--max); }
.hero .in { max-width: 820px; }
.eyebrow { font-size: 13px; letter-spacing: 3.5px; text-transform: uppercase; color: var(--sand); }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.08; margin: 14px 0 16px; }
.hero h1 em { font-style: italic; }
.hero p { font-size: 18px; line-height: 1.55; color: var(--sand); margin: 0 0 24px; max-width: 700px; }
.ask { display: flex; background: #fff; border-radius: 6px; align-items: flex-end; gap: 10px; padding: 12px 12px 12px 20px; max-width: 820px; box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.ask textarea { flex: 1; border: 0; outline: 0; resize: none; font: 20px/1.45 var(--sans); color: var(--ink); min-width: 0; min-height: 58px; padding: 4px 0; background: transparent; }
.ask textarea::placeholder { color: var(--hint); }
.ask .btn { height: 48px; font-size: 14px; padding: 0 22px; }
.hero .again { display: none; border-color: #fff; color: #fff; background: transparent; }
.hero .again:hover { background: rgba(255,255,255,.12); }
.tries { margin-top: 14px; font-size: 14px; color: #c8c5c0; }
.tries button { background: none; border: 0; color: #fff; font: italic 18px var(--serif); cursor: pointer; padding: 0; text-align: left; }
.tries button:hover { text-decoration: underline; }
.assistant { background: var(--sand-lt); border-bottom: 1px solid var(--line); display: none; }
.assistant.open { display: block; }
.assistant .wrap { padding: 28px var(--gutter) 34px; }
.session { max-width: 1160px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 50px rgba(33,46,81,.14); overflow: hidden; }
.session .bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--muted); }
.session .bar strong { display: block; color: var(--navy); font-size: 16px; }
.session .bar .dot { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.session .bar .sp { flex: 1; }
.session .bar .btn { padding: 8px 14px; font-size: 12px; }
.session iframe { display: block; width: 100%; height: min(78vh, 900px); min-height: 560px; border: 0; background: var(--sand-lt); }
.hero.compact .wrap { padding-top: 36px; padding-bottom: 36px; }
.hero.compact h1 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 14px; }
.hero.compact p, .hero.compact .tries, .hero.compact .ask { display: none; }
.hero.compact .again { display: inline-flex; }

/* quick access band */
.band { background: var(--sand); }
.band .wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding-top: 20px; padding-bottom: 20px; }
.band a { display: flex; align-items: center; gap: 14px; padding: 6px 22px 6px 0; color: var(--ink); }
.band a + a { border-left: 1px solid #d6d2cb; padding-left: 22px; }
.band a:hover { text-decoration: none; }
.band a:hover b { text-decoration: underline; }
.band .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.band b { display: block; font-size: 15px; color: var(--navy); }
.band span { color: var(--muted); font-size: 13px; line-height: 1.35; }

/* sections */
main { padding: 50px 0 10px; }
section { margin-bottom: 54px; }
.grid { display: grid; gap: 28px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.news { grid-template-columns: 2fr 1fr; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.card .img { height: 200px; background: var(--sand) center / cover no-repeat; }
.card .body { padding: 22px 24px 24px; }
.card h3 { font-size: 27px; font-weight: 500; }
.card h3::after { content: ""; display: block; width: 48px; height: 2px; background: var(--gold); margin: 10px 0 12px; }
.card p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.card ul { list-style: none; padding: 0; margin: 0 0 8px; font-size: 15px; line-height: 1.9; }
.card ul li::before { content: "\203A"; color: var(--gold); margin-right: 10px; font-weight: 700; }
.side .card + .card { margin-top: 28px; }
.newsnote { display: inline-block; margin: 10px 0 0 12px; font-size: 13px; color: var(--hint); }
.newsitem .th.noimg { background: var(--sand) url("img/logo.png") center / 60% no-repeat; }
.newsitem { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.newsitem:last-of-type { border-bottom: 0; }
.newsitem .th { width: 132px; height: 88px; background: var(--sand) center / cover no-repeat; border-radius: 3px; flex: none; }
.newsitem h4 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--navy); }
.newsitem p { margin: 0; color: var(--muted); font-size: 14px; }
.newsitem .meta { font-size: 12px; color: var(--hint); margin-top: 6px; letter-spacing: .5px; text-transform: uppercase; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.steps a { padding: 22px 18px; border-right: 1px solid var(--line); background: #fff; color: var(--ink); display: block; }
.steps a:last-child { border-right: 0; }
.steps a:hover { background: var(--sand-lt); text-decoration: none; }
.steps .n { font-family: var(--serif); font-size: 44px; color: var(--gold); line-height: 1; }
.steps b { display: block; margin-top: 8px; font-size: 15px; color: var(--navy); }
.steps span { font-size: 13px; color: var(--muted); line-height: 1.45; display: block; margin-top: 4px; }
.brands { background: var(--sand-lt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 30px; padding-top: 26px; padding-bottom: 26px; }
.brands a { font-family: var(--serif); font-size: 24px; letter-spacing: 3px; color: #6b6966; text-transform: uppercase; }
.brands a:hover { color: var(--navy); text-decoration: none; }
footer { background: var(--navy); color: #c8c5c0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding-top: 26px; padding-bottom: 26px; }
footer b { color: #fff; font-family: var(--serif); font-size: 20px; letter-spacing: 1px; font-weight: 400; }
footer .sp { flex: 1; }
footer a { color: var(--sand); }

/* responsive */
@media (max-width: 1500px) { .brand .site { display: none; } }
@media (max-width: 1200px) {
  .nav { gap: 18px; }
  .search { width: 200px; }
  .brand .site { display: none; }
}
@media (max-width: 980px) {
  .burger { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; box-shadow: 0 14px 30px rgba(0,0,0,.12); }
  .nav.open { display: flex; }
  .nav > li { padding: 0 var(--gutter); }
  .nav a, .nav button { padding: 12px 0; width: 100%; justify-content: space-between; }
  .nav .on { border-bottom: 0; }
  .menu { position: static; border: 0; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; }
  .search, .avatar { display: none; }
  .band .wrap { grid-template-columns: 1fr 1fr; gap: 10px 0; }
  .band a + a { border-left: 0; padding-left: 0; }
  .grid.c3, .grid.news { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps a:nth-child(3) { border-right: 0; }
  .steps a:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .util .wrap { font-size: 12px; gap: 10px; }
  .util .date { display: none; }
  .band .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps a { border-right: 0; border-bottom: 1px solid var(--line); }
  .ask { flex-direction: column; align-items: stretch; padding: 10px; }
  .ask textarea { font-size: 18px; }
  .session iframe { height: 72vh; min-height: 480px; }
  .session .bar a.btn { display: none; }
  .tries .sep { display: none; }
  .tries button { display: block; margin: 6px 0 0; }
  .ask input { padding: 10px 12px; }
  .assistant iframe { height: 70vh; }
}
@media print { .util, .hdr, .assistant, .band, footer { display: none; } }
