/* =============================================
   ELITE CARPENTRY WALES – STYLESHEET
   Colours from logo: blue #1e7dd4, navy #1a3768, silver #8a9bb0
   ============================================= */

:root {
  --blue:       #1e7dd4;
  --blue-dark:  #1457a8;
  --navy:       #1a3768;
  --silver:     #8a9bb0;
  --silver-lt:  #c8d4e0;
  --white:      #ffffff;
  --offwhite:   #f5f7fa;
  --text:       #1a1a2e;
  --text-light: #555e6e;
  --border:     #dce3ec;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(26,55,104,0.10);
  --transition: 0.3s ease;
}

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

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

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

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,125,212,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-full { width: 100%; text-align: center; }

/* ── SECTION LABELS ── */
.section-label {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-light);
  max-width: 600px;
  margin: 12px auto 48px;
  line-height: 1.7;
  text-align: center;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(26,55,104,0.08);
  transition: var(--transition);
}

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

.nav-logo img {
  height: 56px;
  width: auto;
}

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

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active-nav { color: var(--blue); }
.nav-links a:hover::after,
.nav-links a.active-nav::after { width: 100%; }

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--blue-dark) !important; }

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

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images/project-dubai.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(26,55,104,0.82) 0%,
    rgba(30,125,212,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 120px 5% 60px;
  max-width: 860px;
}

.hero-sub {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--silver-lt);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  margin-bottom: 40px;
  line-height: 1.7;
}

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

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  margin: 8px auto 0;
  animation: bounce 1.6s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* =============================================
   WELCOME STRIP
   ============================================= */
.welcome-strip {
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%);
  padding: 28px 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.strip-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  color: var(--white);
  padding: 12px 0;
}

.strip-item strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
}

.strip-item span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.strip-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

/* =============================================
   INTRO / ABOUT
   ============================================= */
.intro {
  padding: 100px 0;
  background: var(--white);
}

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

.intro-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 20px;
}

.intro-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1rem;
}

.intro-list {
  list-style: none;
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.intro-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.check {
  width: 22px; height: 22px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.intro-image {
  position: relative;
}

.intro-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.intro-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 90px; height: 90px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(30,125,212,0.4);
}

.intro-badge strong {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
}

.intro-badge span {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: var(--offwhite);
  border-top: 3px solid var(--blue);
  padding: 56px 5%;
}

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

.cta-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--navy);
  margin-bottom: 10px;
}

.cta-text p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: 100px 0;
  background: var(--offwhite);
  text-align: center;
}

.services h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 8px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 0;
  text-align: left;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--blue);
  box-shadow: 0 16px 40px rgba(26,55,104,0.14);
}

.service-icon {
  width: 56px; height: 56px;
  color: var(--blue);
  margin-bottom: 20px;
}

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

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

.services-cta {
  margin-top: 56px;
  background: var(--navy);
  border-radius: 12px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.services-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.6;
}

.services-cta strong { color: var(--white); }

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio {
  padding: 100px 0 0;
  background: var(--white);
  text-align: center;
}

.portfolio h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 8px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 280px 280px;
  gap: 4px;
  margin-top: 48px;
}

.portfolio-item:nth-child(1) { grid-column: span 2; }
.portfolio-item:nth-child(3) { grid-column: span 2; }

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,55,104,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay span {
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox p {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  white-space: nowrap;
}

.lb-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: white; font-size: 1.6rem;
  cursor: pointer; line-height: 1;
}

.lb-prev, .lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none; color: white;
  font-size: 2.5rem; line-height: 1;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 4px;
  transition: var(--transition);
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.25); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* =============================================
   WHY US
   ============================================= */
.why-us {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  text-align: center;
  color: var(--white);
}

.why-us .section-label { color: var(--silver-lt); }

.why-us h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
  margin-bottom: 48px;
}

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

.why-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 36px 24px;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}

.why-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: 100px 0;
  background: var(--offwhite);
}

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

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.c-icon {
  width: 44px; height: 44px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item div strong {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2px;
}

.contact-item div span {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: var(--shadow);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--navy);
}

.form-group label span { color: var(--blue); }

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,125,212,0.12);
}

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

.form-group select { appearance: none; cursor: pointer; }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 20px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius);
  color: #2e7d32;
  font-weight: 600;
  font-size: 0.9rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 72px 5% 0;
}

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

.footer-logo img {
  height: 80px;
  width: auto;
  margin-bottom: 16px;
}

.footer-logo p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-links a {
  font-size: 0.9rem;
  padding: 5px 0;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--blue); }

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.footer-social svg {
  width: 16px; height: 16px;
  color: white;
}

.footer-bottom {
  text-align: center;
  padding: 28px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-logo {
  height: 64px;
  width: auto;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .portfolio-item:nth-child(1),
  .portfolio-item:nth-child(3) { grid-column: span 1; }
  .portfolio-item { height: 260px; }
}

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

  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 32px 5%;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-120%);
    transition: transform var(--transition);
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav-cta { border-radius: var(--radius) !important; text-align: center; }

  .active-nav { color: var(--blue) !important; }

  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-image img { height: 300px; }
  .intro-badge { left: 10px; bottom: -10px; }

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

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form-wrap { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }

  .welcome-strip { gap: 0; }
  .strip-divider { display: none; }
  .strip-item { min-width: 50%; }

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

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .portfolio-item { height: 240px; }
  .portfolio-overlay { opacity: 1; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .why-grid { grid-template-columns: 1fr; }
  .strip-item { min-width: 100%; }
  .strip-divider { display: none; }
}

/* ── Scroll fade-in animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
