:root {
  --navy: #0a1f44;
  --gold: #d4af37;
  --white: #ffffff;
  --slate: #f4f6fb;
  --text: #2b323d;
  --accent: #f7b733;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 14px;
}

ul {
  list-style: none;
}

.hidden {
  display: none !important;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.top-bar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-bar .top-cta {
  color: var(--gold);
  font-weight: 600;
}

.main-nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(10, 31, 68, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s ease;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn.primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.25);
}

.btn.primary:hover,
.btn.primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(212, 175, 55, 0.35);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled:hover,
.btn[disabled]:hover {
  transform: none !important;
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.25);
}

.btn.secondary {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn.secondary:hover,
.btn.secondary:focus {
  background: var(--navy);
  color: var(--white);
}

.btn.outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn.outline:hover,
.btn.outline:focus {
  background: var(--gold);
  color: var(--navy);
}

.section {
  padding: 5rem 0;
}

.section.alt {
  background: var(--slate);
}

.section-banner {
  width: min(1100px, 92vw);
  margin: 0 auto 2.5rem;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(10, 31, 68, 0.18);
}

.section-banner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.hero {
  background: linear-gradient(135deg, rgba(10, 31, 68, 0.92), rgba(10, 31, 68, 0.8)),
    url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=1600&q=80')
      center/cover no-repeat;
  color: var(--white);
  padding: 6rem 0 5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-highlights {
  display: grid;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 18px;
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.hero-card.with-image {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.hero-card.with-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.hero-card.with-image .card-body {
  padding: 2rem;
}

.card-body {
  padding: 2rem;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.two-column .card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(10, 31, 68, 0.1);
}

.card.with-image {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card.with-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card.with-image .card-body {
  padding: 2rem;
}

.two-column .text ul {
  margin: 1.5rem 0;
  list-style: disc;
  padding-left: 1.2rem;
}

.two-column .text ul li {
  margin-bottom: 0.6rem;
}

.badge {
  display: inline-block;
  margin-top: 1.5rem;
  background: rgba(10, 31, 68, 0.08);
  color: var(--navy);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.section-header {
  grid-column: 1 / -1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(10, 31, 68, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
}

.text-link {
  color: var(--gold);
  font-weight: 600;
}

.text-link:hover,
.text-link:focus {
  text-decoration: underline;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--slate);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: inset 0 0 0 2px rgba(10, 31, 68, 0.05);
}

.testimonial::before {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
  margin-bottom: 1rem;
}

.testimonial blockquote {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--navy);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(10, 31, 68, 0.1);
  display: grid;
  gap: 1rem;
}

.blog-card h3 a {
  color: var(--navy);
}

.tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: var(--navy);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.appointment {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.appointment-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(10, 31, 68, 0.12);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  border: 1px solid rgba(10, 31, 68, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
  outline: none;
}

.contact {
  background: var(--navy);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.contact-info ul {
  margin: 1.5rem 0;
  display: grid;
  gap: 0.8rem;
}

.planner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.planner-intro {
  display: grid;
  gap: 1.4rem;
}

.planner-intro img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(10, 31, 68, 0.12);
}

.planner-tool {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(10, 31, 68, 0.15);
  display: grid;
  gap: 2rem;
}

.planner-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem 1.5rem;
  align-items: end;
}

.planner-form .form-field {
  display: grid;
  gap: 0.45rem;
}

.planner-form textarea {
  min-height: 110px;
  resize: vertical;
}

.planner-form button {
  justify-self: start;
}

.planner-form .btn.secondary {
  border-color: rgba(10, 31, 68, 0.2);
  color: var(--text);
}

.planner-form .btn.secondary:hover,
.planner-form .btn.secondary:focus {
  background: rgba(10, 31, 68, 0.08);
}

.planner-form .hidden {
  display: none;
}

.planner-table-wrapper {
  overflow-x: auto;
}

.planner-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.planner-table thead {
  background: var(--navy);
  color: var(--white);
}

.planner-table th,
.planner-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  font-size: 0.95rem;
}

.planner-table tbody tr:nth-child(odd) {
  background: rgba(10, 31, 68, 0.04);
}

.planner-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.12);
}

.planner-table .actions {
  width: 140px;
  text-align: center;
}

.planner-table button {
  border: none;
  background: none;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.planner-table button:hover,
.planner-table button:focus {
  background: rgba(10, 31, 68, 0.1);
}

.planner-table button.delete {
  color: #b62424;
}

.planner-empty {
  margin-top: 1rem;
  font-style: italic;
  color: rgba(10, 31, 68, 0.6);
}

.map iframe {
  width: 100%;
  min-height: 320px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.footer {
  background: #050f24;
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer ul {
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.subscribe {
  display: grid;
  grid-template-columns: 2fr auto;
  gap: 0.6rem;
}

.subscribe input {
  border-radius: 999px;
  border: none;
  padding: 0.8rem 1.2rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.back-to-top {
  color: var(--gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .nav-links {
    position: absolute;
    inset: 100% 0 auto;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 16px 32px rgba(10, 31, 68, 0.1);
    transform: translateY(-15px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-container {
    position: relative;
  }

  .hero {
    text-align: center;
  }

  .cta-group {
    justify-content: center;
  }

  .hero-card {
    text-align: left;
  }

  .hero-card.with-image .card-body {
    padding: 1.75rem;
  }

  .section-banner img {
    height: 220px;
  }

  .planner-tool {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .top-bar .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-card {
    text-align: center;
  }

  .hero-card.with-image .card-body {
    padding: 1.5rem;
  }

  .section-banner img {
    height: 180px;
  }

  .planner-form {
    grid-template-columns: 1fr;
  }

  .planner-form button {
    justify-self: stretch;
  }

  .planner-table {
    min-width: 100%;
  }

  .appointment-form {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Admin Panel Styles */
.admin-btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(10, 31, 68, 0.3);
}

.admin-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(10, 31, 68, 0.4);
}

.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 68, 0.85);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.admin-overlay.active {
  display: flex;
}

.admin-panel {
  background: var(--white);
  border-radius: 20px;
  width: min(900px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(10, 31, 68, 0.3);
  display: flex;
  flex-direction: column;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid var(--slate);
  background: var(--navy);
  color: var(--white);
  border-radius: 20px 20px 0 0;
}

.admin-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.admin-close {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.admin-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.admin-login,
.admin-content {
  padding: 2rem;
}

.admin-login h3 {
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.admin-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(10, 31, 68, 0.6);
  font-style: italic;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--slate);
}

.admin-tab {
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: rgba(10, 31, 68, 0.6);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.admin-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.admin-tab:hover {
  color: var(--navy);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-section-list,
.admin-testimonial-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-section-item,
.admin-testimonial-item {
  background: var(--slate);
  padding: 1.5rem;
  border-radius: 12px;
  display: grid;
  gap: 1rem;
}

.admin-section-item h4,
.admin-testimonial-item h4 {
  margin: 0;
  color: var(--navy);
}

.admin-section-item .form-field,
.admin-testimonial-item .form-field {
  display: grid;
  gap: 0.5rem;
}

.admin-section-item textarea,
.admin-testimonial-item textarea {
  min-height: 80px;
  resize: vertical;
}

.admin-section-actions,
.admin-testimonial-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-image-manager {
  display: grid;
  gap: 1.5rem;
}

.admin-image-item {
  background: var(--slate);
  padding: 1.5rem;
  border-radius: 12px;
  display: grid;
  gap: 1rem;
}

.admin-image-item img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
}

.admin-image-preview {
  display: flex;
  gap: 1rem;
  align-items: start;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .admin-panel {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .admin-header {
    border-radius: 0;
  }

  .admin-tabs {
    flex-direction: column;
  }

  .admin-tab {
    text-align: left;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .admin-tab.active {
    border-left-color: var(--gold);
    border-bottom-color: transparent;
  }
}

