/* =========================================================
   RKS BROTHERS — SHARED BRAND STYLESHEET
   Colors are sampled directly from the RKS Brothers logo:
     Gold ring   -> #e6b100
     Navy text   -> #183459
   This file holds everything that should look identical on
   every page (header, nav, buttons, section headings, cards,
   footer, map frames) plus the mobile-first responsive rules.
   Page-specific sections (hero art, floor plans, modal, etc.)
   stay in each page's own <style> block but reuse these
   variables so colors always stay in sync.
   ========================================================= */

:root {
  --rks-navy: #183459;
  --rks-navy-deep: #060f1f;
  --rks-navy-light: #1a4fa0;
  --rks-gold: #e6b100;
  --rks-gold-light: #f7c600;
  --rks-bg: #f4f6f9;
  --rks-text: #1e293b;
  --rks-muted: #475569;
  --rks-border: #e2e8f0;
  --rks-white: #ffffff;

  --container-pad: clamp(20px, 6vw, 7%);
  --section-pad-y: clamp(48px, 9vw, 90px);
  --header-h: 86px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

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

body {
  background: var(--rks-bg);
  color: var(--rks-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; }

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

/* ---------- HEADER / NAV ---------- */
header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 14px var(--container-pad);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-wrap img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 24px;
  color: var(--rks-navy);
  line-height: 1;
  white-space: nowrap;
}

.logo-text span {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--rks-gold);
  font-weight: bold;
  white-space: nowrap;
  display: block;
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--rks-navy);
  border-radius: 2px;
  transition: 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

nav ul.nav-menu {
  display: flex;
  list-style: none;
  gap: clamp(14px, 2vw, 28px);
  flex-wrap: wrap;
  align-items: center;
}

nav ul.nav-menu li a {
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  font-size: 15px;
  transition: 0.3s ease;
  white-space: nowrap;
}

nav ul.nav-menu li a:hover { color: var(--rks-gold); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  background: var(--rks-gold);
  color: #0f172a;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s ease;
  box-shadow: 0 8px 20px rgba(230,177,0,0.25);
}

.btn:hover {
  transform: translateY(-4px);
  background: var(--rks-gold-light);
}

/* ---------- SECTIONS / TITLES ---------- */
section {
  padding: var(--section-pad-y) var(--container-pad);
}

.section-title {
  text-align: center;
  margin-bottom: clamp(32px, 6vw, 55px);
}

.section-title h2 {
  font-size: clamp(28px, 5vw, 42px);
  color: var(--rks-navy);
  margin-bottom: 12px;
  padding-bottom: 16px;
  position: relative;
  word-wrap: break-word;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  border-radius: 2px;
  background: var(--rks-gold);
}

.section-title p {
  max-width: 750px;
  margin: auto;
  color: var(--rks-muted);
  font-size: clamp(15px, 2vw, 16px);
}

/* ---------- GRIDS / CARDS (services, about-cards, generic) ---------- */
.services,
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.card {
  background: white;
  padding: clamp(28px, 4vw, 40px) clamp(20px, 4vw, 30px);
  border-radius: 22px;
  border-top: 5px solid var(--rks-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: 0.35s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card h3 {
  color: var(--rks-navy);
  font-size: clamp(20px, 2.5vw, 26px);
  margin-bottom: 14px;
}

.card-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 22px;
  display: block;
}

/* ---------- ABOUT (image + text split) ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(30px, 6vw, 60px);
  align-items: center;
}

.about img {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* ---------- STATS / DARK BANNER SECTIONS ---------- */
.stats {
  background: linear-gradient(135deg, var(--rks-navy-deep), var(--rks-navy));
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(16px, 3vw, 30px);
  margin-top: 40px;
}

.stat-box {
  background: rgba(255,255,255,0.08);
  padding: clamp(24px, 4vw, 35px) clamp(16px, 3vw, 25px);
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.stat-box h3 {
  color: var(--rks-gold-light);
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 10px;
  word-wrap: break-word;
}

.stat-box h3 a { color: var(--rks-gold-light); }
.stat-box h3 a:hover { color: var(--rks-gold); }

/* ---------- CONTACT FORM ---------- */
.contact {
  background: white;
  border-radius: 25px;
  padding: clamp(28px, 5vw, 50px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
}

.contact form,
.contact-form form {
  display: grid;
  gap: 16px;
}

.contact input,
.contact textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  transition: 0.3s ease;
  background: white;
  color: var(--rks-text);
}

.contact input:focus,
.contact textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--rks-gold);
  box-shadow: 0 0 0 4px rgba(230,177,0,0.15);
}

.contact-form button {
  background: var(--rks-gold);
  color: #0f172a;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form button:hover { background: var(--rks-gold-light); }

/* ---------- MAP EMBED WRAPPER ---------- */
.map-wrap {
  background: white;
  padding: 16px;
  border-radius: 25px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
  overflow: hidden;
}

.map-wrap iframe,
section#location iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 20px;
  display: block;
}

/* ---------- FOOTER ---------- */
footer {
  background: #020617;
  color: white;
  text-align: center;
  padding: clamp(24px, 5vw, 30px) 20px;
}

footer p { font-size: clamp(13px, 2vw, 15px); }

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* Tablet / small desktop: collapse to hamburger nav */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  nav ul.nav-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    padding: 10px;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }

  nav ul.nav-menu.active {
    max-height: 70vh;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
  }

  nav ul.nav-menu li { width: 100%; }

  nav ul.nav-menu li a {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 16px;
  }

  nav ul.nav-menu li a:hover { background: #f8faff; }
}

/* General mobile adjustments */
@media (max-width: 768px) {
  .logo-text h1 { font-size: 21px; }
  .logo-text span { font-size: 10px; }

  .about { text-align: center; }
  .about > div .section-title,
  .about > div .btn { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .map-wrap iframe,
  section#location iframe { height: 380px; }
}

/* Small phones */
@media (max-width: 480px) {
  header { padding: 12px 5%; }

  .logo-wrap img { width: 48px; height: 48px; }
  .logo-text h1 { font-size: 18px; }
  .logo-text span { font-size: 9px; letter-spacing: 1px; }

  .btn { padding: 13px 26px; font-size: 14px; width: 100%; text-align: center; }

  section { padding: 44px 6%; }

  .map-wrap iframe,
  section#location iframe { height: 280px; }

  .card-img { width: 100px; height: 100px; }
}
