/* ═══════════════════════════════════════════════════════════
   Dexmarine — Components
   ═══════════════════════════════════════════════════════════ */

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--fw-semi);
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(26, 58, 92, 0.30);
}

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

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: var(--fw-semi);
  transition: all 0.3s ease;
}

.btn-nav-cta:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
}

/* ─── Button Wipe Animation ──────────────────────────────── */
.btn-anim-wipe {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-anim-wipe::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

.btn-anim-wipe:hover::before {
  left: 100%;
}

/* ─── Eyebrow Label ──────────────────────────────────────── */
.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

/* ─── Section Subtitle ───────────────────────────────────── */
.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* ─── Cards / Gallery Card ───────────────────────────────── */
.gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
}

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

.gallery-card figcaption {
  padding: 1.25rem;
}

.gallery-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: var(--fw-semi);
  margin-bottom: 0.5rem;
}

.gallery-card figcaption p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ─── Gallery Controls ───────────────────────────────────── */
.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: 1.5rem;
  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: 0.9375rem;
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}

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

/* ─── Tab Panels ─────────────────────────────────────────── */
.tab-panel:not(.active) {
  display: none;
}

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

/* ─── Testimonial Cards ──────────────────────────────────── */
.testimonial-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: #f59e0b;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-quote-icon {
  font-size: 2rem;
  color: var(--color-accent);
  opacity: 0.4;
}

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

.author-name {
  font-weight: var(--fw-semi);
  color: var(--color-white);
  font-size: 1rem;
}

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

/* ─── Contact Form ───────────────────────────────────────── */
.contact-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  padding: 2.5rem;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg-mid);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

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

.btn-submit {
  width: 100%;
  justify-content: center;
}

.form-success {
  text-align: center;
  padding: 3rem;
}

.form-success i {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

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

/* ─── Contact Details ────────────────────────────────────── */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.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: 1.25rem;
}

.detail-label {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  margin-bottom: 0.125rem;
}

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

/* ─── About visual badge ─────────────────────────────────── */
.about-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.about-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(245, 247, 250, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
}

.about-badge i {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.badge-title {
  display: block;
  color: var(--color-white);
  font-weight: var(--fw-semi);
  font-size: 0.875rem;
}

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

/* ─── About Stats ────────────────────────────────────────── */
.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

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

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

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

/* ─── Service List ───────────────────────────────────────── */
.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

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

/* ─── Footer ─────────────────────────────────────────────── */
.footer-logo img {
  height: 36px;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 1rem 0;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg-card);
  border-radius: 8px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-semi);
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-nav-col ul {
  list-style: none;
}

.footer-nav-col ul li {
  margin-bottom: 0.625rem;
}

.footer-nav-col ul li a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

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

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.footer-contact-list li i {
  color: var(--color-accent);
}

.footer-copy {
  color: var(--color-text-faint);
  font-size: 0.875rem;
}

.built-by-badge {
  display: inline-block;
}

/* ─── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 768px) {
  .service-list { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; gap: 1rem; align-items: center; }
  .form-row-half { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
}
/* autofix: nav dark background on scroll */
#nav {
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#nav.scrolled {
  background: rgba(10, 10, 18, 0.92);
  box-shadow: 0 2px 24px rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* autofix: hamburger aligned with logo on mobile */
.nav-hamburger {
  align-items: center;
  align-self: center;
  flex-direction: column;
}
