/* styles.css - Custom styling beyond Tailwind */

:root {
  --dark: #2B2D32;
  --accent: #E85D04;
  --accent-light: #FF7A20;
  --surface: #F5F5F5;
  --surface-dark: #EBEBEB;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --white: #FFFFFF;
  --border: #E0E0E0;
  --nav-height: 72px;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--white);
  overflow-x: hidden;
}

.heading, h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Sticky Nav Scrolled State */
#main-nav.scrolled {
  background-color: rgba(43, 45, 50, 0.95);
  backdrop-filter: blur(8px);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Hero Diagonal Pattern */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  background-color: var(--dark);
}

.hero-text-panel {
  background: var(--dark);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
  padding: calc(var(--nav-height) + 80px) 80px 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.hero-image-panel {
  /* Background image URL is set inline via HTML for specific pages */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -14%;
}

@media (max-width: 768px) {
  .hero { 
    grid-template-columns: 1fr; 
    min-height: auto; 
  }
  .hero-text-panel { 
    clip-path: none; 
    padding: 120px 24px 60px; 
  }
  .hero-image-panel { 
    clip-path: none; 
    margin-left: 0; 
    height: 320px;
    background-attachment: scroll; 
  }
}

/* Service Cards */
.service-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--border);
}
.service-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--accent);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

/* Gallery Hover Effect */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 45, 50, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Buttons */
.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-primary:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-outline:hover {
  background-color: var(--white);
  color: var(--dark);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Focus visible */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Visually hidden (honeypot) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Utilities */
.flip-mobile {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .flip-mobile {
    flex-direction: row-reverse;
  }
}