/*
 Theme Name: RJ Solutions Group Theme
 Theme URI: https://rjsg.biz
 Author: RJ Solutions Group
 Description: Custom StoryBrand-style theme for RJ Solutions Group - Technology Leadership for Golf & Country Clubs.
 Version: 1.0
*/

:root {
  --green: #234F1E;
  --gold: #C1A875;
  --cream: #F7F4ED;
  --charcoal: #2E2E2E;
  --max-width: 1100px;
  --font-body: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* RESET + BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.6;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* HEADER */
header.site-header {
  background-color: var(--green);
  color: #fff;
  padding: 16px 20px;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.site-tagline {
  font-size: 0.9rem;
  color: #F7F4ED;
}

.main-nav {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
}

.main-nav a {
  color: #F7F4ED;
}

/* HERO SECTION */
.hero {
  position: relative;
  color: #fff;
}

.hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.65));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-inner {
  max-width: 800px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.hero p.hero-subtitle {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.hero-cta {
  margin-top: 0.8rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--gold);
  color: #1b1b1b;
  border: none;
}

.btn-primary:hover {
  background-color: #d9be82;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  margin-left: 8px;
}

/* SECTIONS */
section {
  padding: 40px 20px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--green);
  margin-bottom: 6px;
}

.section-accent {
  width: 60px;
  height: 2px;
  background-color: var(--gold);
  border-radius: 999px;
  margin-bottom: 12px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.two-column img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

ul.clean-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

ul.clean-list li {
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
}

ul.clean-list li::before {
  content: "•";
  color: var(--gold);
  position: absolute;
  left: 0;
}

/* GRID FOR RESULTS */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.result-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.04);
}

.result-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

/* SERVICE AREA */
.service-area {
  text-align: center;
}

.service-area p {
  margin: 4px 0;
}

/* FOOTER */
footer.site-footer {
  background-color: var(--green);
  color: #F7F4ED;
  padding: 18px 20px;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-inner a {
  color: #F7F4ED;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .two-column {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
}
/* CTA MODAL */
.cta-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cta-modal-box {
  background: var(--cream);
  padding: 30px;
  border-radius: 12px;
  max-width: 420px;
  text-align: center;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

.cta-modal-box h2 {
  font-family: var(--font-heading);
  color: var(--green);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.cta-modal-box p {
  margin-top: 8px;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

#close-cta-modal {
  margin-top: 8px;
  cursor: pointer;
}
.cta-modal-overlay:target {
  display: flex;
}
