/* ══════════════════════════════════════════════════════════════════
   Bitcoin Mining Institute — Stylesheet
   Matches actual site: white bg, Cormorant serif, dark teal accents
   ══════════════════════════════════════════════════════════════════ */

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

:root {
  --teal:        #2c5f5f;
  --teal-hover:  #1e4646;
  --teal-link:   #3a7a7a;
  --white:       #ffffff;
  --off-white:   #f9f9f9;
  --text-dark:   #2a2a2a;
  --text-mid:    #4a4a4a;
  --text-light:  #666666;
  --border:      #e0e0e0;
  --font-serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:   'Raleway', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  font-weight: 300;
}

a { color: var(--teal-link); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }
ul  { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Headings ───────────────────────────────────────────────────── */
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 48px;
}

.sub-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════════════════════════ */
.topbar {
  background: var(--white);
  text-align: right;
  padding: 8px 40px;
  font-size: 0.8125rem;
  font-weight: 400;
  border-bottom: 1px solid var(--border);
}

.topbar a {
  color: var(--teal-link);
  text-decoration: none;
}
.topbar a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  /* Fallback gradient that suggests an outdoor/industrial scene */
  background-color: #4a5c4a;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.25) 50%,
    rgba(0,0,0,0.05) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 60px;
  max-width: 520px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-pillars {
  margin-bottom: 36px;
}

.hero-pillars li {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--white);
  line-height: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  letter-spacing: 0.02em;
}

.btn-enroll {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-enroll:hover {
  background: var(--teal-hover);
  text-decoration: none;
  color: var(--white);
}

/* ══════════════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════════════ */
.about {
  padding: 80px 0;
  background: var(--white);
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-image.img-placeholder {
  background: var(--border);
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.875rem;
}
.about-image.img-placeholder::after {
  content: 'Facility Image';
}

.about-text p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.8;
  font-weight: 300;
}

/* ══════════════════════════════════════════════════════════════════
   OFFICE RENTALS
   ══════════════════════════════════════════════════════════════════ */
.office {
  padding: 80px 0;
  background: var(--off-white);
  border-top: 1px solid var(--border);
}

.office-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.office-intro p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.8;
  font-weight: 300;
}

/* ══════════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════════ */
.contact {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.contact-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

.form-attach {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.attach-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-mid);
}

.attach-count {
  color: var(--text-light);
}

.btn-send {
  width: 100%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 14px;
}
.btn-send:hover { background: var(--teal-hover); }

.form-legal {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.6;
}
.form-legal a { color: var(--text-light); text-decoration: underline; }

.form-success {
  display: none;
  margin-top: 12px;
  padding: 10px;
  background: #eef7f0;
  border: 1px solid #b0d9b8;
  color: #2d6a3f;
  font-size: 0.875rem;
  text-align: center;
}
.form-success.visible { display: block; }

/* Info col */
.contact-info-col p {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 8px;
}

.hours-table {
  border-collapse: collapse;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-mid);
  margin-top: 8px;
}

.hours-table td {
  padding: 3px 16px 3px 0;
  vertical-align: top;
}

.hours-table td:first-child {
  color: var(--text-dark);
  font-weight: 400;
  min-width: 44px;
}

.hours-table tr.highlight td {
  color: var(--text-dark);
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-light);
  font-weight: 300;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .topbar { padding: 8px 20px; }
  .hero-content { padding: 0 32px; }

  .about-body,
  .office-body,
  .contact-body {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about { padding: 56px 0; }
  .contact { padding: 56px 0; }
  .container { padding: 0 24px; }
  .site-footer { padding: 20px 24px; }
}
