/* ═══════════════════════════════════════════════════════════
   Copper Top Marine & Upholstery — Layout
   ═══════════════════════════════════════════════════════════ */

/* ─── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ─── Sections ─────────────────────────────────────────────── */
.section {
  padding: var(--space-20) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--fw-xbold);
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

/* ─── NAV ──────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background: rgba(10, 25, 41, 0.95);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: var(--fw-xbold);
  font-size: var(--text-lg);
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: var(--space-8);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
  position: relative;
}

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

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* ─── Hamburger ────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Mobile Overlay ───────────────────────────────────────── */
.mobile-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 25, 41, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.mobile-overlay.is-open {
  transform: translateX(0);
}

.mobile-overlay a {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-semi);
  transition: color 0.3s ease;
}

.mobile-overlay a:hover {
  color: var(--color-accent);
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  background: linear-gradient(135deg, rgba(10, 25, 41, 0.85) 0%, rgba(10, 25, 41, 0.65) 50%, rgba(10, 25, 41, 0.85) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-6);
}

.hero-eyebrow i {
  font-size: var(--text-md);
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: var(--fw-black);
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: var(--space-6);
}

.hero-title-line1 {
  display: block;
  font-size: clamp(3.5rem, 9vw, 9rem);
  letter-spacing: 0.03em;
}

.hero-title-line2 {
  display: block;
  font-size: clamp(3.5rem, 9vw, 9rem);
  letter-spacing: 0.03em;
  color: var(--color-accent);
}

.hero-sub {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ─── TRUST BAR ────────────────────────────────────────────── */
.trust-bar {
  background: var(--color-bg-deep);
  padding: var(--space-8) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}

.trust-item i {
  color: var(--color-accent);
  font-size: var(--text-lg);
}

.trust-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

/* ─── ABOUT ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-copy h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--fw-xbold);
  line-height: 1.15;
  margin-bottom: var(--space-4);
  color: var(--color-bg-deep);
}

.about-intro {
  color: var(--color-text);
  font-size: var(--text-md);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.about-body {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-8);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--fw-xbold);
  color: var(--color-accent);
  line-height: 1.1;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.about-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  background: rgba(240, 244, 248, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
}

.about-badge i {
  font-size: var(--text-2xl);
  color: var(--color-accent);
}

.badge-title {
  display: block;
  font-weight: var(--fw-semi);
  font-size: var(--text-sm);
  color: var(--color-bg-deep);
}

.badge-sub {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

/* ─── SERVICES ──────────────────────────────────────────────── */
.services-section {
  background: var(--color-bg-mid);
}

.tabs-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--color-text);
}

.tab-btn.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.tab-btn i {
  font-size: var(--text-md);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-panel-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
}

.tab-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--color-accent-subtle);
  border-radius: var(--radius-lg);
  color: var(--color-accent);
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.tab-body h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-3);
  color: var(--color-bg-deep);
}

.tab-body p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.service-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  font-size: var(--text-sm);
}

.service-list li i {
  color: var(--color-accent);
  font-size: var(--text-sm);
}

/* ─── GALLERY ──────────────────────────────────────────────── */
.gallery-track-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-card {
  min-width: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--color-white);
}

.gallery-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  margin-bottom: var(--space-2);
}

.gallery-card figcaption p {
  font-size: var(--text-sm);
  line-height: 1.5;
  opacity: 0.9;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: nowrap;
}

.gallery-prev,
.gallery-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-xl);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  min-width: 48px;
  min-height: 48px;
  box-shadow: var(--shadow-sm);
}

.gallery-prev:hover,
.gallery-next:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.gallery-counter {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}

.gallery-current {
  color: var(--color-text);
}

/* ─── TESTIMONIALS ─────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.testimonial-text {
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-6);
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-quote-icon {
  font-size: var(--text-2xl);
  color: var(--color-accent);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: var(--fw-semi);
  color: var(--color-text);
  font-size: var(--text-sm);
}

.author-location {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

/* ─── CONTACT ──────────────────────────────────────────────── */
.contact-section {
  background: var(--color-bg-mid);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--fw-xbold);
  margin-bottom: var(--space-4);
  color: var(--color-bg-deep);
}

.contact-intro {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-detail-item a {
  text-decoration: none;
  color: inherit;
}

.detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--color-accent-subtle);
  border-radius: 10px;
  color: var(--color-accent);
  font-size: var(--text-lg);
}

.detail-label {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  margin-bottom: 2px;
}

.detail-value {
  display: block;
  color: var(--color-text);
  font-size: var(--text-sm);
}

.contact-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
}

.form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-mid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-12);
}

.form-success i {
  font-size: var(--text-5xl);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.form-success span {
  color: var(--color-text-muted);
  font-size: var(--text-md);
}

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--color-bg-deep);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: var(--fw-xbold);
  font-size: var(--text-lg);
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: var(--space-4) 0;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: var(--text-md);
}

.social-icon:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  margin-bottom: var(--space-5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col ul li a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--color-accent);
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.footer-contact-list li i {
  color: var(--color-accent);
  font-size: var(--text-xs);
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-8);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.built-by-badge img {
  height: 28px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.built-by-badge:hover img {
  opacity: 1;
}

/* ─── MOBILE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links,
  .btn-nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-title-line1,
  .hero-title-line2 {
    font-size: clamp(2.5rem, 12vw, 5rem);
  }

  .hero-sub {
    font-size: var(--text-sm);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-img-wrap img {
    height: 280px;
  }

  .about-stats {
    gap: var(--space-6);
  }

  .stat-number {
    font-size: var(--text-2xl);
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .section {
    padding: var(--space-12) 0;
  }

  .section-header h2 {
    font-size: var(--text-2xl);
  }

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

  .tab-btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    white-space: normal;
  }

  .tab-panel-inner {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .gallery-card img {
    height: 260px;
  }

  .trust-bar-inner {
    gap: var(--space-4);
  }

  .trust-divider {
    display: none;
  }

  .contact-form {
    padding: var(--space-6);
  }
}