/* Sheridan Legal — homepage styles (Option C: bold and modern)
   Change the colours here and they update across the whole site. */

:root {
  --navy: #0d1b2e;
  --navy-2: #152a45;
  --navy-3: #2b4263;
  --accent: #7fd1c7;       /* swap this one value to change the accent colour */
  --accent-ink: #0d1b2e;   /* text colour used on top of the accent */
  --paper: #f3f5f8;
  --text: #2a3748;
  --muted: #c9d6e6;
  --white: #ffffff;
  --head: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 18px; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

h1, h2, h3 { font-family: var(--head); letter-spacing: -0.02em; margin: 0; }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; padding: 18px 32px; border-radius: 6px;
  font-size: 17px; line-height: 1.2; border: 0; cursor: pointer;
}
.btn:hover { background: var(--white); color: var(--accent-ink); }

/* ---------- Header and navigation ---------- */
.site-header { position: relative; z-index: 30; background: var(--navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.logo { display: block; line-height: 0; }
.logo img { display: block; width: 178px; height: 48px; }

.nav-toggle {
  display: none; background: transparent; color: var(--white);
  border: 1px solid var(--navy-3); border-radius: 6px; padding: 12px 16px;
  font: 600 15px var(--body); cursor: pointer; min-height: 44px;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: 4px 8px; }
.nav-list > li > a,
.nav-list > li > button.menu-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--white); text-decoration: none; background: transparent; border: 0;
  font: 500 15px var(--body); padding: 12px 14px; cursor: pointer; border-radius: 6px; min-height: 44px;
}
.nav-list > li > a:hover,
.nav-list > li > button.menu-btn:hover { color: var(--accent); }
.menu-btn::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-list > li.book > button.menu-btn { background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 12px 20px; }
.nav-list > li.book > button.menu-btn:hover { background: var(--white); color: var(--accent-ink); }

