/* ==========================================================
   COMPONENTS — Navigation, Buttons, Cards, Forms, Footer
   ========================================================== */

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--t-base) var(--ease),
    background var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 2px 20px rgba(92, 74, 60, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav__monogram {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--apricot), var(--blush));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--fw-xbold);
  font-size: var(--fs-lg);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.nav__logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--peach-light);
  box-shadow: var(--shadow-sm);
}


.nav__brand-text {
  display: flex;
  flex-direction: column;
}

.nav__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--taupe);
  line-height: 1.2;
}

.nav__title {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.2;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: var(--fw-semi);
  font-size: var(--fs-sm);
  color: var(--taupe-light);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--t-fast) var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--apricot);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-base) var(--ease);
}

.nav__link:hover,
.nav__link.active {
  color: var(--taupe);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background var(--t-fast) var(--ease);
}
.nav__toggle:hover { background: var(--peach-light); }

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--taupe);
  border-radius: var(--radius-full);
  transition: all var(--t-base) var(--ease);
  margin-block: 4px;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  z-index: 850;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
  pointer-events: none;
}

.nav__mobile.open {
  transform: translateX(0);
  pointer-events: all;
}

.nav__mobile .nav__link {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--t-base) var(--ease),
    color var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--apricot), var(--rose));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(244, 160, 122, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--apricot-hover), var(--apricot));
  box-shadow: 0 8px 28px rgba(244, 160, 122, 0.5);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--taupe);
  border-color: var(--peach);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--peach-light);
  border-color: var(--peach-deep);
  color: var(--taupe);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--taupe);
  border-color: var(--peach);
}

.btn-ghost:hover {
  background: var(--peach-light);
  color: var(--taupe);
}

.btn-lg {
  padding: var(--space-4) var(--space-12);
  font-size: var(--fs-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--fs-xs);
}

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--peach);
}

.card-body {
  padding: var(--space-8);
}

.card-sm .card-body {
  padding: var(--space-6);
}

/* Pillar / Icon Card */
.pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--peach-light);
  padding: var(--space-10);
  text-align: center;
  transition:
    transform var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--apricot);
  box-shadow: var(--shadow-lg);
}

.pillar-card__icon {
  width: 72px;
  height: 72px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--peach-light), var(--blush-light));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-base) var(--ease);
}

.pillar-card:hover .pillar-card__icon {
  transform: scale(1.12) rotate(3deg);
}

.pillar-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--taupe);
  margin-bottom: var(--space-3);
}

.pillar-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* Blog Card */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-card__thumb {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--peach-light), var(--blush-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card__thumb svg {
  width: 80px;
  height: 80px;
  opacity: 0.7;
  transition: transform var(--t-base) var(--ease);
}

.blog-card:hover .blog-card__thumb svg {
  transform: scale(1.1);
}

.blog-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.blog-card__date {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.blog-card__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--taupe);
  line-height: var(--lh-snug);
  flex: 1;
}

.blog-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--apricot);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.blog-card__link:hover {
  gap: var(--space-3);
  color: var(--apricot-hover);
}

/* ---- FORM ---- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-heading);
  font-weight: var(--fw-semi);
  font-size: var(--fs-sm);
  color: var(--taupe);
}

.form-label span {
  color: var(--apricot);
}

.form-control {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--peach);
  border-radius: var(--radius-md);
  background: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--taupe);
  outline: none;
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  border-color: var(--apricot);
  box-shadow: 0 0 0 4px rgba(244, 160, 122, 0.15);
  background: var(--white);
}

.form-control:hover:not(:focus) {
  border-color: var(--peach-deep);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
  line-height: var(--lh-relaxed);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238A7060' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  background-size: 20px;
  padding-right: var(--space-10);
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.form-success,
.form-error {
  display: none;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: var(--fw-semi);
  font-size: var(--fs-sm);
}

.form-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-error {
  background: var(--blush-light);
  color: var(--taupe);
  border: 1px solid var(--peach-deep);
}

.form-success.show,
.form-error.show {
  display: block;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--taupe);
  color: var(--peach-light);
  padding-block: var(--space-16) var(--space-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.footer__monogram {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--apricot), var(--blush));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--fw-xbold);
  font-size: var(--fs-md);
  color: var(--white);
}

.footer__logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 248, 240, 0.15);
}


.footer__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--cream);
}

.footer__tagline {
  font-size: var(--fs-sm);
  color: var(--taupe-muted);
  font-style: italic;
  line-height: var(--lh-relaxed);
}

.footer__desc {
  font-size: var(--fs-sm);
  color: var(--taupe-muted);
  line-height: var(--lh-relaxed);
  max-width: 300px;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--cream);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--taupe-muted);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.footer__link:hover { color: var(--peach); }

.footer__contact-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.footer__contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.7;
}

.footer__contact-text {
  font-size: var(--fs-sm);
  color: var(--taupe-muted);
  line-height: var(--lh-relaxed);
}

.footer__contact-text a {
  color: var(--peach);
  text-decoration: none;
}

.footer__contact-text a:hover { color: var(--cream); }

.footer__bottom {
  border-top: 1px solid rgba(255, 248, 240, 0.12);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--taupe-muted);
}

.footer__langs {
  display: flex;
  gap: var(--space-3);
}

.footer__lang {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--taupe-muted);
  padding: var(--space-1) var(--space-3);
  border: 1px solid rgba(255,248,240,0.2);
  border-radius: var(--radius-full);
}

/* ---- FAQ Accordion ---- */
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--t-base) var(--ease);
}

.faq-item.open { box-shadow: var(--shadow-md); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--taupe);
  cursor: pointer;
  text-align: left;
  transition: background var(--t-fast) var(--ease);
}

.faq-question:hover { background: var(--cream-warm); }

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--peach-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--apricot);
}

.faq-icon svg { width: 12px; height: 12px; }
.faq-item.open .faq-icon svg path { stroke: var(--white); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease), padding var(--t-base) var(--ease);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* ---- Testimonial placeholder ---- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: var(--space-8);
  position: relative;
  text-align: center;
}

.testimonial-card__quote {
  font-size: var(--fs-3xl);
  color: var(--peach);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.testimonial-card__text {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  font-style: italic;
  margin-bottom: var(--space-6);
}

.testimonial-card__author {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--taupe);
}

.testimonial-card__role {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---- Page Hero ---- */
.page-hero {
  padding-top: calc(var(--nav-h) + var(--space-20));
  padding-bottom: var(--space-20);
  background: linear-gradient(170deg, var(--cream) 0%, var(--peach-light) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--peach);
  color: var(--taupe);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  margin-bottom: var(--space-5);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---- Section Alt Background ---- */
.bg-alt    { background: var(--bg-alt); }
.bg-cream  { background: var(--cream); }
.bg-peach  { background: linear-gradient(135deg, var(--peach-light), var(--blush-light)); }

/* ---- Grid helpers ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

/* ---- Contact Detail Card ---- */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--peach-light);
  padding: var(--space-8);
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  transition:
    border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    transform var(--t-base) var(--ease);
}

.contact-card:hover {
  border-color: var(--apricot);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--peach-light), var(--blush-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card__label {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--taupe);
  margin-bottom: var(--space-1);
}

.contact-card__value {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.contact-card__value a {
  color: var(--apricot);
  font-weight: var(--fw-semi);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .btn-lg { padding: var(--space-4) var(--space-8); }
}
