/* Rank and Rent master template styles.
   Modern plain CSS. No frameworks. Brand colors come from config.json
   and are replaced at build time. */

:root {
  --color-primary: #0079FF;
  --color-navy: #003366;
  --color-accent: #FF8000;
  --color-green: #1E8E4F;
  --color-text: #1a1a1a;
  --color-muted: #555;
  --color-bg-alt: #f7f9fb;
  --color-border: #d9dee3;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max-width: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--color-navy); line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
.lead { font-size: 1.15rem; color: var(--color-muted); }
.text-center { text-align: center; }

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

/* Header and nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand img { max-height: 44px; width: auto; }
.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
}
.site-tagline { display: none; color: var(--color-green); font-weight: 700; margin: 0; }
.hotline {
  margin-left: auto;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 0 0 6px 6px;
  font-size: 1rem;
}
.hotline a { color: #fff; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 2px solid var(--color-navy);
  border-radius: 6px;
  color: var(--color-navy);
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}
.main-nav { display: none; width: 100%; }
.main-nav.open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { border-top: 1px solid var(--color-border); }
.main-nav a {
  display: block;
  padding: 10px 4px;
  color: var(--color-text);
  font-weight: 600;
}
.main-nav a:hover, .main-nav a:focus { color: var(--color-primary); }
.main-nav .dropdown > a::after { content: " +"; color: var(--color-muted); }
.dropdown-menu { list-style: none; margin: 0; padding-left: 16px; }

/* Call bar under the header, visible on small screens */
.call-bar {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  font-size: 1.05rem;
  padding: 10px 16px;
}
.call-bar a { color: #fff; font-weight: 800; }

/* Hero */
.hero {
  background: linear-gradient(rgba(242, 246, 252, 0.92), rgba(242, 246, 252, 0.92));
  padding: 32px 0 40px;
}
.hero-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  text-align: center;
}
.hero-panel .one-liner { font-size: 1.15rem; }
.hero-media { display: none; margin-top: 20px; }
.hero-media img { border-radius: var(--radius); }
.hero-list { list-style: none; padding: 0; text-align: left; max-width: 480px; margin: 0 auto 16px; }
.hero-list li { padding: 6px 0; border-bottom: 1px dashed #ccc; }
.hero-list li::before { content: "\2713  "; color: var(--color-green); font-weight: 800; }
.action-wrapper { border-top: 1px solid var(--color-border); margin-top: 20px; padding-top: 20px; }

/* Buttons */
.button {
  display: inline-block;
  border-radius: 6px;
  text-align: center;
  font-weight: 800;
  padding: 14px 22px;
  cursor: pointer;
}
.button:hover, .button:focus { text-decoration: none; opacity: 0.92; }
.button-primary { background: var(--color-accent); color: #fff; font-size: 1.15rem; width: 100%; }
.button-primary a { color: #fff; }
.button-default { background: #fff; color: var(--color-text); border: 1px solid var(--color-border); font-size: 1rem; padding: 10px 18px; }

/* Sections */
.section { padding: 44px 0; }
.section.alt { background: var(--color-bg-alt); }
.kicker {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 121, 255, 0.1);
  color: var(--color-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card img { border-radius: 8px; margin-bottom: 12px; width: 100%; }
.card h3 { margin-top: 4px; }

.boxed { background: #f6f6f6; border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.boxed-header { background: var(--color-primary); color: #fff; font-weight: 800; font-size: 1.25rem; padding: 12px 18px; }
.boxed-body { padding: 16px 18px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 6px 0 6px 26px; position: relative; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--color-green); font-weight: 800; }

.green-bar {
  background: var(--color-green);
  color: #fff;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.5;
  padding: 20px 16px;
  margin-top: 32px;
}
.green-bar a { color: #fff; font-weight: 800; }

.area-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.area-table th, .area-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--color-border); }
.area-table th { background: var(--color-bg-alt); color: var(--color-navy); }
.note { font-size: 0.9rem; color: var(--color-muted); }

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: #fff;
}
.faq-item summary { font-weight: 700; color: var(--color-navy); cursor: pointer; font-size: 1.05rem; }
.faq-item summary:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.faq-item p { margin: 10px 0 0; }

/* Footer */
.site-footer { background: #111; color: #fff; text-align: center; padding: 32px 0 24px; border-bottom: 5px solid var(--color-navy); }
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer nav ul { list-style: none; margin: 0 0 16px; padding: 0; }
.site-footer nav li { display: inline-block; margin: 4px 10px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.footer-address p { margin: 0 0 4px; }

/* Mobile call button */
.mobile-call-btn { display: none; }
.back-to-top {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 90px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: none;
  background: #111;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.6;
  z-index: 60;
}
.back-to-top.visible { display: block; }
.back-to-top:hover { opacity: 1; }

@media (max-width: 767px) {
  .hotline { display: none; }
  .mobile-call-btn {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 70;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  .mobile-call-btn svg { width: 28px; height: 28px; }
  .call-pulse {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(0, 121, 255, 0.6);
    border-radius: 50%;
    animation: callPulse 1.8s infinite;
    z-index: -1;
  }
}

@keyframes callPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (min-width: 768px) {
  h1 { font-size: 2.4rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .hero-media { display: block; }
  .hero-inner { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: center; }
  .button-primary { width: auto; padding-left: 48px; padding-right: 48px; }
  .site-tagline { display: block; }
}

@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; width: auto; margin-left: auto; }
  .main-nav > ul { display: flex; gap: 4px; }
  .main-nav li { border-top: none; position: relative; }
  .main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 0 0 8px 8px;
    padding: 8px 0;
    z-index: 60;
  }
  .main-nav .dropdown:hover > .dropdown-menu,
  .main-nav .dropdown:focus-within > .dropdown-menu { display: block; }
  .main-nav .dropdown-menu a { padding: 8px 16px; }
  .header-inner { flex-wrap: nowrap; }
  .hotline { order: 3; }
  .main-nav { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .call-pulse { animation: none; }
}

@media print {
  .site-header, .call-bar, .mobile-call-btn, .back-to-top, .green-bar { display: none; }
  body { font-size: 12pt; }
  .card, .hero-panel { box-shadow: none; border: 1px solid #ccc; }
}
