/* FRANK Home Buyers: static rebuild of the 2024 Neve theme look. */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-latin-wght-italic.woff2") format("woff2");
}

:root {
  --accent: #eaa242;        /* nv-primary-accent: nav bar, buttons, footer */
  --accent-2: #f4c064;      /* nv-secondary-accent: button hover */
  --brick: #8e382d;         /* custom-1: top bar */
  --dark: #303030;          /* nv-dark-bg and body text */
  --light: #f8f8f8;
  --white: #ffffff;
  --link: #ff8f20;
  --container: 1170px;
  --gutter: 16px;
  --font: "Rubik", Tahoma, Geneva, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white) url("../img/bg-dots.webp") right center / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--link); text-decoration: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font); line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: 65px; font-weight: 800; }
h2 { font-size: 48px; font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 24px; font-weight: 500; line-height: 1.5; }
h5 { font-size: 18px; font-weight: 400; }
p { margin: 0 0 1.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--dark); color: var(--white); padding: 8px 16px; z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.topbar { background: var(--brick); color: var(--white); font-size: 14px; }
.topbar .container { display: flex; justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; }
.topbar p { margin: 0; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.navbar { background: var(--accent); }
.navbar .container { display: flex; align-items: center; justify-content: center; min-height: 44px; }
.navbar .brand { display: none; }
.navbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.navbar li a {
  display: block; padding: 10px 14px;
  color: var(--dark); text-decoration: none; text-transform: uppercase;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
}
.navbar li a:hover, .navbar li a[aria-current="page"] { color: var(--white); }

/* phone: logo + a CSS-only menu (no scripts on this site) */
.menu { display: none; }

@media (max-width: 959px) {
  .navbar .container { justify-content: space-between; padding-top: 10px; padding-bottom: 10px; position: relative; }
  .nav-desktop { display: none !important; }
  .navbar .brand { display: block; order: 2; margin: 0 auto; }
  .navbar .brand img { height: 46px; width: auto; }
  .menu { display: block; order: 1; }
  .menu > summary {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 34px; border: 1px solid var(--dark); border-radius: 3px;
    cursor: pointer; list-style: none;
  }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu > summary svg { width: 18px; height: 18px; }
  .menu ul {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
    flex-direction: column; background: var(--accent); padding: 8px 0 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,.15);
  }
  .menu li a { padding: 12px var(--gutter); font-size: 15px; text-align: center; }
  .navbar .spacer { order: 3; width: 48px; }
}

/* ---------- shared blocks ---------- */
main { flex: 1 0 auto; padding-bottom: 32px; }

.button {
  display: inline-block; background: var(--accent); color: var(--white);
  font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1;
  padding: 22px 40px; border: 0; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--accent-2); color: var(--white); }
.buttons { display: flex; justify-content: center; margin: 24px 0; }

.panel-dark { background: var(--dark); color: var(--white); }
.panel-dark a:not(.button) { color: var(--accent-2); }

/* page header band on the inner pages */
.page-header { margin-top: 24px; }
.page-header .band {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 160px; padding: 24px var(--gutter);
  background: var(--dark) url("../img/house.webp") center / cover no-repeat;
  overflow: hidden;
}
.page-header .band::before { content: ""; position: absolute; inset: 0; background: rgba(48,48,48,.8); }
.page-header h1 {
  position: relative; width: 100%; margin: 0; padding: 4px 12px;
  background: rgba(48,48,48,.85); color: var(--white); text-align: center; text-transform: uppercase;
  font-size: 36px; font-weight: 700;
}

/* ---------- home ---------- */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 600px; padding: 80px var(--gutter); text-align: center; color: var(--white);
  background: var(--dark) url("../img/house.webp") center / cover no-repeat;
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(48,48,48,.7); backdrop-filter: grayscale(1); }
.hero > * { position: relative; }
.hero .logo { width: 456px; max-width: 100%; margin: 0 auto 24px; }
.hero .tagline { font-size: 20px; font-style: italic; font-weight: 300; margin-bottom: 32px; }
.hero .buttons { margin: 0; }

.home-intro { max-width: 1000px; margin: 0 auto; padding: 56px var(--gutter) 16px; text-align: center; font-size: 20px; font-weight: 400; }
.home-intro .checks { display: inline-block; text-align: left; list-style: none; padding: 0; margin: 0 0 4px; }
.checks li { position: relative; padding-left: 34px; margin: 2px 0; line-height: 1.4; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .35em; width: 20px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M2 8.5l5 5L18 2.5' fill='none' stroke='%23eaa242' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
}

