/* =============================================
   PINNACLE CRAFTSMEN CONSTRUCTION
   Stylesheet — style.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Barlow+Condensed:wght@400;600;700&family=Barlow:wght@300;400;500&display=swap');

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

:root {
  --navy: #0d1b2a;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #f5f0e8;
  --white: #ffffff;
  --gray: #6b7280;
  --light-gray: #f8f7f4;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: padding 0.3s ease;
}
nav.scrolled { padding: 12px 60px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--navy);
  border: none;
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 24px;
  transition: background 0.2s;
  text-decoration: none;
}
.nav-cta:hover { background: var(--gold-light); }

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

@media (max-width: 768px) {
  nav { padding: 14px 24px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    padding: 20px 24px;
    gap: 20px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3045 50%, #0d1b2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--gold) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-content {
  text-align: center;
  z-index: 2;
  padding: 0 24px;
  animation: fadeUp 1s ease both;
}

.hero-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 4px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 20px;
  margin-bottom: 28px;
}

.hero-logo-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 32px;
  display: block;
  filter: drop-shadow(0 0 30px rgba(201, 168, 76, 0.3));
  animation: float 4s ease-in-out infinite;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  color: var(--white);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 8px;
}
.hero-title .gold { color: var(--gold); }

.hero-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 28px;
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 32px;
}

.hero-desc {
  max-width: 540px;
  margin: 0 auto 48px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 16px 40px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201, 168, 76, 0.6), transparent);
}

/* ===== STATS ===== */
#stats {
  background: var(--gold);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}
.stat-item {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid rgba(13, 27, 42, 0.15);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(13, 27, 42, 0.65);
  margin-top: 8px;
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item {
    border-right: 1px solid rgba(13, 27, 42, 0.15);
    border-bottom: 1px solid rgba(13, 27, 42, 0.15);
  }
  .stat-item:nth-child(2n) { border-right: none; }
}

/* ===== ABOUT ===== */
#about { padding: 100px 60px; background: var(--white); }
.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 4px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 24px;
}

.section-body {
  color: var(--gray);
  line-height: 1.8;
  font-size: 0.98rem;
  font-weight: 300;
}

.about-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--navy);
}
.feature-text h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2px;
}
.feature-text p {
  font-size: 0.85rem;
  color: var(--gray);
}

.about-visual { position: relative; }
.about-visual-main {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-visual-main img {
  width: 60%;
  height: auto;
  object-fit: contain;
  padding: 24px;
}
.about-est {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  padding: 24px 28px;
  text-align: center;
}
.about-est-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
}
.about-est-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(13, 27, 42, 0.7);
}

@media (max-width: 900px) {
  #about { padding: 70px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 50px; }
}

/* ===== SERVICES ===== */
#services { padding: 100px 60px; background: var(--light-gray); }
.services-inner { max-width: 1100px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-title { margin-bottom: 16px; }
.section-header p {
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.service-card:hover {
  border-bottom-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.service-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: block;
}
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
}

@media (max-width: 768px) {
  #services { padding: 70px 24px; }
  .services-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== TEAM ===== */
#team { padding: 100px 60px; background: var(--white); }
.team-inner { max-width: 1100px; margin: 0 auto; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.team-card {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.team-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.4s, transform 0.4s;
}
.team-card:hover .team-card-img {
  filter: grayscale(0%);
  transform: scale(1.04);
}
.team-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.97) 0%, rgba(13, 27, 42, 0.7) 70%, transparent 100%);
  padding: 40px 28px 28px;
}
.team-card-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.team-card-info .role {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold);
}
.team-card-info p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  line-height: 1.6;
  font-weight: 300;
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.team-card:hover .team-card-info p { max-height: 120px; }

@media (max-width: 600px) {
  #team { padding: 70px 24px; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ===== CTA BANNER ===== */
#cta-banner {
  background: var(--navy);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(201, 168, 76, 0.03) 30px,
    rgba(201, 168, 76, 0.03) 31px
  );
}
.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--white);
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
}
.cta-title .gold { color: var(--gold); }
.cta-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

@media (max-width: 640px) { #cta-banner { padding: 60px 24px; } }

/* ===== CONTACT ===== */
#contact { padding: 100px 60px; background: var(--light-gray); }
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 36px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
}
.contact-detail-text h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-detail-text a,
.contact-detail-text p {
  color: var(--navy);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
}
.contact-detail-text a:hover { color: var(--gold); }

.contact-form { background: var(--white); padding: 40px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--navy);
}
.form-group input,
.form-group textarea,
.form-group select {
  border: 1px solid #e0dbd0;
  padding: 12px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  color: var(--navy);
  outline: none;
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
}

@media (max-width: 900px) {
  #contact { padding: 70px 24px; }
  .contact-inner { grid-template-columns: 1fr; gap: 50px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  padding: 60px 60px 30px;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--white);
}
.footer-logo-text span {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 600;
}
.footer-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.7;
  font-weight: 300;
}

.footer-nav h4,
.footer-contact-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-contact-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.footer-contact-col a {
  color: var(--gold);
  text-decoration: none;
}
.footer-contact-hours {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.35) !important;
  font-size: 0.8rem !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { color: rgba(255, 255, 255, 0.35); font-size: 0.8rem; }
.footer-bottom .gold { color: var(--gold); }
.footer-tagline { color: rgba(255, 255, 255, 0.25) !important; font-size: 0.75rem !important; }

@media (max-width: 768px) {
  footer { padding: 50px 24px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
