/* ==========================================================================
   Pathlight Business Consulting - Static Site Styles
   Colors from config/site.json, layout from WP theme patterns
   ========================================================================== */

/* CSS Custom Properties */
:root {
  --color-primary: #11263f;
  --color-secondary: #b88a2b;
  --color-accent: #0b1a2e;
  --color-background: #f8fafc;
  --color-paragraph-text: #334155;
  --color-white: #ffffff;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Roboto', sans-serif;
  --font-base: 'Inter', sans-serif;
  --max-width: 1340px;
  --content-width: 80%;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  color: var(--color-paragraph-text);
  background-color: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  text-wrap: pretty;
}

p {
  text-wrap: pretty;
}

a {
  text-decoration: none;
  color: var(--color-paragraph-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.1em;
}

a:hover {
  text-decoration: underline;
}

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

/* Button */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease, opacity 0.2s ease;
  border: none;
}

.btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  z-index: 1000;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px clamp(1.5rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo a {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: auto;
  width: clamp(120px, 15vw, 180px);
}

.header-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-paragraph-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background-color: var(--color-white);
    padding: 100px 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 12px rgb(0 0 0 / 0.1);
    transition: right 0.3s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.125rem;
  }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem clamp(1.5rem, 5vw, 3rem);
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-white);
  font-weight: 400;
  margin-bottom: 2rem;
}

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

.about {
  padding: 5rem 0 2rem;
}

.about-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 5vw, 3rem);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: var(--color-paragraph-text);
}

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

/* ==========================================================================
   Roadmap to Results
   ========================================================================== */

.roadmap {
  padding: 1rem 0 2rem;
  background-color: var(--color-white);
}

.roadmap-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.roadmap-inner h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.roadmap-image {
  max-width: 900px;
  margin: 0 auto;
}

.roadmap-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

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

.services {
  background-color: var(--color-background);
  padding: 3rem 0 5rem;
}

.services-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.services-inner h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  transition: transform 0.15s ease-in-out;
}

.service-card:hover {
  transform: scale(1.03);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card-body {
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 2rem;
}

.service-card-body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.service-card-body p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-paragraph-text);
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

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

.contact {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.contact-inner h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-paragraph-text);
  margin-bottom: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-family: var(--font-base);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
}

.required {
  color: #dc2626;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: var(--color-background);
  color: var(--color-paragraph-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(17, 38, 63, 0.1);
}

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

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.form-actions .btn {
  width: 100%;
  text-align: center;
  font-size: 1.05rem;
  padding: 14px 32px;
}

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

.site-footer {
  border-top: 1px solid #e2e8f0;
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.footer-contact a {
  font-size: 0.9rem;
  color: var(--color-paragraph-text);
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--color-paragraph-text);
  transition: opacity 0.2s ease;
}

.footer-social a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  font-size: 0.9rem;
  color: var(--color-paragraph-text);
}

/* ==========================================================================
   Focus styles
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
