/* PCB New Zealand Ltd — Design tokens from Prue Treweeke portfolio reference */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;1,400&display=swap');

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; font-weight: 400; font-size: 15px; line-height: 1.6; color: #000; background: #fff; overflow-x: hidden; }
a { color: #007AFF; text-decoration: none; transition: color 300ms; }
a:hover { color: #B2B2B2; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 75px); line-height: 0.9; letter-spacing: -0.012em; }
h2 { font-size: clamp(2rem, 4vw, 48px); }
h3 { font-size: clamp(1.2rem, 2vw, 24px); line-height: 1.3; }
.display-text { font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(3rem, 8vw, 75px); line-height: 0.95; letter-spacing: -0.012em; }
.label { font-family: 'Barlow', sans-serif; font-size: 12px; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: #B2B2B2; }

/* ========== HEADER ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 30px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid #E5E5E5;
  transition: padding 300ms;
}
.header.scrolled { padding: 16px 30px; }
.header-logo { height: 36px; width: auto; }
.header-logo-dark { display: none; }
.header-right { display: flex; align-items: center; gap: 32px; }
.header-nav { display: flex; gap: 32px; }
.header-nav a { font-size: 14px; letter-spacing: 0.02em; color: #000; transition: color 300ms; }
.header-nav a:hover { color: #007AFF; }
.header-nav a.active { color: #007AFF; }
.header-cta {
  font-size: 14px; font-weight: 500; letter-spacing: 0.05em;
  padding: 10px 24px; background: #000; color: #fff;
  transition: opacity 300ms;
}
.header-cta:hover { opacity: 0.85; color: #fff; }

/* Hamburger */
.hamburger { display: none; width: 32px; height: 24px; position: relative; z-index: 1001; }
.hamburger span { display: block; width: 100%; height: 2px; background: #000; transition: 300ms; position: absolute; left: 0; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; background: #fff; z-index: 49;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px;
  opacity: 0; pointer-events: none; transition: opacity 500ms;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a { font-family: 'Playfair Display', serif; font-size: 32px; color: #000; transition: color 300ms; }
.mobile-nav a:hover { color: #007AFF; }

/* ========== HERO ========== */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 30px 80px; overflow: hidden;
}
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.05) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-display { color: #fff; margin-bottom: 20px; }
.hero-display .word { display: inline-block; margin-right: 12px; }
.hero-display .char { display: inline-block; transform: translateX(80px); opacity: 0; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hero-display .char.revealed { transform: translateX(0); opacity: 1; }
.hero-subtitle { font-family: 'Barlow', sans-serif; font-size: 15px; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.hero-description { font-size: 15px; color: rgba(255,255,255,0.7); max-width: 540px; line-height: 1.7; margin-bottom: 32px; }
.btn { display: inline-block; font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; padding: 14px 36px; transition: all 300ms; }
.btn-light { background: #fff; color: #000; border: 1px solid #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-dark { background: #000; color: #fff; border: 1px solid #000; }
.btn-dark:hover { background: #fff; color: #000; }
.btn-outline { background: transparent; color: #000; border: 1px solid #E5E5E5; }
.btn-outline:hover { border-color: #000; }

/* ========== SERVICE CARDS ========== */
.service-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  padding: 120px 30px;
  max-width: 1440px; margin: 0 auto;
}
.service-card { position: relative; aspect-ratio: 21/9; overflow: hidden; display: block; }
.service-card-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.service-card:hover .service-card-img { transform: scale(1.05); }
.service-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, transparent 100%); z-index: 1; }
.service-card-content { position: absolute; bottom: 30px; left: 30px; right: 30px; z-index: 2; }
.service-card-label { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 6px; opacity: 0; transform: translateY(8px); transition: all 600ms; }
.service-card:hover .service-card-label { opacity: 1; transform: translateY(0); }
.service-card-title { font-family: 'Playfair Display', serif; font-size: clamp(1.3rem, 2.5vw, 2rem); color: #fff; font-weight: 400; }

/* ========== PORTFOLIO GRID ========== */
.portfolio-section { padding: 120px 0; }
.portfolio-header { padding: 0 30px; margin-bottom: 40px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px 30px; max-width: 1440px; margin: 0 auto; background: #f5f5f5; }
.portfolio-item { position: relative; aspect-ratio: 7/5; overflow: hidden; display: block; opacity: 0; animation: fadeIn 600ms ease forwards; }
.portfolio-item:nth-child(1) { animation-delay: 0ms; }
.portfolio-item:nth-child(2) { animation-delay: 80ms; }
.portfolio-item:nth-child(3) { animation-delay: 160ms; }
.portfolio-item-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity 350ms; }
.portfolio-item:hover .portfolio-item-img { opacity: 0.85; }
.portfolio-item-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 20px; z-index: 2; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%); opacity: 0; transition: opacity 350ms; }
.portfolio-item:hover .portfolio-item-content { opacity: 1; }
.portfolio-item-title { font-family: 'Barlow', sans-serif; font-size: 13px; letter-spacing: 0.02em; color: #fff; }
.portfolio-item-location { font-size: 13px; font-style: italic; color: rgba(255,255,255,0.7); }
.portfolio-cta { text-align: center; padding: 60px 30px 0; }

/* ========== FEATURES / WHY US ========== */
.features-section { padding: 120px 30px; max-width: 1440px; margin: 0 auto; }
.features-header { max-width: 600px; margin-bottom: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature-card { padding: 40px; background: #f5f5f5; }
.feature-number { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 400; color: #E5E5E5; margin-bottom: 16px; line-height: 1; }
.feature-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 12px; }
.feature-text { font-size: 15px; line-height: 1.7; color: #666; }

/* ========== ACCREDITATIONS ========== */
.accreditations-section { padding: 120px 30px; max-width: 1440px; margin: 0 auto; text-align: center; border-top: 1px solid #E5E5E5; }
.accreditations-grid { display: flex; justify-content: center; align-items: center; gap: 60px; margin-top: 40px; flex-wrap: wrap; }
.accreditation-item img { height: 56px; width: auto; filter: grayscale(100%); opacity: 0.5; transition: all 300ms; }
.accreditation-item:hover img { filter: grayscale(0%); opacity: 1; }

/* ========== SERVICE AREA ========== */
.area-section { padding: 120px 30px; max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 80px; }
.area-content { flex: 1; }
.area-content h2 { margin-top: 16px; }
.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 30px; }
.area-list li { font-size: 15px; padding: 10px 0; border-bottom: 1px solid #E5E5E5; }
.area-image { flex: 1; aspect-ratio: 7/5; overflow: hidden; }
.area-image img { width: 100%; height: 100%; object-fit: cover; }

/* ========== CTA BANNER ========== */
.cta-section { padding: 120px 30px; max-width: 1440px; margin: 0 auto; }
.cta-inner { background: #000; padding: 80px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-text h2 { color: #fff; margin-bottom: 12px; }
.cta-text p { color: rgba(255,255,255,0.6); font-size: 15px; }

/* ========== FOOTER ========== */
.footer { background: #000; color: #fff; padding: 80px 30px 40px; }
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 15px; line-height: 1.7; margin-top: 16px; max-width: 300px; }
.footer-logo { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-col-title { font-size: 12px; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 20px; }
.footer-col a { display: block; font-size: 15px; color: rgba(255,255,255,0.6); padding: 6px 0; transition: color 300ms; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; font-size: 12px; color: rgba(255,255,255,0.3); }

/* ========== PAGE HERO (Subpages) ========== */
.page-hero { position: relative; height: 60vh; min-height: 400px; display: flex; align-items: flex-end; padding: 0 30px 60px; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 50%, transparent 100%); z-index: 1; }
.page-hero-content { position: relative; z-index: 2; }
.page-hero-content h1 { color: #fff; }
.page-hero-content p { color: rgba(255,255,255,0.7); font-size: 15px; margin-top: 12px; max-width: 600px; letter-spacing: 0.15em; text-transform: uppercase; }

/* ========== ABOUT PAGE ========== */
.about-intro { padding: 120px 30px; max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-intro-text h2 { margin-bottom: 24px; }
.about-intro-text .body-lg { font-size: 15px; line-height: 1.7; color: #666; margin-top: 24px; }
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-images img { width: 100%; height: 300px; object-fit: cover; }
.about-images img:first-child { height: 400px; grid-row: span 2; }

/* ========== SERVICES PAGE ========== */
.services-grid { padding: 120px 30px; max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 120px 30px; max-width: 1440px; margin: 0 auto; }
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }
.service-detail-img { overflow: hidden; aspect-ratio: 7/5; }
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-text h2 { margin-bottom: 16px; }
.service-detail-text p { color: #666; line-height: 1.7; margin-bottom: 24px; }
.service-includes li { padding: 10px 0; font-size: 15px; color: #666; border-bottom: 1px solid #E5E5E5; padding-left: 16px; position: relative; }
.service-includes li::before { content: ''; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; background: #007AFF; transform: translateY(-50%); }

/* ========== CONTACT PAGE ========== */
.contact-section-page { padding: 120px 30px; max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info h2 { margin-bottom: 24px; }
.contact-info > p { color: #666; line-height: 1.7; margin-bottom: 40px; }
.contact-details-list { display: flex; flex-direction: column; gap: 24px; }
.contact-detail-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-detail-icon { width: 20px; height: 20px; color: #007AFF; flex-shrink: 0; margin-top: 2px; }
.contact-detail-text .label { margin-bottom: 4px; }
.contact-form { background: #f5f5f5; padding: 48px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; color: #B2B2B2; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1px solid #E5E5E5; background: #fff; font-family: 'Barlow', sans-serif; font-size: 15px; color: #000; transition: border-color 300ms; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #007AFF; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit { width: 100%; margin-top: 8px; }

/* ========== FAQ ========== */
.faq-section { padding: 120px 30px; max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #E5E5E5; }
.faq-question { width: 100%; padding: 24px 0; font-size: 17px; font-weight: 500; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-question svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 300ms; }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 400ms ease; }
.faq-answer-inner { padding: 0 0 24px; color: #666; line-height: 1.7; }

/* ========== SCROLL REVEAL ========== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== ANIMATION ========== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ========== RESPONSIVE: TABLET ========== */
@media (max-width: 1024px) {
  .header { padding: 16px 20px; }
  .header-nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: block; }
  .header-logo { max-height: 42px; }
  .service-cards { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-intro { grid-template-columns: 1fr; gap: 48px; }
  .service-detail { grid-template-columns: 1fr; gap: 32px; }
  .service-detail:nth-child(even) { direction: ltr; }
  .contact-section-page { grid-template-columns: 1fr; gap: 48px; }
  .area-section { flex-direction: column; gap: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; padding: 60px 30px; }
}

/* ========== RESPONSIVE: MOBILE ========== */
@media (max-width: 768px) {
  .hero { min-height: 500px; padding-bottom: 60px; }
  .service-card { aspect-ratio: 16/9; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item-content { opacity: 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .area-list { grid-template-columns: 1fr; }
  .accreditations-grid { gap: 30px; }
}

/* ========== RESPONSIVE: SMALL ========== */
@media (max-width: 640px) {
  .display-text { font-size: clamp(2rem, 9vw, 3.5rem); word-break: break-word; }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  .hero-subtitle { font-size: 13px; }
  .service-cards, .features-section, .accreditations-section,
  .area-section, .cta-section, .portfolio-header,
  .about-intro, .services-grid,
  .service-detail, .contact-section-page, .faq-section { padding-left: 15px; padding-right: 15px; }
  .portfolio-grid { padding: 15px; }
  .features-section { padding-top: 80px; padding-bottom: 50px; }
  .features-grid { gap: 20px; }
  .feature-card { padding: 30px; }
  .cta-inner { padding: 40px 20px; }
  .contact-form { padding: 30px; }
  .footer { padding: 60px 15px 30px; }
}

/* ========== TOUCH DEVICES ========== */
@media (hover: none) {
  .portfolio-item-content { opacity: 1; }
  .service-card-label { opacity: 1; transform: translateY(0); }
}
