/* ============================================
   Seven Sons Auto Salvage — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* --- Custom Properties --- */
:root {
  --cream: #faf8f3;
  --cream-100: #f5f0e8;
  --cream-200: #ebe4d4;
  --emerald: #065f46;
  --emerald-light: #047857;
  --emerald-dark: #044d38;
  --white: #ffffff;
  --text-light: #1a1a1a;
  --text-muted: #4a4a4a;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--cream-200);
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--emerald);
  letter-spacing: -0.01em;
}
.nav__brand-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald);
  color: var(--cream);
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav__brand-text { display: none; }
@media (min-width: 640px) {
  .nav__brand-text { display: block; }
}
.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .nav__links { display: flex; }
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--emerald);
  transition: width var(--transition);
}
.nav__link:hover { color: var(--emerald); }
.nav__link:hover::after { width: 100%; }
.nav__cta {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--emerald);
  padding: 8px 16px;
  border: 1px solid var(--emerald);
  border-radius: 6px;
  transition: all var(--transition);
}
@media (min-width: 1280px) {
  .nav__cta { display: flex; }
}
.nav__cta:hover {
  background: var(--emerald);
  color: var(--cream);
}
.nav__cta-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.nav__menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
@media (min-width: 1024px) {
  .nav__menu-btn { display: none; }
}
.nav__menu-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--emerald);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}
.nav__menu-btn[aria-expanded="true"] .nav__menu-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__menu-btn[aria-expanded="true"] .nav__menu-line:nth-child(2) {
  opacity: 0;
}
.nav__menu-btn[aria-expanded="true"] .nav__menu-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.mobile-menu__link {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--emerald);
  padding: 1rem 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--cream-200);
  transition: opacity var(--transition);
}
.mobile-menu__link:hover { opacity: 0.6; }
.mobile-menu__divider {
  width: 40px;
  height: 1px;
  background: var(--cream-200);
  margin: 1rem 0;
}
.mobile-menu__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  color: var(--emerald-light);
  font-weight: 500;
  padding-top: 1rem;
}
.mobile-menu__phone svg { width: 18px; height: 18px; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--emerald-dark);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(4, 77, 56, 0.92) 0%,
    rgba(6, 95, 70, 0.85) 40%,
    rgba(6, 95, 70, 0.7) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding: 2rem 1.5rem;
  padding-top: 72px;
}
.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
  margin-bottom: 1.25rem;
}
.hero__headline {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}
.hero__headline em {
  font-style: italic;
  color: var(--cream-200);
}
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.8);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(245,240,232,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--primary {
  background: var(--emerald);
  color: var(--cream);
  border-color: var(--emerald);
}
.btn--primary:hover {
  background: var(--emerald-light);
  border-color: var(--emerald-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(6, 95, 70, 0.25);
}
.btn--ghost-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 240, 232, 0.35);
}
.btn--ghost-light:hover {
  border-color: var(--cream);
  background: rgba(245, 240, 232, 0.08);
}
.btn--full { width: 100%; justify-content: center; }

/* --- Sections --- */
.section {
  padding: 6rem 0;
}
@media (min-width: 768px) {
  .section { padding: 8rem 0; }
}
.section--light { background: var(--cream-100); }
.section--dark {
  background: var(--emerald-dark);
  color: var(--cream);
}
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald-light);
  margin-bottom: 0.75rem;
}
.section__eyebrow--light { color: rgba(245, 240, 232, 0.6); }
.section__title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--emerald-dark);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.section__title--light { color: var(--cream); }
.section__lead {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
}
.section__lead--light { color: rgba(245, 240, 232, 0.75); }

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--emerald);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(6, 95, 70, 0.08);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--emerald);
}
.service-card__icon svg {
  width: 100%;
  height: 100%;
}
.service-card__title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.3125rem;
  font-weight: 500;
  color: var(--emerald-dark);
  margin: 0 0 0.625rem;
}
.service-card__desc {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.about__image-wrap {
  position: relative;
}
.about__img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.about__image-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--emerald);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.2;
}
.about__content { max-width: 520px; }
.about__text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}
.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-200);
}
.about__stat {
  flex: 1;
  min-width: 140px;
}
.about__stat-number {
  display: block;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--emerald-dark);
  margin-bottom: 0.25rem;
}
.about__stat-label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}
.about__stat-divider {
  width: 1px;
  background: var(--cream-200);
  align-self: stretch;
  margin: 0 0.5rem;
}

/* --- Why Us --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
.why-item {
  padding: 2rem;
  border: 1px solid rgba(245, 240, 232, 0.12);
  border-radius: 12px;
  transition: all var(--transition);
}
.why-item:hover {
  border-color: rgba(245, 240, 232, 0.25);
  background: rgba(245, 240, 232, 0.04);
}
.why-item__num {
  display: block;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.15);
  line-height: 1;
  margin-bottom: 1rem;
}
.why-item__title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 0.625rem;
}
.why-item__text {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(245, 240, 232, 0.7);
  margin: 0;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img {
  transform: scale(1.03);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.contact__text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 2rem;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  transition: opacity var(--transition);
}
.contact__item:hover { opacity: 0.75; }
.contact__item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cream-200);
  border-radius: 8px;
  color: var(--emerald);
  flex-shrink: 0;
}
.contact__item-icon svg { width: 18px; height: 18px; }
.contact__item-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.1875rem;
}
.contact__item-value {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--emerald-dark);
  line-height: 1.6;
}
.contact__item-value br { display: none; }
@media (min-width: 480px) {
  .contact__item-value br { display: block; }
}

/* --- Contact Form --- */
.contact-form-wrap {
  background: var(--cream-100);
  border: 1px solid var(--cream-200);
  border-radius: 16px;
  padding: 2rem;
}
@media (min-width: 480px) {
  .contact-form-wrap { padding: 2.5rem; }
}
.contact-form__title {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--emerald-dark);
  margin: 0 0 1.5rem;
}
.contact-form__group {
  margin-bottom: 1.25rem;
}
.contact-form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--cream-200);
  border-radius: 8px;
  background: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-light);
  transition: border-color var(--transition);
  outline: none;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--emerald);
}
.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: #b0a898;
}
.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form__success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.25rem;
  background: rgba(6, 95, 70, 0.08);
  border: 1px solid rgba(6, 95, 70, 0.2);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--emerald-dark);
  margin-top: 1rem;
}
.contact-form__success svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--emerald); }
.contact-form__success.visible { display: flex; }

/* --- Map --- */
.map-section {
  border-top: 1px solid var(--cream-200);
}
.map-section__inner {
  height: 320px;
  filter: saturate(0.6) brightness(1.05);
  transition: filter var(--transition);
}
.map-section__inner:hover { filter: saturate(0.8) brightness(1); }

/* --- Footer --- */
.footer {
  background: var(--emerald-dark);
  color: var(--cream);
  padding: 4rem 0 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}
@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
  }
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__brand-name {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
}
.footer__tagline {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.6;
  max-width: 280px;
  margin: 0;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.footer__nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(245, 240, 232, 0.7);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--cream); }
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}
.footer__phone,
.footer__email {
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(245, 240, 232, 0.8);
  transition: color var(--transition);
}
.footer__phone:hover,
.footer__email:hover { color: var(--cream); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 2rem;
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.4);
}
