/* ===== CSS Custom Properties ===== */
:root {
  --color-bg:           #F4F1E8;   /* warm cream */
  --color-dark:         #0D2B4B;   /* deep navy */
  --color-accent:       #C9A84C;   /* muted antique gold */
  --color-accent-hover: #A8893E;   /* darker gold for hover */
  --color-card:         #FFFFFF;
  --color-muted:        #6B7A8D;   /* blue-grey */
  --color-border:       #D6D1C4;   /* warm grey */
  --color-input:        #9AA5B1;
  --color-note-bg:      #FDF6E3;
  --color-note-bd:      #C9A84C;
  --font-heading:       'Lora', Georgia, serif;
  --font-body:          -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:          'IBM Plex Mono', 'Courier New', monospace;
  --radius:             4px;
  --max-width:          1080px;
  --transition:         0.15s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-dark);
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-dark);          /* navy text on gold */
  border-color: var(--color-accent);
}

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

.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn--outline:hover {
  background: var(--color-dark);
  color: #fff;
}

.btn--outline-light {
  color: #fff;
  border-color: #fff;
}

.btn--outline-light:hover {
  background: #fff;
  color: var(--color-dark);          /* navy text when bg becomes white */
}

.btn--full {
  width: 100%;
  display: block;
}

/* ===== Navigation ===== */
.nav {
  background: #fff;
  border-bottom: 2px solid var(--color-accent);  /* gold underline on nav */
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  flex-shrink: 0;
}

.nav__logo:hover {
  color: var(--color-accent);
}

.nav__toggle {
  display: block;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-dark);
  padding: 4px 8px;
  line-height: 1;
}

.nav__links {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: #fff;
  flex-direction: column;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.nav__links--open {
  display: flex;
}

.nav__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  color: var(--color-muted);
  padding: 8px 0;
  transition: color var(--transition);
}

.nav__link.btn--outline {
  padding: 8px 12px;
}

/* Invisible bold copy reserves width so hover bold doesn't shift siblings */
.nav__link::after {
  content: attr(data-text);
  font-weight: 700;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  user-select: none;
  pointer-events: none;
}

.nav__link:hover {
  color: var(--color-accent);
  font-weight: 700;
}

@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }

  .nav__links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  .nav__link {
    padding: 0;
  }
}

/* ===== Hero (Landing) ===== */
.hero {
  background: var(--color-dark);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.hero__subtext {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .hero {
    padding: 48px 20px;
  }

  .hero__title {
    font-size: 28px;
  }
}

/* ===== Services Section ===== */
.services {
  background: var(--color-bg);
  padding: 64px 24px;
}

.services__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services__label {
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--color-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-align: center;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: box-shadow var(--transition);
}

.service-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.service-card__img {
  height: 80px;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: var(--radius);
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card__desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--color-dark);
  color: #aaa;
  padding: 48px 24px 24px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.footer__info {
  font-size: 13px;
}

.footer__heading {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer__bottom {
  font-size: 12px;
  border-top: 1px solid rgba(201, 168, 76, 0.3);  /* subtle gold divider */
  padding-top: 16px;
}

/* ===== Page Hero (subpages) ===== */
.page-hero {
  background: var(--color-bg);
  padding: 40px 24px 20px;
}

.page-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
}

.page-hero__sub {
  font-size: 15px;
  color: var(--color-muted);
  margin-top: 8px;
}

.about-body__mission {
  padding: 24px;
}

.about-body__mission-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.about-body__mission p:last-child {
  font-size: 14px;
  line-height: 1.6;
}

.about-body__card {
  margin-bottom: 20px;
}

.about-body__card h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.about-body__card p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

/* ===== Cards ===== */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}

.card--dark {
  background: #ffffff;
  border: 2px solid var(--color-dark);
  color: var(--color-dark);
}

.card--dark a {
  color: var(--color-accent);
}

/* ===== Note ===== */
.note {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--color-dark);
}

/* ===== Form Page ===== */
.form-page {
  padding: 40px 24px 64px;
}

