/* Shared CSS for Neighbourhood Studios */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #ffffff;
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.15);
  --text: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-dim: #999;
  --accent: #004B2D;
  --accent-hover: #006B3F;
  --white: #ffffff;
  --green: #004B2D;
  --yellow: #b8860b;
  --red: #c0392b;
  --sans: 'Inter', -apple-system, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(0, 75, 45, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header > div {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-svg {
  height: 32px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #ffffff;
}

nav a.active {
  color: #ffffff;
}

nav a.nav-cta {
  color: #ffffff !important;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s;
}

nav a.nav-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}

.search-btn:hover {
  color: #ffffff;
}

.search-btn svg {
  width: 20px;
  height: 20px;
}

/* Search Overlay */
.search-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1200; backdrop-filter: blur(4px); justify-content: center; align-items: flex-start; padding-top: 120px; }
.search-overlay.open { display: flex; }
.search-modal { background: #ffffff; width: 600px; max-width: 90vw; max-height: 70vh; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden; }
.search-modal-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.search-modal-header svg { width: 20px; height: 20px; flex-shrink: 0; }
.search-modal-header input { flex: 1; border: none; outline: none; font-size: 16px; font-family: var(--sans); color: var(--text); background: transparent; }
.search-modal-header input::placeholder { color: var(--text-dim); }
.search-modal-close { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--text-dim); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: all 0.2s; }
.search-modal-close:hover { background: var(--border); color: var(--text); }
.search-results { flex: 1; overflow-y: auto; padding: 8px 0; }
.search-hint { padding: 40px 20px; text-align: center; font-size: 14px; color: var(--text-dim); }
.search-no-results { padding: 40px 20px; text-align: center; font-size: 14px; color: var(--text-dim); }
.search-group { padding: 0; }
.search-group-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); padding: 12px 20px 4px; }
.search-result-item { display: block; padding: 10px 20px; text-decoration: none; color: var(--text); transition: background 0.15s; cursor: pointer; }
.search-result-item:hover { background: rgba(0,0,0,0.03); }
.search-result-title { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.search-result-desc { font-size: 12px; color: var(--text-secondary); }
.search-result-item mark { background: rgba(0,75,45,0.12); color: var(--accent); border-radius: 2px; padding: 0 1px; }

/* Quote Request Modal */
.quote-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1300; backdrop-filter: blur(4px); justify-content: center; align-items: center; padding: 20px; }
.quote-overlay.open { display: flex; }
.quote-modal { background: #ffffff; width: 560px; max-width: 95vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,0.2); padding: 32px; overflow-y: auto; position: relative; }
.quote-modal h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.quote-modal-subtitle { font-size: 14px; color: var(--text-secondary); margin: 0 0 24px; }
.quote-modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; font-size: 24px; color: var(--text-dim); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s; }
.quote-modal-close:hover { background: rgba(0,0,0,0.05); color: var(--text); }
.quote-form-row { display: flex; gap: 16px; }
.quote-form-group { flex: 1; margin-bottom: 16px; }
.quote-form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.quote-form-group input, .quote-form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-family: var(--sans); font-size: 14px; color: var(--text); background: #fff; transition: border-color 0.2s; box-sizing: border-box; }
.quote-form-group input:focus, .quote-form-group textarea:focus { outline: none; border-color: var(--accent); }
.quote-form-group input::placeholder, .quote-form-group textarea::placeholder { color: var(--text-dim); }
.quote-items-list { background: rgba(0,0,0,0.02); border: 1px solid var(--border); border-radius: 6px; padding: 12px; font-size: 13px; }
.quote-item-row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--text-secondary); }
.quote-item-total { display: flex; justify-content: space-between; padding: 8px 0 0; margin-top: 8px; border-top: 1px solid var(--border); font-weight: 600; color: var(--text); }
.quote-rental-summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(0,75,45,0.06); border: 1px solid rgba(0,75,45,0.12); border-radius: 6px; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--accent); }
.quote-rental-summary span:last-child { font-size: 16px; }
.quote-modal select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; font-family: var(--sans); font-size: 14px; background: #fff; color: var(--text); appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }
.quote-modal select:focus { outline: none; border-color: var(--accent); }
.quote-modal input[type="date"] { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; font-family: var(--sans); font-size: 14px; background: #fff; color: var(--text); box-sizing: border-box; }
.quote-modal input[type="date"]:focus { outline: none; border-color: var(--accent); }
.btn-full { width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: 6px; font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-full:hover { background: var(--accent-hover); }
.btn-full:disabled { opacity: 0.6; cursor: not-allowed; }
.quote-success { text-align: center; padding: 20px 0; }
.quote-success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.quote-success h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 12px; }
.quote-success p { font-size: 14px; color: var(--text-secondary); margin: 0 0 24px; line-height: 1.6; }
@media (max-width: 600px) {
  .quote-form-row { flex-direction: column; gap: 0; }
  .quote-modal { padding: 24px 20px; }
}

/* Google Places autocomplete dropdown — must render above the quote modal */
.pac-container { z-index: 1400 !important; }

.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}

