/* Alloway & Associates Professional Corporation
   Static rebuild of alloway.net (originally WordPress, custom "alloway" theme). */

:root {
  --navy: #012e72;
  --navy-dark: #011f4d;
  --blue: #25458d;
  --orange: #fe6b03;
  --orange-dark: #d95a00;
  --text: #333333;
  --muted: #646464;
  --line: #e8e8e8;
  --tint: #f5f6f9;
  --white: #ffffff;
  --wrap: 1140px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:hover { color: var(--orange); }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 2.1rem; font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--blue); margin-top: 1.6em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 20px;
}
.brand img { width: 250px; height: auto; }

.nav-toggle {
  display: none;
  background: var(--navy); color: #fff; border: 0; border-radius: var(--radius);
  font: inherit; font-weight: 600; padding: 8px 14px; cursor: pointer;
}

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a, .main-nav .submenu-btn {
  display: block; padding: 10px 12px;
  color: var(--navy); text-decoration: none;
  font: inherit; font-size: .92rem; font-weight: 600;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.main-nav a:hover, .main-nav .submenu-btn:hover,
.main-nav a[aria-current="page"] { color: var(--orange); }
.main-nav .submenu-btn::after { content: " \25BE"; font-size: .8em; }

.main-nav .cta a {
  background: var(--orange); color: #fff; border-radius: var(--radius); margin-left: 6px;
}
.main-nav .cta a:hover { background: var(--orange-dark); color: #fff; }

.main-nav .submenu {
  display: none;
  position: absolute; left: 0; top: 100%;
  min-width: 290px; background: var(--white);
  border-top: 3px solid var(--orange);
  box-shadow: 0 8px 24px rgba(1, 46, 114, .15);
  padding: 6px 0;
}
.main-nav .submenu a { font-weight: 400; padding: 8px 18px; white-space: normal; }
.main-nav .submenu a:hover { background: var(--tint); }
.main-nav li.open > .submenu { display: block; }
@media (hover: hover) and (min-width: 961px) {
  .main-nav li:hover > .submenu { display: block; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .brand img { width: 200px; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 3px solid var(--navy);
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
    max-height: calc(100vh - 84px); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 8px 20px 16px; gap: 0; }
  .main-nav a, .main-nav .submenu-btn { width: 100%; text-align: left; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav .submenu { position: static; box-shadow: none; border-top: 0; padding: 0 0 0 14px; min-width: 0; }
  .main-nav .cta a { margin: 12px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- Home hero slider ---------- */
.hero {
  position: relative;
  background: var(--navy) url("/assets/img/hero.jpg") center / cover no-repeat;
  color: #fff;
  min-height: 460px;
  display: flex; align-items: center;
}
.hero .wrap { width: 100%; }
.slides { position: relative; min-height: 270px; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
  max-width: 680px;
}
.slide.active { opacity: 1; visibility: visible; }
.slide h2 { color: #fff; font-size: 2.6rem; margin-bottom: .4em; }
.slide p { font-size: 1.1rem; color: #e6ecf7; }
.btn {
  display: inline-block;
  background: var(--orange); color: #fff; text-decoration: none;
  font-weight: 700; padding: 12px 26px; border-radius: var(--radius);
  border: 0; font: inherit; font-weight: 700; cursor: pointer;
}
.btn:hover { background: var(--orange-dark); color: #fff; }

.slider-controls {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; justify-content: center; align-items: center; gap: 10px;
}
.slider-controls button.dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer;
}
.slider-controls button.dot[aria-current="true"] { background: var(--orange); border-color: var(--orange); }
.slider-controls .arrow {
  background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 50%;
  width: 34px; height: 34px; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.slider-controls .arrow:hover { background: var(--orange); }

@media (max-width: 700px) {
  .hero { min-height: 420px; }
  .slides { min-height: 300px; }
  .slide h2 { font-size: 1.8rem; }
  .slide p { font-size: 1rem; }
}

/* ---------- Home sections ---------- */
.welcome { background: var(--tint); padding: 56px 0; text-align: center; }
.welcome .wrap { max-width: 860px; }
.welcome p { font-size: 1.08rem; }

.expertise { padding: 56px 0 70px; }
.expertise h2 { text-align: center; margin-bottom: 1.2em; }
.tiles {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.tiles a {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; text-decoration: none; color: var(--navy); font-weight: 600;
  padding: 28px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; height: 100%;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tiles a:hover { border-color: var(--orange); box-shadow: 0 8px 20px rgba(1,46,114,.1); transform: translateY(-2px); color: var(--navy); }
.tiles img { width: 96px; height: 96px; }

/* ---------- Inner pages ---------- */
.page-banner {
  background: var(--navy) url("/assets/img/hero.jpg") center 40% / cover no-repeat;
  color: #fff; padding: 54px 0;
}
.page-banner h1 { color: #fff; margin: 0; }
.breadcrumb { font-size: .88rem; color: #c9d4ea; margin-bottom: 6px; }
.breadcrumb a { color: #c9d4ea; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 50px;
  padding-top: 46px; padding-bottom: 60px;
}
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; gap: 30px; } }

.content > :first-child { margin-top: 0; }
.content h3 { margin-top: 1.6em; }
.content .lead { font-size: 1.1rem; }
.callout {
  border-left: 4px solid var(--orange); background: var(--tint);
  padding: 16px 20px; margin: 1.5em 0;
}

.sidebar .box {
  background: var(--tint); border-top: 3px solid var(--navy);
  padding: 22px; margin-bottom: 26px; border-radius: 0 0 var(--radius) var(--radius);
}
.sidebar h2 { font-size: 1.15rem; margin-bottom: .8em; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a {
  display: block; padding: 7px 0; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none;
}
.sidebar li a:hover, .sidebar li a[aria-current="page"] { color: var(--orange); }

/* ---------- Forms ---------- */
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: .95rem;
  padding: 10px 12px; border: 1px solid #cfd5e0; border-radius: var(--radius);
  background: #fff; margin-bottom: 12px; color: var(--text);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.form textarea { min-height: 110px; resize: vertical; }
.form .btn { width: 100%; }
.form .note { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Team ---------- */
.lawyer {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.lawyer:first-of-type { padding-top: 0; }
.lawyer h2 { margin-bottom: .1em; }
.lawyer .role { color: var(--orange); font-weight: 600; margin-bottom: .6em; }
.lawyer h4 { margin-top: 1em; }
@media (max-width: 600px) { .lawyer { grid-template-columns: 1fr; } .lawyer .photo { max-width: 200px; } }

.photo img { border-radius: var(--radius); }
.photo-placeholder {
  aspect-ratio: 1 / 1; width: 100%;
  border-radius: var(--radius);
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 700; letter-spacing: .05em;
}

.bio-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 10px; }
@media (max-width: 600px) { .bio-head { grid-template-columns: 1fr; } .bio-head .photo { max-width: 220px; } }

.contact-table { border-collapse: collapse; }
.contact-table th { text-align: left; padding: 4px 18px 4px 0; color: var(--navy); }
.contact-table td { padding: 4px 0; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 1.4em; }
.value { border: 1px solid var(--line); border-top: 3px solid var(--orange); padding: 18px 20px; border-radius: var(--radius); }
.value h3 { margin-top: 0; font-size: 1.05rem; }
.value p { margin: 0; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 1.8em; }
.contact-card { background: var(--tint); padding: 20px; border-radius: var(--radius); }
.contact-card h3 { margin: 0 0 .4em; font-size: 1rem; }
.contact-card p { margin: 0; }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d6deee; font-size: .93rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1.3fr 1.3fr; gap: 40px; padding-top: 46px; padding-bottom: 36px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 26px; } }
.site-footer h2 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer address { font-style: normal; }
.copyright { background: var(--navy-dark); color: #a9b6d1; font-size: .82rem; padding: 14px 0; }
.copyright .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.copyright a { color: #a9b6d1; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 80px 20px; }
