/* ============================================
   AttawayArt.com — Landing Page Styles
   70s Venice Beach surf/skate aesthetic
   ============================================ */

:root {
  --sand:        #D4B896;
  --terracotta:  #C17F5A;
  --bark:        #6B4A2A;
  --dusk:        #2C1F14;
  --chalk:       #F5EDE0;
  --ocean:       #4A7C8E;
  --overlay:     rgba(20, 12, 5, 0.22);
}

/* ---- Reset & Base ---- */

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

html, body {
  overflow: hidden;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Josefin Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- Hero / Background ---- */

.hero {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url('../images/attaway_bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
}

/* All hero children sit above the overlay */
.hero > * {
  position: relative;
  z-index: 2;
}

/* ---- Header ---- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 10;
  background: rgba(20, 12, 5, 0.58);
}

.logo {
  font-family: 'Abril Fatface', serif;
  font-size: 36px;
  color: var(--chalk);
  text-decoration: none;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-address,
.header-email {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--chalk);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0 0 14px rgba(0, 0, 0, 0.5);
}

.header-email {
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-email:hover {
  color: var(--chalk);
}

.instagram-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--chalk);
  text-decoration: none;
  transition: color 0.3s ease;
  filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.8));
}

.instagram-link:hover {
  color: var(--terracotta);
}

.instagram-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
}

/* ---- CTA Button ---- */

.cta-button {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: rgba(20, 12, 5, 0.55);
  border: 2px solid var(--sand);
  color: var(--chalk);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0 0 14px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 22px 56px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.35s ease;
}

.cta-button:hover {
  background: rgba(193, 127, 90, 0.7);
  border-color: var(--terracotta);
}

.cta-button:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 4px;
}

/* ---- Footer ---- */

.footer {
  position: fixed;
  bottom: 16px;
  width: 100%;
  text-align: center;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--sand);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8), 0 0 14px rgba(0, 0, 0, 0.5);
  z-index: 2;
  background: rgba(20, 12, 5, 0.5);
  padding: 8px 24px;
  white-space: nowrap;
}

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 5, 0.82);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--dusk);
  border: 1px solid var(--bark);
  padding: 48px 52px;
  max-width: 440px;
  width: 90%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 24px;
  color: var(--sand);
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  color: var(--chalk);
}

.modal-close:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 2px;
}

.modal-heading {
  font-family: 'Abril Fatface', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--chalk);
  margin: 0 0 12px 0;
}

.modal-subtext {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--sand);
  margin: 0 0 32px 0;
  line-height: 1.6;
}

/* Form Fields */

#mailing-form input[type="text"],
#mailing-form input[type="email"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--bark);
  color: var(--chalk);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.08em;
  padding: 12px 0;
  margin-bottom: 24px;
  outline: none;
  transition: border-color 0.3s ease;
}

#mailing-form input[type="text"]:focus,
#mailing-form input[type="email"]:focus {
  border-bottom-color: var(--sand);
}

#mailing-form input::placeholder {
  color: var(--bark);
}

/* Submit Button */

.submit-button {
  width: 100%;
  background: var(--terracotta);
  color: var(--chalk);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: filter 0.3s ease;
  margin-top: 8px;
}

.submit-button:hover {
  filter: brightness(1.12);
}

.submit-button:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 4px;
}

.modal-footer-text {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--bark);
  text-align: center;
  margin: 28px 0 0 0;
}

/* Error message */

.form-error {
  color: var(--terracotta);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
}

/* ---- Success State ---- */

.modal-success {
  text-align: center;
}

.success-check {
  font-size: 48px;
  color: var(--sand);
  display: block;
  margin-bottom: 16px;
}

.modal-success .modal-heading {
  margin-bottom: 16px;
}

.modal-success .modal-subtext {
  margin-bottom: 32px;
}

/* ============================================
   Mobile Responsive (< 768px)
   ============================================ */

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }

  .header {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
  }

  .logo {
    font-size: 24px;
    order: 1;
  }

  .header-center {
    position: static;
    transform: none;
    order: 2;
  }

  .header-address {
    display: none;
  }

  .header-center,
  .header-email {
    font-size: 11px;
  }

  .instagram-link {
    position: absolute;
    top: 10px;
    right: 16px;
  }

  .cta-button {
    font-size: 14px;
    padding: 16px 36px;
  }

  .modal-card {
    padding: 32px 24px;
    width: 94%;
  }
}