/* ---------- who is frank ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; padding: 24px 0; }
.who-intro { text-align: right; font-size: 14px; }
.who-intro .lead { font-size: 16px; }
.who-intro h2 { font-size: 26px; font-weight: 700; margin: 1em 0; }
.who-photo img { border: 8px solid var(--dark); border-radius: 100px; width: 100%; }
.frank-is { padding: 40px 10% 48px; }
.frank-is h4 { font-size: 24px; font-weight: 400; margin-bottom: 24px; }
.frank-is h2 { color: var(--accent-2); font-size: 48px; margin: 32px 0 8px; }
.frank-is p { font-size: 14px; }

/* ---------- what we do ---------- */
.what-left { padding: 24px 32px 0 48px; }
.what-left h3 { font-size: 23px; font-weight: 700; }
.what-left h5 { font-size: 18px; font-weight: 400; }
.what-left .small { font-size: 13px; }
.what-left h4 { font-size: 24px; font-weight: 400; line-height: 1.6; }
.such-as { padding: 32px 40px; margin-top: 48px; font-size: 18px; font-weight: 400; line-height: 1.3; }
.such-as .intro { font-style: italic; margin-bottom: 8px; }
.such-as h3 { color: var(--accent-2); font-size: 22px; margin: 16px 0 20px 48px; }
.such-as p { margin-bottom: 8px; }

/* ---------- how it works ---------- */
.how { max-width: 1170px; margin: 0 auto; }
.how .lead { text-align: center; font-size: 20px; font-weight: 400; margin: 32px 0 24px; }
.how .panel-dark { padding: 48px 12%; }
.how h4 { color: var(--accent-2); font-size: 26px; font-weight: 600; margin: 24px 0 8px; }
.how .button .chev { display: inline-block; margin-right: 8px; }

/* ---------- why choose frank ---------- */
.why { max-width: 920px; margin: 0 auto; padding: 24px var(--gutter) 0; font-size: 18px; font-weight: 400; }
.why ul { padding-left: 20px; line-height: 1.3; }
.why li { margin-bottom: 6px; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 56px 72px; }
.testimonial { text-align: right; }
.testimonial img { width: 192px; height: 192px; object-fit: cover; border-radius: 50%; margin: 0 auto 32px; }
.testimonial hr { border: 0; border-top: 2px solid var(--accent); margin: 0 0 32px; }
.testimonial blockquote { margin: 0; font-size: 18px; font-style: italic; line-height: 1.6; }
.testimonial cite { display: block; margin-top: 24px; color: var(--accent); font-size: 12px; font-style: normal; font-weight: 600; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; margin-top: 32px; }
.contact .talk { padding: 40px 32px; text-align: center; }
.contact .talk h2 { font-size: 40px; margin-bottom: 16px; }
.contact .talk .aside { font-size: 18px; }
.contact .talk hr { border: 0; border-top: 1px solid var(--white); margin: 24px 0; }
.contact .talk h3 { font-size: 18px; font-weight: 600; }
.contact .talk .mark { height: 180px; width: auto; margin: 24px auto 0; }
.contact .reach { background: var(--light); padding: 40px 32px; }
.contact .reach h3 { font-size: 22px; margin-bottom: 20px; }
.reach-list { list-style: none; margin: 0 0 24px; padding: 0; }
.reach-list li { margin-bottom: 20px; }
.reach-list .label { display: block; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: #6a6a6a; }
.reach-list a { font-size: 22px; font-weight: 500; color: var(--dark); text-decoration: none; }
.reach-list a:hover { color: var(--link); }
.reach .button { margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--accent); color: var(--dark); font-size: 14px; flex-shrink: 0; }
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.site-footer h2 { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.site-footer p { margin: 0; line-height: 1.5; }
.site-footer a { color: var(--dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: block; padding: 2px 0; text-transform: uppercase; font-size: 13px; font-weight: 500; }
.social { display: flex; gap: 10px; align-items: flex-start; }
.social a { display: flex; width: 36px; height: 36px; border-radius: 8px; background: var(--dark); align-items: center; justify-content: center; }
.social a:hover { background: #000; }
.social svg { width: 20px; height: 20px; fill: var(--white); }
.copyright { background: var(--accent); border-top: 1px solid rgba(48,48,48,.15); font-size: 13px; }
.copyright .container { display: block; padding-top: 10px; padding-bottom: 10px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 64px var(--gutter); }

/* ---------- smaller screens ---------- */
@media (max-width: 959px) {
  h1 { font-size: 45px; }
  h2 { font-size: 37px; }
  .two-col, .contact { grid-template-columns: 1fr; }
  .who-intro { text-align: left; }
  .what-left { padding: 24px var(--gutter) 0; }
  .such-as { margin-top: 16px; }
  .testimonials { grid-template-columns: 1fr; padding: 40px 32px; }
  .testimonial { text-align: center; }
  .site-footer .container { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { background-attachment: scroll; }
  .topbar .container { justify-content: center; }
  .hero { min-height: 560px; padding: 56px var(--gutter); }
  .page-header { margin-top: 0; }
  .page-header h1 { font-size: 26px; }
  .home-intro { font-size: 18px; padding-top: 40px; }
  .frank-is { padding: 32px var(--gutter); }
  .frank-is h2 { font-size: 37px; }
  .how .panel-dark { padding: 32px var(--gutter); }
  .such-as { padding: 24px var(--gutter); }
  .such-as h3 { margin-left: 24px; }
  .what-left h4 { font-size: 20px; }
  .contact .talk, .contact .reach { padding: 32px var(--gutter); }
  .contact .talk h2 { font-size: 32px; }
  .reach-list a { font-size: 20px; overflow-wrap: anywhere; }
}