.cart-btn:hover {
  color: #ffffff;
}

.cart-btn svg {
  width: 22px;
  height: 22px;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  background: #ffffff;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.cart-badge.visible {
  display: flex;
}

/* Cart Drawer */
.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1100; backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.3s; }
.cart-overlay.open { display: block; opacity: 1; }
.cart-drawer { position: fixed; top: 0; right: -480px; width: 480px; max-width: 100vw; height: 100vh; background: var(--white, #fff); z-index: 1101; display: flex; flex-direction: column; transition: right 0.35s cubic-bezier(0.4,0,0.2,1); border-left: 1px solid var(--border); }
.cart-drawer.open { right: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.cart-header h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.cart-header-count { font-size: 13px; color: var(--text-dim); font-weight: 300; margin-left: 8px; }
.cart-close { background: none; border: none; cursor: pointer; color: var(--text-dim); font-size: 22px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; transition: color 0.2s; }
.cart-close:hover { color: var(--text); }
.cart-body { flex: 1; overflow-y: auto; }
.cart-empty { text-align: center; padding: 80px 28px; }
.cart-empty-icon { font-size: 48px; opacity: 0.2; margin-bottom: 16px; }
.cart-empty h4 { font-size: 16px; font-weight: 400; margin-bottom: 6px; }
.cart-empty p { font-size: 13px; color: var(--text-dim); }
.cart-empty a { color: var(--accent); text-decoration: underline; }
.cart-item { display: flex; gap: 16px; padding: 20px 28px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.cart-item-info { flex: 1; }
.cart-item-cat { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 2px; }
.cart-item-name { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.cart-item-price { font-size: 13px; color: var(--text-secondary); }
.cart-item-controls { display: flex; align-items: center; gap: 0; margin-top: 10px; }
.cart-qty-btn { width: 28px; height: 28px; border: 1px solid var(--border); background: #ffffff; color: var(--text); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-family: var(--sans); }
.cart-qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-qty { width: 36px; height: 28px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); border-left: none; border-right: none; text-align: center; font-size: 13px; font-family: var(--sans); font-weight: 500; background: var(--white, #fff); color: var(--text); }
.cart-item-remove { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; margin-left: 12px; transition: color 0.2s; font-family: var(--sans); }
.cart-item-remove:hover { color: #c0392b; }
.cart-item-subtotal { text-align: right; flex-shrink: 0; }
.cart-item-subtotal-amount { font-size: 16px; font-weight: 600; }
.cart-item-subtotal-label { font-size: 11px; color: var(--text-dim); }
.cart-footer { border-top: 1px solid var(--border); padding: 24px 28px; flex-shrink: 0; background: #ffffff; }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.cart-total-label { font-size: 13px; color: var(--text-secondary); }
.cart-total-amount { font-size: 24px; font-weight: 600; }
.cart-total-note { font-size: 12px; color: var(--text-dim); margin-bottom: 20px; }
.btn-full { width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px 32px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; font-family: var(--sans); background: var(--accent); color: var(--white, #fff); border: 1px solid var(--accent); transition: all 0.2s; margin-bottom: 8px; border-radius: 4px; }
.btn-full:hover { background: var(--accent-hover); }
.btn-outline-full { width: 100%; display: flex; justify-content: center; padding: 10px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; font-family: var(--sans); background: none; color: var(--text-secondary); border: 1px solid var(--border); transition: all 0.2s; border-radius: 4px; }
.btn-outline-full:hover { border-color: var(--text-secondary); }

/* Toast Notification */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--accent); color: #fff; padding: 14px 28px; border-radius: 8px; font-size: 14px; z-index: 1200; opacity: 0; pointer-events: none; transition: all 0.3s; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  display: block;
}

@media (max-width: 900px) {
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 75, 45, 0.98);
    flex-direction: column;
    gap: 0;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 199;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
  }

  nav a.nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    padding: 14px 0;
  }
}

main {
  margin-top: 70px;
}

/* Footer Styles */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

footer > div {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  gap: 16px;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 24px;
}

footer .logo-svg {
  height: 24px;
  width: auto;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  footer > div {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Styles */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.section-title {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

/* Card Styles */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  transition: all 0.3s;
  text-align: center;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.card h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text);
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  display: inline-block;
  transition: color 0.2s;
}

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

/* Button/CTA Styles */
.button {
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.button-primary {
  background: var(--accent);
  color: var(--white);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.button-secondary:hover {
  background: var(--accent);
  color: var(--white);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

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

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.form-submit {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover {
  background: var(--accent-hover);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
}

p {
  line-height: 1.6;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* General Utility Styles */
.text-center {
  text-align: center;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-dim {
  color: var(--text-dim);
}

.bg-elevated {
  background: var(--bg-elevated);
}

.bg-card {
  background: var(--bg-card);
}

@media (max-width: 768px) {
  .section {
    padding: 60px 24px;
  }

  .section-title {
    font-size: 32px;
  }

  .button {
    padding: 12px 24px;
    font-size: 13px;
  }
}
