/* ===================================================
   C & H Designs — Modern Stylesheet
   Color scheme: #1a2744 (navy) | #e8873a (orange)
   Font: Nunito (Google Fonts)
   =================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', sans-serif;
  color: #2d2d2d;
  background: #fff;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 39, 68, 0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  height: 52px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.site-nav a {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover {
  color: #e8873a;
  border-bottom-color: #e8873a;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Parallax Core ---------- */
.parallax-section {
  position: relative;
  overflow: hidden;
  height: 360px;
}

.parallax-bg {
  position: absolute;
  top: -25%;
  left: 0;
  right: 0;
  bottom: -25%;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 68, 0.45);
}

/* ---------- Hero ---------- */
.hero-section {
  height: 100vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 72px; /* header height */
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  margin-bottom: 32px;
  opacity: 0.9;
}

.btn-primary {
  display: inline-block;
  background: #e8873a;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: #d4732b;
  transform: translateY(-2px);
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a2744;
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: #e8873a;
  margin-top: 10px;
  border-radius: 2px;
}

/* ---------- About ---------- */
.about-section {
  background: #f8f9fb;
}

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

.about-logo {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.about-text-col p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
}

/* Service Tiles */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.tile {
  background: #fff;
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.13);
}

.tile-img-wrap {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.tile-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.tile h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #1a2744;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.tile p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

/* ---------- Precision Banner ---------- */
.precision-banner {
  background: #1a2744;
  color: #fff;
  text-align: center;
  padding: 28px 24px;
}

.precision-banner span {
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e8873a;
}

/* ---------- Parallax mid ---------- */
.parallax-mid {
  height: 300px;
}

/* ---------- Services ---------- */
.services-section {
  background: #fff;
}

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

.services-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.services-list li {
  padding-left: 20px;
  position: relative;
  color: #444;
  font-size: 1rem;
  line-height: 1.5;
}

.services-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: #e8873a;
  border-radius: 50%;
}

.services-image {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* ---------- Tech Footer Banner ---------- */
.tech-footer-banner {
  background: #1a2744;
  text-align: center;
  padding: 36px 24px;
  color: #fff;
}

.tech-footer-banner h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: #e8873a;
}

.banner-logo {
  max-height: 60px;
  margin: 0 auto;
}

/* ---------- Cups parallax ---------- */
.parallax-cups {
  height: 380px;
}

/* ---------- Contact ---------- */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.contact-bg {
  /* extends parallax-bg styles */
}

.contact-overlay {
  background: rgba(26, 39, 68, 0.72);
}

.contact-inner {
  position: relative;
  z-index: 2;
  color: #fff;
}

.contact-inner h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 36px;
  text-align: center;
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
}

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

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

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #e8873a;
  background: rgba(255,255,255,0.18);
}

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

.form-submit {
  text-align: center;
}

.btn-submit {
  background: #e8873a;
  color: #fff;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 48px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
  background: #d4732b;
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #111b30;
  color: #ccc;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.copyright {
  font-size: 0.85rem;
  color: #888;
}

.social-icons {
  display: flex;
  gap: 14px;
  align-items: center;
}

.social-icons img {
  height: 28px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.social-icons a:hover img {
  opacity: 1;
}

.footer-right {
  text-align: right;
  font-size: 0.85rem;
  color: #888;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-icon {
  height: 36px;
  width: auto;
  opacity: 0.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-img-col {
    display: none; /* Hide laser image on tablet/mobile */
  }
}

@media (max-width: 640px) {
  .hamburger {
    display: flex;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #1a2744;
    padding: 12px 0 20px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
  }

  .tiles-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    align-items: flex-start;
    text-align: left;
  }

  .parallax-section {
    height: 240px;
  }

  .hero-section {
    height: 85vh;
  }
}

/* ---------- Scroll fade-in animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