.form-page__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.submit-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.form-page__footnote {
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 12px;
}

@media (min-width: 768px) {
  .form-page__inner {
    grid-template-columns: 3fr 1.2fr;
  }
}

/* ===== Form Sections ===== */
.form-section {
  margin-bottom: 28px;
}

.form-section__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.form-section__success {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ===== Fields ===== */
.field {
  margin-bottom: 16px;
}

.field--checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field--checkbox .field__label {
  margin-bottom: 0;
}

.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.field__required {
  color: var(--color-accent);
}

.field__input {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-dark);
  transition: border-color var(--transition);
  appearance: none;
}

.field__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.field__input::placeholder {
  color: var(--color-input);
}

.field__input--textarea {
  resize: vertical;
  min-height: 80px;
}

.field__error {
  color: #d32f2f;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.field__error--visible {
  display: block;
}

select.field__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ===== Form Row ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* ===== Drop Zone ===== */
.drop-zone {
  border: 2px dashed var(--color-input);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.drop-zone:hover,
.drop-zone--active {
  border-color: var(--color-accent);
  background: rgba(201, 168, 76, 0.04);
}

.drop-zone__icon {
  font-size: 28px;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.drop-zone__text {
  font-size: 14px;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.drop-zone__hint {
  font-size: 12px;
  color: var(--color-muted);
}

/* ===== File List ===== */
.file-list {
  margin-top: 12px;
}

.file-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f9f9f9;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 6px;
  font-size: 13px;
}

.file-list__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-list__name {
  font-weight: 600;
}

.file-list__size {
  color: var(--color-muted);
  font-size: 12px;
}

.file-list__remove {
  background: none;
  border: none;
  color: #d32f2f;
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  line-height: 1;
}

/* ===== Sidebar ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar__note {
  padding: 20px;
}

.sidebar__note-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
}

.sidebar__note ol {
  padding-left: 20px;
  font-size: 13px;
  color: #555;
}

.sidebar__note ol li {
  margin-bottom: 4px;
}

.sidebar__contact-card {
  padding: 20px;
}

.sidebar__contact-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.sidebar__contact-card p {
  font-size: 13px;
  margin-bottom: 2px;
}

.sidebar__fee-card {
  padding: 20px;
}

.sidebar__fee-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.sidebar__fee-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.sidebar__fee-table td {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}

.sidebar__fee-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.sidebar__fee-note {
  font-size: 12px;
  color: var(--color-muted);
}

/* ===== Price Placeholder ===== */
.price-placeholder {
  font-family: var(--font-mono);
}


/* ===== Footer Link ===== */
.footer__link {
  display: block;
  font-size: 13px;
  color: #aaa;
  padding: 2px 0;
}

.footer__link:hover {
  color: var(--color-accent);    /* gold on hover instead of white */
}

/* ===== Service Card Title Link ===== */
.service-card__btn {
  margin-top: 16px;
  font-size: 13px;
  padding: 8px 16px;
}


.contact-info {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.contact-info__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-info__detail {
  font-size: 15px;
  margin-bottom: 8px;
  color: #555;
}

.contact-info__detail a {
  color: var(--color-accent);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.contact-form__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-form .btn {
  margin-top: 8px;
}

.contact-form__success {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  font-size: 14px;
  margin-top: 16px;
}


/* ===== About Section (home page) ===== */
.about-section {
  padding: 64px 24px;
  background: #fff;
}

.about-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-section__label {
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--color-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-align: center;
}

.about-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .about-section__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Contact Section (home page) ===== */
.contact-section {
  padding: 64px 24px;
  background: var(--color-bg);
}

.contact-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-section__label {
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--color-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-align: center;
}

.contact-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .contact-section__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 43, 75, 0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.modal__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-muted);
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}

.modal__close:hover {
  color: var(--color-dark);
}

.modal__body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal__body h2 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 6px;
}

.modal__body h2:first-child {
  margin-top: 0;
}

.modal__body p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 10px;
}

.modal__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.modal__footer[hidden] {
  display: none;
}
