/* ==========================================================================
   Bythul Management — plain CSS (no framework)
   ========================================================================== */

:root {
  --ink: #12181F;
  --navy: #1B2431;
  --slateink: #3E4B5C;
  --stone: #DCDAD2;
  --paper: #F6F5F1;
  --brass: #A6874F;
  --brassdark: #8A6E3E;

  --font-display: 'Fraunces', serif;
  --font-body: 'Public Sans', sans-serif;

  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--brass);
  color: var(--paper);
}

.hidden {
  display: none !important;
}

/* ---------- Signature element: estate-board style tag ---------- */
.board-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(166, 135, 79, 0.6);
  color: var(--brass);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 12px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-brass {
  background: var(--brass);
  color: var(--ink);
}
.btn-brass:hover {
  background: var(--paper);
}

.btn-ghost {
  border-color: rgba(246, 245, 241, 0.4);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.btn-outline {
  border-color: var(--brass);
  color: var(--brass);
}
.btn-outline:hover {
  background: var(--brass);
  color: var(--ink);
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  background: var(--brass);
  color: var(--ink);
}

.btn-full {
  width: 100%;
  text-align: center;
  padding: 14px 24px;
}
@media (min-width: 640px) {
  .btn-full {
    width: auto;
  }
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.navbar.scrolled {
  background: rgba(18, 24, 31, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

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

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.brand-tag {
  margin-top: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--brass);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(246, 245, 241, 0.85);
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--brass);
}

.nav-cta {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
}
.bar {
  width: 24px;
  height: 1px;
  background: var(--paper);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
  overflow: hidden;
  max-height: 0;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: max-height 0.3s ease-in-out;
}
.mobile-menu ul {
  padding: 12px 20px;
}
.mobile-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-menu li:last-child {
  border-bottom: none;
}
.mobile-link {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  color: rgba(246, 245, 241, 0.85);
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-block;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(18,24,31,0.7) 45%, rgba(18,24,31,0.3) 100%),
    rgba(18, 24, 31, 0.25);
}
.hero-content {
  position: relative;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 128px 20px 64px;
}
.hero-title {
  margin: 20px 0 0;
  max-width: 720px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.08;
  color: var(--paper);
}
.hero-subtitle {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(246, 245, 241, 0.75);
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (min-width: 640px) {
  .hero-content {
    padding: 128px 32px 96px;
  }
  .hero-title {
    font-size: 48px;
  }
  .hero-subtitle {
    font-size: 18px;
  }
}
@media (min-width: 768px) {
  .hero-title {
    font-size: 60px;
  }
}

/* ==========================================================================
   Section layout
   ========================================================================== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 20px;
}
.section-head {
  max-width: 640px;
}
.section-title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  color: var(--ink);
}
.section-title-light {
  color: var(--paper);
}

@media (min-width: 640px) {
  .section {
    padding: 80px 32px;
  }
  .section-title {
    font-size: 36px;
  }
}

.section-dark {
  max-width: none;
  width: 100%;
  background: var(--navy);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  padding: 0;
}
.section-dark > * {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section-dark .section-head {
  padding-top: 80px;
}
@media (min-width: 640px) {
  .section-dark > * {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* ---------- Services grid ---------- */
.services-grid {
  margin-top: 40px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--stone);
  transition: box-shadow 0.3s ease;
}
.card:hover {
  box-shadow: 0 20px 40px -20px rgba(18, 24, 31, 0.15);
}
.card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img {
  transform: scale(1.05);
}
.card-tag {
  position: absolute;
  left: 16px;
  top: 16px;
  background: rgba(18, 24, 31, 0.8);
  border: 1px solid rgba(166, 135, 79, 0.7);
  color: var(--brass);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 4px 10px;
}
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
}
.card-text {
  margin: 8px 0 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--slateink);
}

/* ---------- Why choose us ---------- */
.why-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 80px;
}
@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.why-item {
  background: var(--navy);
  padding: 28px;
}
.why-number {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--brass);
}
.why-title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--paper);
}
.why-text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(246, 245, 241, 0.65);
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .about {
    grid-template-columns: 1fr 1fr;
  }
}
.about-media {
  position: relative;
  height: 288px;
}
@media (min-width: 768px) {
  .about-media {
    height: auto;
  }
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--navy);
  padding: 64px 20px;
}
@media (min-width: 640px) {
  .about-content {
    padding: 80px 40px;
  }
}
@media (min-width: 768px) {
  .about-content {
    padding: 80px 56px;
  }
}
.about-title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.25;
  color: var(--paper);
}
@media (min-width: 640px) {
  .about-title {
    font-size: 36px;
  }
}
.about-text {
  margin: 24px 0 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(246, 245, 241, 0.75);
}
@media (min-width: 640px) {
  .about-text {
    font-size: 16px;
  }
}
.about-tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 20px;
  display: grid;
  gap: 48px;
}
@media (min-width: 640px) {
  .contact {
    padding: 80px 32px;
  }
}
@media (min-width: 768px) {
  .contact {
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }
}

.contact-title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
}
.contact-lead {
  margin: 12px 0 0;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--slateink);
}
.contact-address {
  margin-top: 28px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slateink);
}
.contact-address p {
  margin: 0 0 4px;
}
.contact-address .pad-top {
  padding-top: 12px;
}
.contact-address a {
  color: var(--ink);
}
.contact-address a:hover {
  color: var(--brass);
}
.hours-tag {
  display: inline-block;
  margin-top: 28px;
  border: 1px solid var(--stone);
  padding: 4px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slateink);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slateink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--stone);
  background: #fff;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(62, 75, 92, 0.5);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 1px var(--brass);
}
.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: #f87171;
}
.field input.invalid:focus,
.field select.invalid:focus,
.field textarea.invalid:focus {
  box-shadow: 0 0 0 1px #f87171;
}
.error-msg {
  margin: 6px 0 0;
  font-size: 12px;
  color: #ef4444;
}

.form-success {
  border: 1px solid rgba(166, 135, 79, 0.6);
  background: var(--navy);
  color: var(--paper);
  padding: 32px;
}
.form-success h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
}
.form-success p {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(246, 245, 241, 0.7);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 20px;
  display: grid;
  gap: 40px;
}
@media (min-width: 640px) {
  .footer-top {
    padding: 56px 32px;
  }
}
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer-desc {
  margin: 12px 0 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(246, 245, 241, 0.6);
}
.footer-brand .board-tag {
  margin-top: 20px;
}
.footer-heading {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brass);
}
.footer-col ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a,
.footer-col address a {
  font-size: 14px;
  color: rgba(246, 245, 241, 0.7);
  transition: color 0.2s ease;
}
.footer-col a:hover,
.footer-col address a:hover {
  color: var(--brass);
}
.footer-col address {
  margin-top: 16px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(246, 245, 241, 0.7);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom > * {
  max-width: var(--max-width);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  font-size: 12px;
  color: rgba(246, 245, 241, 0.5);
}
.footer-bottom p {
  margin: 0;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 32px;
  }
}



#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.toast-error {
  background: #b3261e;
}