/* styles.css - Maderra Luxury Redesign */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --sage: #7B8C6E; --sage-dark: #5a6650; --cream: #F7F4EE; --warm-white: #FDFCF9;
  --charcoal: #2C2A27; --mid-gray: #8A8780; --border: #D9D5CD;
  --text-dark: #1E1C19; --text-mid: #5C5A55;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', sans-serif;
}

html { -webkit-text-size-adjust:100%; text-size-adjust:100%; font-size:100%; }
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-sans); font-weight: 300; background-color: var(--warm-white); color: var(--text-dark); margin: 0; padding: 0; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; margin: 0 0 0.5em; }

/* TOP INFO BAR */
.top-info-bar {
  background-color: var(--sage);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 9px 40px;
  min-height: 42px;
}

.top-info-center {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

.top-info-bar span,
.top-user-links a {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffffff;
}

.top-info-bar .bar-sep {
  color: rgba(255,255,255,0.45);
  margin: 0 18px;
  letter-spacing: 0;
}

.top-user-links {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.top-user-links a,
.top-user-links span {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  font-weight: 400;
}

.top-user-links span {
  color: rgba(255,255,255,0.45);
  letter-spacing: 0;
}

.top-user-links a:hover {
  opacity: 0.75;
}

/* SITE HEADER */
.site-header { background-color: var(--warm-white); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 40px; height: 90px; }
.site-logo { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 240px; }
.logo-link { display: block; }
.header-logo { height: 52px; object-fit: contain; max-width: 240px; filter: brightness(0.4); }
.logo-tagline { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: -5px; width: 100%; }
.logo-sub-text { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; letter-spacing: 1.5px; color: var(--charcoal); font-weight: 400; padding-right: 11px; }
.main-nav { flex: 1; display: flex; align-items: center; justify-content: center; }
.nav-primary { display: flex; align-items: center; gap: 48px; justify-content: center; }
.nav-link, .dropdown-toggle { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dark); font-weight: 400; background: none; border: none; cursor: pointer; padding: 0; transition: color 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.nav-link:hover, .dropdown-toggle:hover { color: var(--sage); }
.caret { font-size: 0.55rem; }
.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--charcoal); font-size: 1.3rem; padding: 8px; margin-left: auto; }
.dropdown-clickable { position: relative; }
.dropdown-click-menu { display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--warm-white); border: 1px solid var(--border); min-width: 240px; z-index: 300; padding: 8px 0; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.dropdown-click-menu.open { display: block; }
.dropdown-click-menu a { display: block; padding: 10px 24px; font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-mid); font-weight: 400; transition: background 0.15s, color 0.15s; }
.dropdown-click-menu a:hover { background: var(--cream); color: var(--charcoal); }

/* TOP BANNER */
.top-banner { background-color: var(--charcoal); color: #fff; text-align: center; font-size: 0.72rem; letter-spacing: 1.5px; padding: 10px 20px; font-weight: 400; font-family: var(--font-sans); }

/* MAIN CONTENT */
.main-content { min-height: 60vh; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.message-container { padding: 16px 0; }
.message { padding: 12px 20px; margin-bottom: 8px; font-size: 0.82rem; border-left: 3px solid var(--sage); background: var(--cream); color: var(--text-dark); }
.message.error { border-left-color: #c0392b; }

/* BUTTONS */
.button, button.button { background-color: var(--charcoal); color: white; padding: 12px 32px; border: 1px solid var(--charcoal); cursor: pointer; font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 400; display: inline-block; transition: background 0.2s, color 0.2s; }
.button:hover { background-color: var(--sage); border-color: var(--sage); }

/* FOOTER - creamy warm white matching header */
.site-footer { background: var(--warm-white); border-top: 1px solid var(--border); }
.footer-bottom { padding: 20px 48px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p, .footer-bottom a { font-size: 0.65rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-mid); margin: 0; }
.footer-bottom-links { display: flex; gap: 12px; align-items: center; }
.footer-bottom-links span { color: var(--border); }
.footer-bottom a:hover { color: var(--charcoal); }

/* MOBILE */
@media (max-width: 960px) {
  .site-header { padding: 12px 24px; height: auto; flex-wrap: wrap; }
  .site-logo { width: auto; }
  .hamburger { display: flex; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; border-top: 1px solid var(--border); padding: 12px 0; order: 3; }
  .main-nav.open { display: flex; }
  .nav-primary { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-link, .dropdown-toggle { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); font-size: 0.75rem; }
  .dropdown-click-menu { position: static; transform: none; box-shadow: none; border: none; border-top: 1px solid var(--border); min-width: 100%; background: var(--cream); }
  .dropdown-click-menu a { padding-left: 24px; }
  .container { padding: 0 24px; }
  .footer-bottom { padding: 16px 24px; flex-direction: column; text-align: center; }
  .top-info-bar {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px 18px;
  }

  .top-info-center,
  .top-user-links {
    grid-column: 1;
    justify-self: center;
  }

  .top-user-links {
    gap: 9px;
  }

  .top-info-bar span,
  .top-user-links a {
    font-size: 0.6rem;
    letter-spacing: 1.5px;
  }

  .top-info-bar .bar-sep {
    margin: 0 8px;
  }
}

@media (max-width: 600px) {
  .top-info-center span:not(.bar-sep) {
    display: none;
  }

  .top-info-center span:nth-child(5) {
    display: inline;
  }

  .category-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-hero-title {
    font-size: 1.9rem;
  }
}
.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; }