/* ============================================
   Parry Harrison Construction — Stylesheet
   ============================================ */

:root {
  --navy: #0a1628;
  --navy-light: #111d33;
  --gold: #c8973e;
  --gold-light: #daa94f;
  --gold-dark: #a87a2f;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #868e96;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section shared styles */
.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 48px;
}

.text-highlight { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,151,62,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-large { padding: 16px 40px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s;
  padding: 0 24px;
}

#navbar.scrolled {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--gold);
  overflow: visible;
}

.logo-dot {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a1628 0%, #162a4a 40%, #1a3a5c 70%, #0f2340 100%);
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(200,151,62,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(200,151,62,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 24px;
}

#hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-highlight {
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   STATS
   ============================================ */
#stats {
  background: var(--navy);
  border-top: 1px solid rgba(200,151,62,0.2);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================
   ABOUT
   ============================================ */
#about {
  padding: 100px 0;
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-xl);
}

.about-img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image {
  position: relative;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--navy);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.badge-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.3;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--gray-700);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--navy);
}

.feature-icon {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.1rem;
}

/* ============================================
   SERVICES — with real photos
   ============================================ */
#services {
  padding: 100px 0;
  background: var(--white);
}

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

.service-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.service-photo {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.service-card:hover .service-photo img {
  transform: scale(1.08);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card .service-body {
  padding: 24px 24px 28px;
}

/* ============================================
   TEAM — Hierarchical Org Chart
   ============================================ */
#team {
  padding: 100px 0;
  background: var(--gray-50);
}

.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 16px;
}

.org-level {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: nowrap;
}

/* Connector lines between levels */
.org-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.org-line {
  width: 2px;
  height: 32px;
  background: var(--gold);
}

/* Horizontal branch line connecting sibling nodes */
.org-branch {
  display: flex;
  justify-content: center;
  width: 100%;
}

.org-branch-line {
  height: 2px;
  background: var(--gold);
  width: calc(3 * 240px + 2 * 24px - 240px);
  max-width: 100%;
}

.org-branch-wide .org-branch-line {
  width: calc(4 * 220px + 3 * 24px - 220px);
  max-width: 100%;
}

/* Node cards */
.org-node {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  width: 220px;
  flex-shrink: 0;
}

.org-node:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.org-node-ceo {
  border: 2px solid var(--gold);
  position: relative;
  width: 260px;
}

.org-node-ceo::before {
  content: 'CEO & FOUNDER';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid var(--gray-200);
}

.org-node-ceo .team-avatar {
  width: 100px;
  height: 100px;
  border-color: var(--gold);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-initials {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
  border: 3px solid var(--gray-200) !important;
  border-radius: 50%;
  transition: var(--transition);
}

.org-node:hover .avatar-initials {
  border-color: var(--gold) !important;
}

.org-node h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.team-bio {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ============================================
   PROJECTS — with real photos
   ============================================ */
#projects {
  padding: 100px 0;
  background: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  transition: var(--transition);
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.project-card-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 580px;
}

.project-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(to top, rgba(10,22,40,0.9) 0%, rgba(10,22,40,0.4) 60%, transparent 100%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.5) 60%, transparent 100%);
}

.project-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px;
}

.project-overlay h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.project-overlay p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
#testimonials {
  padding: 100px 0;
  background: var(--navy);
  color: var(--white);
}

#testimonials .section-tag { color: var(--gold); }
#testimonials .section-title { color: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--gold);
  background: rgba(200,151,62,0.05);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author .avatar-initials {
  width: 44px;
  height: 44px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
}

.testimonial-author span {
  color: var(--gold);
  font-size: 0.8rem;
}

/* ============================================
   CTA
   ============================================ */
#cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  text-align: center;
}

#cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

#cta p {
  font-size: 1.1rem;
  color: rgba(10,22,40,0.7);
  max-width: 560px;
  margin: 0 auto 32px;
}

#cta .btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
#cta .btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  box-shadow: 0 8px 24px rgba(10,22,40,0.3);
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
  padding: 100px 0;
  background: var(--gray-50);
}

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

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.3rem;
  color: var(--gold);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-item p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,151,62,0.15);
}

.form-group textarea { resize: vertical; }

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .org-node { width: 200px; padding: 24px 18px; }
  .org-node-ceo { width: 230px; }
  .org-branch-line { width: calc(3 * 200px + 2 * 24px - 200px) !important; }
  .org-branch-wide .org-branch-line { width: calc(4 * 200px + 3 * 16px - 200px) !important; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .mobile-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 0;
    transition: right 0.4s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }
  .nav-links.active { right: 0; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-cta {
    margin-top: 16px;
    text-align: center;
    display: block;
  }

  /* Layouts */
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card-large { grid-column: span 1; grid-row: span 1; min-height: 280px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .about-badge { right: 10px; bottom: -16px; }

  /* Org chart - stack vertically on mobile */
  .org-level { flex-direction: column; align-items: center; }
  .org-node, .org-node-ceo { width: 100%; max-width: 340px; }
  .org-branch { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 1.8rem; }
}