/* ============================================================
   ROYAL GLOBAL NET — style.css
   Global reset, variables, typography, utilities
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --brand:        #C9A84C;
  --accent:       #C9A84C;
  --brand-alt:    #121212;
  --headings:     #121212;
  --text:         #4A4A4A;
  --bg-primary:   #F2F2F2;
  --bg-secondary: #FFFFFF;

  --brand-hover:  #b8922e;
  --text-muted:   #888888;
  --border:       #E0E0E0;
  --brand-10:     rgba(201, 168, 76, 0.10);
  --brand-20:     rgba(201, 168, 76, 0.20);

  --font-heading: 'Frank Ruhl Libre', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  --container:    1200px;
  --gap:          2rem;
  --radius:       4px;

  --transition:   0.25s ease;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 17.6px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-secondary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--headings);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(1.92rem, 4vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.44rem, 2.4vw, 2.08rem); font-weight: 700; }
h3 { font-size: clamp(1.04rem, 1.6vw, 1.28rem); font-weight: 500; }
h4 { font-size: 0.88rem; font-weight: 500; }

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

/* --- Container -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Utilities -------------------------------------------- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: gap var(--transition);
}
.link-arrow::after {
  content: '→';
  transition: transform var(--transition);
}
.link-arrow:hover::after {
  transform: translateX(4px);
}

/* --- Section spacing --------------------------------------- */
.section {
  padding: 6rem 0;
}

.section--sm {
  padding: 4rem 0;
}

.section--dark {
  background: var(--brand-alt);
  color: #fff;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}
.section--dark p {
  color: rgba(255,255,255,0.75);
}

.section--gray {
  background: var(--bg-primary);
}

/* --- Grid -------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

/* --- Divider ----------------------------------------------- */
.divider {
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--brand);
  margin: 1.25rem 0;
}

/* --- CTA Strip (shared across all pages) ------------------- */
.cta-strip {
  background: var(--brand-alt);
  padding: 5rem 0;
}

.cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-strip-text h2 {
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.76rem);
  margin-bottom: 0.5rem;
}
.cta-strip-text p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.cta-strip-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cta-strip--centered {
  padding: 7rem 0;
}
.cta-strip--centered .container {
  flex-direction: column;
  text-align: center;
  align-items: center;
}
.cta-strip--centered .cta-strip-actions {
  justify-content: center;
}

.cta-strip--light {
  background: var(--bg-secondary);
  padding: 6rem 0;
}
.cta-strip--light .container {
  flex-direction: column;
  text-align: center;
  align-items: center;
}
.cta-strip--light .cta-strip-text h2 {
  color: var(--headings);
}
.cta-strip--light .cta-strip-text p {
  color: var(--text-muted);
}
.cta-strip--light .cta-strip-actions {
  justify-content: center;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .cta-strip .container {
    flex-direction: column;
    text-align: center;
  }
  .cta-strip-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .section { padding: 4rem 0; }
}
