/* =========================================================
   Ricky Construction — Global Stylesheet
   https://rickyconstructions.com
   ========================================================= */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --navy-3: #1d4e89;
  --orange: #f97316;
  --orange-2: #fb923c;
  --gold: #fbbf24;
  --sky: #38bdf8;
  --green: #22c55e;
  --red: #ef4444;
  --purple: #8b5cf6;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --dark: #0f172a;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.15);
  --shadow-lg: 0 20px 50px rgba(11, 37, 69, 0.25);
  --radius: 14px;
  --font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--light);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-2); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Top bar ---------------- */
.topbar {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #dbeafe;
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--gold); }
.topbar a:hover { color: #fff; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(11, 37, 69, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-text { line-height: 1.15; }
.brand-text .brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.brand-text .brand-tag {
  font-size: 0.72rem;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.25s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
}
.nav-cta {
  background: linear-gradient(135deg, var(--navy-3), var(--navy));
  color: #fff !important;
  margin-left: 6px;
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--orange), var(--orange-2)) !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(11, 37, 69, 0.72), rgba(19, 49, 92, 0.55)),
              url('../images/hero.jpg') center/cover no-repeat;
  color: #fff;
}
.hero-content { max-width: 720px; padding: 80px 0; }
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: var(--navy);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.hero h1 span { color: var(--orange-2); }
.hero p {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 34px;
  max-width: 600px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 12px 32px rgba(249, 115, 22, 0.55); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover { background: #fff; color: var(--navy); transform: translateY(-3px); }
.btn-navy {
  background: linear-gradient(135deg, var(--navy-3), var(--navy));
  color: #fff;
}
.btn-navy:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 12px 32px rgba(11, 37, 69, 0.4); }

/* ---------------- Sections ---------------- */
.section { padding: 90px 0; }
.section-alt { background: linear-gradient(180deg, #eef4fb 0%, #ffffff 100%); }
.section-dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 60%, #2563eb 100%);
  color: #fff;
}
.section-title { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-title .kicker {
  display: inline-block;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 14px;
}
.section-dark .section-title h2 { color: #fff; }
.section-title p { color: var(--gray); font-size: 1.05rem; }
.section-dark .section-title p { color: #cbd5e1; }

/* ---------------- Cards / grids ---------------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-img { height: 220px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: 10px; }
.card-body p { color: var(--gray); font-size: 0.96rem; flex: 1; }
.card-link {
  margin-top: 16px;
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover { gap: 10px; color: var(--navy); }

.icon-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--orange);
  transition: transform 0.3s ease;
}
.icon-card:hover { transform: translateY(-6px); }
.icon-card .icon {
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  color: #fff;
}
.icon-blue { background: linear-gradient(135deg, var(--navy-3), var(--sky)); }
.icon-orange { background: linear-gradient(135deg, var(--orange), var(--gold)); }
.icon-green { background: linear-gradient(135deg, #16a34a, var(--green)); }
.icon-purple { background: linear-gradient(135deg, #6d28d9, var(--purple)); }
.icon-red { background: linear-gradient(135deg, #b91c1c, var(--red)); }
.icon-teal { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.icon-card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.15rem; }
.icon-card p { color: var(--gray); font-size: 0.94rem; }

/* ---------------- Stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .stat-number {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--orange-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .stat-label { color: #cbd5e1; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 0.85rem; }

/* ---------------- Split / feature rows ---------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split h2 { color: var(--navy); font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 18px; font-weight: 800; }
.split p { color: var(--gray); margin-bottom: 16px; }
.check-list { list-style: none; margin: 20px 0 28px; }
.check-list li {
  padding: 8px 0 8px 34px;
  position: relative;
  color: var(--dark);
  font-weight: 600;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 8px;
  width: 24px; height: 24px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800;
}

/* ---------------- Page banner (interior pages) ---------------- */
.page-banner {
  background: linear-gradient(rgba(11, 37, 69, 0.82), rgba(19, 49, 92, 0.75)),
              url('../images/hero.jpg') center/cover no-repeat;
  color: #fff;
  padding: 90px 0 70px;
  text-align: center;
}
.page-banner h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 12px; }
.page-banner p { color: #cbd5e1; max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb { margin-top: 18px; font-size: 0.9rem; color: #93c5fd; }
.breadcrumb a { color: var(--gold); font-weight: 600; }
.breadcrumb a:hover { color: #fff; }

/* ---------------- Forms ---------------- */
.form-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 44px;
  max-width: 780px;
  margin: 0 auto;
}
.form-wrap h2 { color: var(--navy); font-size: 1.7rem; margin-bottom: 8px; }
.form-wrap .form-sub { color: var(--gray); margin-bottom: 28px; font-size: 0.98rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
  font-size: 0.94rem;
}
.form-group label .req { color: var(--red); }
.form-group label .opt { color: var(--gray); font-weight: 500; font-size: 0.85rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background: #fbfdff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.consent-box {
  background: #f1f5f9;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 18px;
}
.consent-box .consent-title {
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 0.98rem;
}
.checkbox-line { display: flex; align-items: flex-start; gap: 12px; }
.checkbox-line input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: 3px;
  accent-color: var(--orange);
  flex-shrink: 0;
  cursor: pointer;
}
.checkbox-line label { font-size: 0.9rem; color: #334155; font-weight: 500; cursor: pointer; }
.checkbox-line label a { font-weight: 700; }
.disclosure {
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 10px;
  line-height: 1.55;
  border-left: 3px solid var(--orange);
  padding-left: 12px;
}

.form-success {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.form-success .success-icon {
  width: 70px; height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, var(--green));
  color: #fff;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
}
.form-success h2 { color: #166534; margin-bottom: 10px; }
.form-success p { color: #166534; }
.form-error {
  background: #fef2f2;
  border: 2px solid var(--red);
  border-radius: 10px;
  padding: 14px 18px;
  color: #b91c1c;
  margin-bottom: 22px;
  font-weight: 600;
}

/* ---------------- Testimonials ---------------- */
.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 6px; left: 22px;
  font-size: 4.5rem;
  color: var(--orange);
  opacity: 0.25;
  font-family: Georgia, serif;
}
.testimonial .stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 12px; }
.testimonial p { color: var(--gray); font-style: italic; margin-bottom: 18px; }
.testimonial .t-author { font-weight: 800; color: var(--navy); }
.testimonial .t-role { font-size: 0.85rem; color: var(--orange); font-weight: 600; }

/* ---------------- FAQ ---------------- */
.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font);
}
.faq-q::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--orange);
  font-weight: 800;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p { padding: 0 24px 20px; color: var(--gray); }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------------- Legal pages ---------------- */
.legal-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 50px;
  max-width: 900px;
  margin: 0 auto;
}
.legal-content h2 {
  color: var(--navy);
  font-size: 1.4rem;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-light);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { color: var(--navy-3); font-size: 1.1rem; margin: 20px 0 8px; }
.legal-content p, .legal-content li { color: #334155; font-size: 0.96rem; margin-bottom: 10px; }
.legal-content ul, .legal-content ol { padding-left: 26px; margin-bottom: 14px; }
.legal-content .updated {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  border-radius: var(--radius);
  padding: 56px 44px;
  text-align: center;
  color: var(--navy);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p { font-size: 1.08rem; margin-bottom: 26px; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-band .btn-navy { box-shadow: 0 10px 26px rgba(11, 37, 69, 0.35); }

/* ---------------- Info tiles (contact) ---------------- */
.info-tile {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 5px solid var(--orange);
}
.info-tile .icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-3), var(--sky));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.info-tile h3 { color: var(--navy); margin-bottom: 8px; }
.info-tile p { color: var(--gray); font-size: 0.95rem; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, #071a33 100%);
  color: #cbd5e1;
  padding: 70px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand img { width: 72px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; color: #94a3b8; }
.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; font-size: 0.93rem; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-col a:hover { color: var(--orange-2); padding-left: 5px; }
.footer-contact p { font-size: 0.93rem; margin-bottom: 12px; color: #94a3b8; }
.footer-contact strong { color: #fff; }
.footer-contact a { color: var(--gold); }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  color: #94a3b8;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: var(--orange-2); }

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    box-shadow: 0 14px 30px rgba(11, 37, 69, 0.18);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .main-nav.open { max-height: 560px; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; }
  .main-nav a { padding: 13px 16px; }
  .nav-cta { margin-left: 0; text-align: center; }
  .section { padding: 64px 0; }
  .form-wrap { padding: 30px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .legal-content { padding: 30px 22px; }
  .cta-band { padding: 42px 24px; }
  .topbar .container { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero { min-height: 78vh; }
  .hero-buttons .btn { width: 100%; }
  .brand-text .brand-name { font-size: 1.1rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}
