/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1e3a4c;
  background: var(--teal-dark);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Colors ===== */
:root {
  --teal-dark: #0d3b4d;
  --teal-mid: #1a4a5e;
  --teal-light: #2a5f73;
  --orange: #e67e22;
  --orange-hover: #d35400;
  --text-dark: #1e3a4c;
  --text-muted: #5a7a8a;
  --white: #ffffff;
  --light-bg: #f0f5f7;
  --border: #d0dde3;
}

/* ===== Header ===== */
.site-header {
  background: var(--orange);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.logo-img {
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.menu-wrap {
  position: relative;
}

.menu-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--white);
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  line-height: 1;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: var(--white);
  border: 1px solid #e0e8ec;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(13, 59, 77, 0.12);
  min-width: 180px;
  overflow: hidden;
  z-index: 200;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid #f0f4f6;
  transition: background 0.15s;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: #f5f9fb;
  color: var(--orange);
}

/* ===== Hero / Homepage ===== */
.hero-section {
  padding: 2rem 1.25rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem;
}

.hero-logo {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
}

/* ===== About Section ===== */
.about-section {
  padding: 0 1.25rem 3rem;
  max-width: 640px;
  margin: 0 auto;
}

.section-label {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.about-section h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.about-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid #c5d4dc;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ===== Quote / Form Page ===== */
.quote-page {
  background: var(--teal-dark);
  min-height: 100vh;
  color: white;
}

/* quote-header inherits the orange header from .site-header */

.quote-content {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.quote-label {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
}

.quote-content h1 {
  font-size: 2.1rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.quote-sub {
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
  line-height: 1.5;
}

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

/* Honeypot field: visually hidden from real visitors, but present in the DOM for spam bots to fill in */
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.35);
  color: white;
  font-size: 1.05rem;
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--orange);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' fill-opacity='0.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  cursor: pointer;
}

.form-group select option {
  background: var(--teal-dark);
  color: white;
}

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

.submit-btn {
  width: 100%;
  margin-top: 1.5rem;
  background: var(--orange);
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 1.05rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.submit-btn:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  background: rgba(255,255,255,0.25);
  cursor: default;
  transform: none;
}

/* Submission error message (hidden until a submit fails) */
.form-error {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #ffb4a2;
}

/* Success message (hidden by default) */
.success-msg {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-top: 1.5rem;
}

.success-msg.show {
  display: block;
}

.success-msg h3 {
  color: var(--orange);
  margin-bottom: 0.5rem;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--teal-mid);
}

/* ===== Mobile tweaks ===== */
@media (max-width: 400px) {
  .about-section h1,
  .quote-content h1 {
    font-size: 1.75rem;
  }
  .hero-logo {
    max-width: 300px;
  }
}

/* Desktop centering */
@media (min-width: 700px) {
  .hero-section,
  .about-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .quote-content {
    padding-top: 3.5rem;
  }
}
/* ===== Photo attachments (quote form) ===== */
.label-optional {
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}

.attach-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.35rem;
}

/* Author display values would otherwise beat the browser's [hidden] rule */
.attach-native[hidden],
.attach-btn[hidden] {
  display: none;
}

.attach-hint {
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.9rem;
}

/* Plain inputs shown only while scripting is unavailable */
.attach-native {
  display: grid;
  gap: 0.6rem;
}

.attach-native input[type="file"] {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-family: inherit;
}

.attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.attach-btn:hover,
.attach-btn:focus-visible {
  border-color: var(--orange);
  background: rgba(230, 126, 34, 0.12);
  color: var(--orange);
}

.attach-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.attach-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.attach-list:empty {
  margin-top: 0;
}

.attach-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}

.attach-thumb {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
}

.attach-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.attach-name {
  font-size: 0.9rem;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attach-size {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.attach-remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.attach-remove:hover,
.attach-remove:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.attach-error {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #ffb4a2;
}
