/* ===================================================
   Ophir Creek — Custom Styles
   Palette: Dark Pink / Dark Blue  ·  Light / Dark mode
   =================================================== */

/* ---- Shared palette ---- */
:root {
  --primary:         #B8336A;   /* dark pink   */
  --primary-dark:    #8C2854;
  --primary-deeper:  #1B1034;   /* deep indigo */
  --accent:          #3E78B2;   /* dark blue   */
  --accent-light:    #5A9BD5;
}

/* ---- Light theme (default) ---- */
[data-theme="light"] {
  --bg-body:         #FFFFFF;
  --bg-cream:        #F8F5FA;   /* faint lavender tint */
  --bg-warm-gray:    #F0EDF4;
  --bg-card:         #FFFFFF;
  --text-primary:    #1E1E2E;
  --text-muted:      #5E5B6E;
  --card-shadow:     rgba(0, 0, 0, 0.08);
  --hero-overlay-top:    rgba(27, 16, 52, 0.74);
  --hero-overlay-mid:    rgba(27, 16, 52, 0.52);
  --hero-overlay-bot:    rgba(27, 16, 52, 0.78);
  --footer-bg:       #1B1034;
  --footer-text:     rgba(255,255,255,0.45);
}

/* ---- Dark theme ---- */
[data-theme="dark"] {
  --bg-body:         #121220;
  --bg-cream:        #181828;
  --bg-warm-gray:    #1E1E30;
  --bg-card:         #242438;
  --text-primary:    #E4E0EE;
  --text-muted:      #9B96AB;
  --card-shadow:     rgba(0, 0, 0, 0.3);
  --hero-overlay-top:    rgba(12, 8, 24, 0.84);
  --hero-overlay-mid:    rgba(12, 8, 24, 0.62);
  --hero-overlay-bot:    rgba(12, 8, 24, 0.86);
  --footer-bg:       #0D0D1A;
  --footer-text:     rgba(255,255,255,0.35);
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-body);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/ophirrose.jpg') center / cover no-repeat fixed;
  text-align: center;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--hero-overlay-top) 0%,
    var(--hero-overlay-mid) 60%,
    var(--hero-overlay-bot) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.15em;
}

.hero .subtitle {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero .divider {
  width: 60px;
  height: 2px;
  background: var(--accent-light);
  margin: 1.5rem auto;
  border: none;
}

/* ---- Buttons (primary overrides) ---- */
.btn-primary-custom {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-outline-cream {
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  backdrop-filter: blur(2px);
  padding: 0.6rem 2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.btn-outline-cream:hover,
.btn-outline-cream:focus {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.btn-bright-cta {
  background: #00D9FF;
  color: #1B1034;
  border: none;
  padding: 0.6rem 2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
  transition: all 0.3s ease;
}
.btn-bright-cta:hover,
.btn-bright-cta:focus {
  background: #00F0FF;
  color: #1B1034;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.5);
}

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

.section-cream {
  background-color: var(--bg-cream);
  transition: background-color 0.3s ease;
}

.section-warm-gray {
  background-color: var(--bg-warm-gray);
  transition: background-color 0.3s ease;
}

.section-primary {
  background-color: var(--primary);
  color: #fff;
}

[data-theme="dark"] .section-primary {
  background-color: var(--primary-dark);
}

/* ---- Section headings ---- */
.section-heading {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

[data-theme="dark"] .section-heading {
  color: var(--accent-light);
}

.section-primary .section-heading {
  color: #fff;
}

[data-theme="dark"] .section-primary .section-heading {
  color: #fff;
}

.section-heading-line {
  width: 40px;
  height: 2px;
  background-color: var(--accent);
  border: none;
  margin-bottom: 2rem;
}

.text-center .section-heading-line {
  margin-left: auto;
  margin-right: auto;
}

/* ---- About ---- */
.about-text {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* ---- Service Cards ---- */
.service-card {
  background: var(--bg-card);
  border: none;
  border-top: 3px solid var(--primary);
  border-radius: 2px;
  padding: 2rem 1.5rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--card-shadow);
}

[data-theme="dark"] .service-card {
  border-top-color: var(--accent);
}

.service-card h5 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .service-card h5 {
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---- Contact ---- */
.contact-email {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.contact-email:hover {
  color: #fff;
}

/* ---- Footer ---- */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero .subtitle {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }
  .section {
    padding: 3.5rem 0;
  }
}
