/**
 * Beacon 27 Consulting
 * Main Stylesheet
 */

/* ==========================================================================
   Font Faces
   ========================================================================== */

@font-face {
  font-family: 'Franklin Gothic';
  src: url('/assets/fonts/franklingothic_demi.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
  --primary: #3c4c59;
  --primary-light: #a9c6d9;
  --primary-dark: #8697a6;
  --secondary: rgb(223, 206, 171);
  --secondary-light: #f6f2c9;
  --accent: rgb(205, 139, 120);
  --accent-light: #d5b3a6;
  --accent-dark: #c05832;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  padding: 0;
  font-family: 'Franklin Gothic', 'Tahoma', 'Trebuchet MS', sans-serif;
  color: var(--primary);
}

body section,
body article {
  margin-bottom: 0;
}

button,
[data-button] {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 50vh;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  padding: var(--space-4) var(--space-3);
  padding-top: calc(var(--space-4) + 60px);
  margin-bottom: 0;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center left;
}

.hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(60, 76, 89, 0.3) 0%,
    rgba(60, 76, 89, 0.6) 50%,
    rgba(60, 76, 89, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 var(--space-2);
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 0.9;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero h1.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 img {
  max-width: 350px;
  margin-left: auto;
}

.hero h1 .beacon-text {
  font-size: clamp(3rem, 12vw, 10rem);
  -webkit-text-stroke: 2px var(--primary-light);
  color: transparent;
  display: none;
}

.hero h1 .consulting-text {
  font-size: clamp(1.5rem, 6vw, 5rem);
  color: white;
  opacity: 0.9;
  display: none;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--secondary-light);
  margin-bottom: var(--space-3);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.hero-tagline.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.hero [data-button-group] {
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
}

.hero [data-button-group].fade-in {
  opacity: 1;
  transform: translateY(0);
}

.hero [data-button-group] button {
  background-color: white;
  border-color: white;
  color: var(--primary);
}

.hero [data-button-group] a[data-variant="secondary"] {
  border-color: white;
  color: white;
  background-color: transparent;
}

.hero [data-button-group] a[data-variant="secondary"]:hover,
.hero [data-button-group] a[data-variant="secondary"]:focus {
  background-color: white;
  border-color: white;
  color: var(--primary);
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    height: auto;
    min-height: auto;
    padding: 0;
    background-color: var(--primary-dark);
  }

  .hero-background {
    position: relative;
    inset: auto;
    width: 100%;
    height: 250px;
    max-height: 250px;
    z-index: 0;
  }

  .hero-background::after {
    display: none;
  }

  .hero-content {
    padding: var(--space-3);
    text-align: center;
  }

  .hero h1 img {
    margin: 0 auto;
  }

  .hero-tagline {
    text-align: center;
  }

  .hero [data-button-group] {
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }

  .hero [data-button-group] button,
  .hero [data-button-group] a {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

section {
  padding: var(--space-4) var(--space-3);
}

.section-header {
  margin-bottom: var(--space-4);
}

.section-header h2 {
  color: var(--accent);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header .divider {
  width: 80px;
  height: 3px;
  background: var(--accent-dark);
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services {
  background: var(--primary-light);
}

.services .section-header h2 {
  color: var(--white);
}

.services .section-header .divider {
  background: var(--primary-dark);
}

.services-intro {
  margin: 0 auto var(--space-4);
  font-size: var(--text-lg);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.services-intro.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.services-grid {
  display: flex;
  flex-flow: column wrap;
  margin-bottom: var(--space-4);
  gap: var(--space-3);
}

.service-card p:last-child {
  margin-bottom: 0;
}

.service-card {
  background: white;
  border-radius: var(--space-1);
  padding: var(--space-3);
  box-shadow: 0 4px 20px rgba(60, 76, 89, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out,
    box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(60, 76, 89, 0.15);
}

.service-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: var(--space-2);
  font-size: var(--text-xl);
}

.service-card p {
  line-height: 1.7;
  color: var(--primary-dark);
}

/* ==========================================================================
   Origin Story Section
   ========================================================================== */

.origin {
  background: var(--primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.origin::before {
  content: '27';
  position: absolute;
  right: -5%;
  top: auto;
  bottom: -10%;
  font-size: clamp(15rem, 30vw, 40rem);
  font-weight: bold;
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
}

.origin .section-header h2 {
  color: var(--accent);
}

.origin .section-header .divider {
  background: var(--accent-light);
}

.origin-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.origin-text {
  font-size: var(--text-lg);
  line-height: 1.9;
}

.origin-text p {
  margin-bottom: var(--space-2);
}

.origin-text .highlight {
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
  background: white;
}

.about-grid {
  display: flex;
  gap: var(--space-4);
  flex-flow: column wrap;
  margin: 0 auto;
  align-items: center;
}

.about-image {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-image.fade-in {
  opacity: 1;
  transform: scale(1);
}

.about-image img {
  width: 100%;
  border-radius: var(--space-1);
  box-shadow: 0 8px 30px rgba(60, 76, 89, 0.2);
}

.about-content h3 {
  color: var(--accent-dark);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.about-content p {
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: var(--space-2);
}

.about-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--secondary);
}

.about-detail {
  background: var(--secondary-light);
  padding: var(--space-1) var(--space-2);
  border-radius: 4px;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact {
  background: linear-gradient(135deg, var(--primary) 0%, #2a3a45 100%);
  color: white;
  text-align: center;
}

.contact .section-header h2 {
  color: var(--secondary-light);
  text-align: center;
}

.contact .section-header .divider {
  background: var(--accent);
  margin: 0 auto;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  line-height: 1.7;
  color: var(--primary-light);
}

.contact-content h3 {
  color: var(--secondary-light);
  margin-top: var(--space-3);
}

.contact-email {
  display: inline-block;
  font-size: var(--text-xl);
  color: white;
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--accent);
  border-radius: var(--space-1);
  margin-bottom: var(--space-3);
  transition: all 0.3s ease;
}

.contact-email:hover {
  background: var(--accent);
  color: white;
}

.contact [data-button-group] {
  justify-content: center;
  margin-top: var(--space-3);
  margin-bottom: 0;
}

.contact button {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.contact button:disabled {
  opacity: 0.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: #1a2830;
  color: var(--primary-light);
  padding: var(--space-3);
  text-align: center;
  margin-bottom: 0;
}

footer .logo {
  height: 100px;
  margin: 0 auto;
  margin-bottom: var(--space-2);
  opacity: 0.8;
}

footer p {
  margin: 0;
  font-size: var(--text-sm);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
