/* Redlands Speciality Suites — Main Stylesheet */

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

:root {
  --purple:       #3F1077;
  --purple-light: #5a1fa8;
  --purple-dark:  #2a0a52;
  --gold:         #c8a96e;
  --white:        #ffffff;
  --off-white:    #f8f6fb;
  --text:         #2c2c2c;
  --text-light:   #5a5a5a;
  --border:       #e0d8ec;
  --font-main:    'Georgia', 'Times New Roman', serif;
  --font-ui:      'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  color: var(--purple);
  line-height: 1.25;
}
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1em; color: var(--text-light); }
p:last-child { margin-bottom: 0; }

/* ── Layout Utilities ────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--off-white);
}

/* ── Navigation ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--purple);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav__logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav__brand {
  font-family: var(--font-main);
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.2;
}

.nav__brand span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-ui);
  font-style: italic;
}

.nav__links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav__links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.nav__links a:hover,
.nav__links a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.nav__cta {
  background: var(--gold) !important;
  color: var(--purple-dark) !important;
  font-weight: 600;
  padding: 0.5rem 1.1rem !important;
}

.nav__cta:hover {
  background: #d4b57a !important;
}

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s;
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: var(--purple-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    align-items: stretch;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 0.75rem 1rem; border-radius: 6px; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--purple-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.28;
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 640px;
  padding: 4rem 0;
}

.hero__eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--purple-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 3px;
  margin-bottom: 1.2rem;
}

.hero__title {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn--primary {
  background: var(--gold);
  color: var(--purple-dark);
}
.btn--primary:hover { background: #d4b57a; box-shadow: 0 4px 16px rgba(200,169,110,0.4); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn--purple {
  background: var(--purple);
  color: var(--white);
}
.btn--purple:hover { background: var(--purple-light); box-shadow: 0 4px 16px rgba(63,16,119,0.35); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(63,16,119,0.08);
  border: 1px solid var(--border);
}

/* ── Services Grid ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  border-top: 3px solid var(--purple);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 6px 24px rgba(63,16,119,0.12);
  transform: translateY(-2px);
}

.service-card h3 { font-size: 1rem; color: var(--purple); margin-bottom: 0.35rem; }
.service-card p  { font-size: 0.9rem; margin: 0; }

/* ── Two-Column ──────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col--reversed .two-col__img { order: -1; }

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col--reversed .two-col__img { order: unset; }
}

.two-col__img img {
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(63,16,119,0.15);
  width: 100%;
  object-fit: cover;
  height: 400px;
}

/* ── Contact Info Block ──────────────────────────────────── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--purple);
  font-size: 1rem;
}

.contact-info__text strong { display: block; color: var(--purple); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-info__text a, .contact-info__text span { color: var(--text-light); font-size: 0.95rem; }

/* ── Contact Form ────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group--full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
}

.form-group input,
.form-group textarea,
.form-group select {
  border: 1.5px solid var(--border);
  border-radius: 5px;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(63,16,119,0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.required { color: #c0392b; }

.alert {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-left: 4px solid #ffc107;
  border-radius: 5px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: #7a5800;
}

/* ── Image Gallery ───────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(63,16,119,0.2);
}

/* ── Features List ───────────────────────────────────────── */
.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) { .features-list { grid-template-columns: 1fr; } }

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.features-list li::before {
  content: '✓';
  color: var(--purple);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1em;
}

/* ── Section Intro ───────────────────────────────────────── */
.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-intro p { font-size: 1.05rem; }

.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 1.25rem;
  border-radius: 2px;
}

.divider--left {
  margin-left: 0;
}

/* ── Bio Block ───────────────────────────────────────────── */
.bio-photo {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(63,16,119,0.18);
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 32px;
  filter: brightness(0) invert(1);
}

.footer-brand-name {
  font-family: var(--font-main);
  color: var(--white);
  font-size: 1rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.footer-heading {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
}

.footer-contact-item a { color: rgba(255,255,255,0.72); }
.footer-contact-item a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

/* ── Privacy Page ────────────────────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.1rem; color: var(--text); margin: 1.5rem 0 0.5rem; }
.prose p  { color: var(--text-light); }

/* ── Page Header (inner pages) ───────────────────────────── */
.page-header {
  background: var(--purple);
  padding: 3.5rem 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 40px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header--alt::after { background: var(--off-white); }

.page-header__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 3px;
  margin-bottom: 0.85rem;
}

.page-header h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-header p  { color: rgba(255,255,255,0.8); max-width: 580px; margin-bottom: 0; font-size: 1.05rem; }

/* ── Skip nav ────────────────────────────────────────────── */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--purple-dark);
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 999;
}
.skip-nav:focus { left: 0; }