.has-menu { position: relative; }
.has-menu.wide { position: static; }
.menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 250px;
  background: var(--navy-2); border: 1px solid var(--navy-3); border-top: 3px solid var(--accent);
  padding: 16px 12px; z-index: 40;
}
.has-menu.right .menu { left: auto; right: 0; }
.has-menu.wide .menu { left: var(--gutter); right: var(--gutter); top: 100%; }
.has-menu.open > .menu { display: block; }
@media (hover: hover) and (min-width: 961px) {
  .has-menu:hover > .menu { display: block; }
}
.menu a { display: block; color: var(--white); text-decoration: none; padding: 9px 12px; border-radius: 4px; font-size: 15px; }
.menu a:hover { background: var(--navy-3); color: var(--accent); }
.menu .menu-title { display: block; font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); padding: 4px 12px 8px; }
.menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 24px; }
.menu-col a.head-link { font-weight: 600; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); }
.hero-wrap { position: relative; display: flex; flex-direction: column; }
.hero-photo {
  position: absolute; inset: 0; z-index: 0; background-color: #1b3a5c;
  background-image:
    linear-gradient(90deg, rgba(13,27,46,0.8) 0%, rgba(13,27,46,0.62) 28%, rgba(13,27,46,0) 50%),
    url('../img/hero-lighthouse.jpg');
  background-repeat: no-repeat;
  background-size: 100% 100%, 135% auto;
  background-position: 0 0, 0% 55%;
}
.hero-text { position: relative; z-index: 1; max-width: 640px; padding: 112px var(--gutter) 120px; }
.hero h1 { font-weight: 700; font-size: 84px; line-height: 1; letter-spacing: -0.03em; margin: 0 0 28px; }
.hero .tagline { font-size: 24px; line-height: 1.45; margin: 0 0 40px; color: var(--white); text-shadow: 0 1px 12px rgba(13,27,46,0.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.hero-phones { margin: 20px 0 0; font-size: 15px; color: var(--white); text-shadow: 0 1px 10px rgba(13,27,46,0.6); }
.hero-phones a { color: var(--white); }
.hero-phones a:hover { color: var(--accent); }

/* ---------- Service tiles ---------- */
.services { padding: 88px 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.tile { display: block; text-decoration: none; color: var(--white); background: var(--navy-2); padding: 40px 36px; border-top: 3px solid var(--accent); }
.tile:hover { background: var(--navy-3); color: var(--white); }
.tile h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.tile p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); }
.tile .more { display: inline-block; margin-top: 20px; color: var(--accent); font-weight: 600; }

/* ---------- Light intro ---------- */
.intro { background: var(--paper); color: var(--navy); padding: 88px 0; }
.intro .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.intro h2 { flex: 1 1 400px; min-width: 0; font-size: 44px; line-height: 1.1; }
.intro .copy { flex: 1 1 420px; min-width: 0; font-size: 19px; line-height: 1.65; color: var(--text); }
.intro .copy p { margin: 0 0 20px; }
.intro .copy p:last-child { margin: 0; }

/* ---------- Welcome ---------- */
.welcome { padding: 88px 0; }
.welcome .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.welcome .photo { flex: 0 1 340px; width: 100%; min-width: 0; aspect-ratio: 2 / 3; max-height: 540px; background: var(--navy-2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center; padding: 24px; }
.welcome .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.welcome .text { flex: 1 1 440px; min-width: 0; }
.eyebrow { font-family: var(--head); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.welcome h2 { font-size: 40px; line-height: 1.12; margin-bottom: 24px; }
.welcome p { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0 0 18px; }
.welcome p:last-child { margin: 0; }

/* ---------- Buying or selling ---------- */
.property { padding: 0 0 88px; }
.property-card { background: var(--accent); color: var(--navy); display: flex; flex-wrap: wrap; align-items: stretch; }
.property-text { flex: 1 1 380px; min-width: 0; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 32px; }
.property-text h2 { font-size: 48px; line-height: 1.05; letter-spacing: -0.03em; }
.property-card .btn { background: var(--navy); color: var(--white); }
.property-card .btn:hover { background: var(--white); color: var(--navy); }
.property-cover { flex: 1 1 420px; min-width: 0; background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.property-cover a { display: block; line-height: 0; }
.property-cover img { display: block; width: 100%; max-width: 320px; height: auto; box-shadow: 0 12px 32px rgba(13,27,46,0.28); }

/* ---------- Reviews ---------- */
.reviews { padding: 0 0 88px; }
.reviews h2 { font-size: 28px; margin-bottom: 20px; }
.reviews-sub { margin: 0 0 32px; font-size: 18px; color: var(--muted); }
.stars { color: #f5c518; letter-spacing: 2px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.review { margin: 0; background: var(--navy-2); border-top: 3px solid var(--accent); padding: 32px; }
.review .stars { font-size: 20px; margin-bottom: 16px; }
.review blockquote { margin: 0 0 20px; }
.review blockquote p { margin: 0 0 10px; font-size: 18px; line-height: 1.6; color: var(--white); }
.review blockquote p:last-child { margin-bottom: 0; }
.review figcaption { font-weight: 600; font-size: 15px; color: var(--muted); }
.reviews-cta { margin: 32px 0 0; }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); padding: 14px 28px; }
.btn-outline:hover { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Closing call to action ---------- */
.cta { background: var(--navy-2); padding: 88px var(--gutter); text-align: center; }
.cta h2 { font-size: 64px; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 12px; }
.cta p { font-size: 22px; margin: 0 0 32px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.footer-grid > div { flex: 1 1 200px; min-width: 0; }
.footer-grid img { display: block; width: 148px; height: 40px; margin-bottom: 14px; }
.footer-grid h2 { font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--white); margin-bottom: 6px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-grid .tel { color: var(--white); font-weight: 600; text-decoration: none; }
.copyright { margin-top: 32px; font-size: 13px; color: #9fb0c6; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-2); border-top: 3px solid var(--accent); padding: 12px var(--gutter) 24px; max-height: 80vh; overflow-y: auto; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a, .nav-list > li > button.menu-btn { width: 100%; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--navy-3); border-radius: 0; font-size: 17px; }
  .nav-list > li.book > button.menu-btn { margin-top: 12px; border-radius: 6px; padding: 14px 20px; border-bottom: 0; }
  .has-menu, .has-menu.wide { position: static; }
  .menu, .has-menu.wide .menu, .has-menu.right .menu { position: static; border: 0; border-left: 3px solid var(--navy-3); background: transparent; min-width: 0; padding: 4px 0 8px 12px; margin: 4px 0 8px; }
  .menu-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 860px) {
  .hero-photo {
    position: relative; order: -1; height: 300px;
    background-image: url('../img/hero-lighthouse.jpg');
    background-size: cover; background-position: 45% 55%;
  }
  .hero-text { max-width: none; padding: 40px var(--gutter) 48px; }
  .hero h1 { font-size: 46px; }
  .hero .tagline { font-size: 20px; text-shadow: none; }
  .hero-phones { text-shadow: none; }
  .tiles { grid-template-columns: 1fr; }
  .services, .intro, .welcome { padding: 56px 0; }
  .intro h2, .welcome h2 { font-size: 32px; }
  .welcome .photo { max-width: 300px; }
  .property { padding-bottom: 56px; }
  .property-text { padding: 32px 24px; gap: 24px; }
  .property-text h2 { font-size: 36px; }
  .property-cover { padding: 16px; }
  .reviews { padding-bottom: 56px; }
  .cta { padding: 56px var(--gutter); }
  .cta h2 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Inner pages (service pages) ---------- */
.page-hero { background: var(--navy); padding: 72px 0 64px; }
.page-hero h1 { font-size: 64px; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 20px; }
.page-hero .lead { font-size: 22px; line-height: 1.5; color: var(--muted); max-width: 720px; margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-body { background: var(--paper); color: var(--navy); padding: 80px 0; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.prose { max-width: 720px; color: var(--text); font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: 30px; line-height: 1.15; color: var(--navy); margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; }
.prose a { color: var(--navy-3); font-weight: 600; }
.prose a:hover { color: var(--navy); }
.callout { background: var(--navy); color: var(--white); padding: 36px; margin-top: 48px; }
.callout h2 { color: var(--white); font-size: 28px; margin: 0 0 10px; }
.callout p { color: var(--muted); }
.callout a.tel { color: var(--accent); }
.callout-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; font-size: 15px; color: var(--muted); }
.side { background: var(--white); padding: 28px 28px 20px; border-top: 3px solid var(--accent); }
.side h2 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-3); margin: 0 0 10px; }
.side ul { list-style: none; margin: 0 0 24px; padding: 0; }
.side li a { display: block; padding: 9px 0; color: var(--navy); text-decoration: none; font-size: 16px; border-bottom: 1px solid #e1e6ee; }
.side li a:hover { color: var(--navy-3); text-decoration: underline; }
.side li a[aria-current="page"] { font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
.quote-band { background: var(--navy); padding: 72px 0; }
.quote-band .review { max-width: 820px; margin: 0 auto; }
@media (max-width: 960px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 860px) {
  .page-hero { padding: 48px 0 44px; }
  .page-hero h1 { font-size: 44px; }
  .page-hero .lead { font-size: 19px; }
  .page-body { padding: 56px 0; }
  .callout { padding: 28px 24px; }
  .quote-band { padding: 48px 0; }
}
