/* SanVision LLC - Minimal Elegant Styles */

:root {
  /* Brand palette sampled to match logo */
  --color-primary: #1a1c22; /* deep charcoal (brand primary) */
  --color-accent: #c4a062;  /* warm gold accent */
  --color-bg: #ffffff;
  --color-text: #111827;
  --color-muted: #cdd1d8;

  --radius: 10px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #fff;
  background: linear-gradient(135deg, #0d0d0f 0%, #1a1c22 40%, #2d3038 100%);
  background-attachment: fixed;
  line-height: 1.6;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Accessibility helpers */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(120%) blur(8px);
  background: rgba(10,12,16,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1000;
  color: #fff;
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .wordmark { font-size: 22px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; background: linear-gradient(90deg, #fff, #d1b57a, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 24px rgba(196,160,98,0.25); }

nav.primary-nav { display: flex; align-items: center; gap: 22px; }
nav.primary-nav a { color: #e5e7eb; opacity: 0.8; }
nav.primary-nav a:hover { opacity: 1; color: #fff; }

.cta-phone { background: var(--color-accent); color: #0d0d0f; padding: 10px 14px; border-radius: var(--radius); font-weight: 700; }

.menu-toggle { display: none; background: none; border: none; font-size: 16px; }

@media (max-width: 900px) {
  nav.primary-nav { display: none; position: absolute; right: 20px; top: 68px; background: rgba(13,13,15,0.9); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 10px 12px; flex-direction: column; min-width: 220px; }
  nav.primary-nav.open { display: flex; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
}

/* Hero */
.hero { padding: 96px 0 72px; min-height: 100vh; display: grid; align-content: center; position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.06); }
.hero-slideshow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-slideshow .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 2s ease-in-out; }
.hero-slideshow .slide.active { opacity: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(13,13,15,0.85) 0%, rgba(26,28,34,0.8) 40%, rgba(45,48,56,0.85) 100%); z-index: 1; }
.hero .container { text-align: center; max-width: 1000px; position: relative; z-index: 2; }
.hero .eyebrow { color: var(--color-accent); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; font-size: 13px; margin-bottom: 18px; }
.hero h1 { font-size: 52px; line-height: 1.12; margin: 0 0 24px; font-weight: 800; }
.reviews-rotator { transition: opacity 0.18s ease; display: block; margin: 0 auto 0; font-size: 17px; line-height: 1.5; max-width: 850px; min-height: 60px; }
.reviews-rotator .stars { color: #ffd54a; letter-spacing: 3px; margin-right: 10px; font-size: 18px; text-shadow: 0 0 16px rgba(255,213,74,0.5); }
.reviews-rotator .quote-snippet { color: #f5f5f7; text-transform: none; letter-spacing: 0.3px; font-weight: 500; line-height: 1.6; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .reviews-rotator { font-size: 15px; min-height: 70px; }
  .reviews-rotator .stars { font-size: 16px; }
}
.btn, .cta-phone { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 0; font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: transform 0.05s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; position: relative; overflow: hidden; }
.btn:active, .cta-phone:active { transform: translateY(1px); }
.btn.primary { background: var(--color-accent); color: #0d0d0f; border-color: rgba(196,160,98,0.35); box-shadow: 0 0 0 1px rgba(196,160,98,0.25) inset, 0 0 20px rgba(196,160,98,0.25), 0 0 48px rgba(196,160,98,0.1); }
.btn.primary:hover { background: #d1b57a; box-shadow: 0 0 0 1px rgba(196,160,98,0.35) inset, 0 0 28px rgba(196,160,98,0.35), 0 0 64px rgba(196,160,98,0.18); }
.btn.ghost { background: rgba(255,255,255,0.06); color: #e5e7eb; border-color: rgba(196,160,98,0.35); box-shadow: 0 0 0 1px rgba(196,160,98,0.18) inset, 0 0 18px rgba(196,160,98,0.15); }
.btn.ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(196,160,98,0.45); box-shadow: 0 0 0 1px rgba(196,160,98,0.25) inset, 0 0 26px rgba(196,160,98,0.25); }

/* Make nav CTA adopt button look */
.cta-phone { background: var(--color-accent); color: #0d0d0f; border-color: rgba(196,160,98,0.35); box-shadow: 0 0 0 1px rgba(196,160,98,0.25) inset, 0 0 20px rgba(196,160,98,0.25), 0 0 48px rgba(196,160,98,0.1); }
.cta-phone:hover { background: #d1b57a; }

/* Liquid-style animated border shine */
.btn::before, .cta-phone::before { content: ""; position: absolute; inset: -1px; background: linear-gradient(135deg, rgba(196,160,98,0.8), rgba(196,160,98,0.15), rgba(196,160,98,0.8)); padding: 1px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; animation: liquid 6s linear infinite; pointer-events: none; }
.btn::after, .cta-phone::after { content: ""; position: absolute; top: 0; left: -150%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%); transform: skewX(-20deg); animation: sheen 4s linear infinite; pointer-events: none; }

@keyframes sheen { 0% { left: -150%; } 100% { left: 200%; } }
@keyframes liquid { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .btn::after, .cta-phone::after { animation: none; }
  .btn::before, .cta-phone::before { animation: none; }
}

/* About/Services */
.section { padding: 72px 0; }
.section h2 { font-size: 28px; margin: 0 0 12px; }
.section .lead { color: #cfd3da; margin: 0 0 28px; }
.copy-block h2 { text-align: center; margin-bottom: 24px; font-size: 32px; font-weight: 700; }
.copy-block p { color: #cfd3da; max-width: 900px; }
.copy-block .panel { border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); padding: 20px 22px; box-shadow: inset 3px 0 0 0 var(--color-accent); }
.copy-block p + p { margin-top: 12px; }
.testimonial-snippet { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.testimonial-snippet .stars { color: #ffd54a; letter-spacing: 3px; margin-bottom: 8px; font-size: 16px; text-shadow: 0 0 16px rgba(255,213,74,0.5); }
.testimonial-snippet .quote-text { color: #f5f5f7; font-style: italic; margin: 0 0 8px; font-size: 15px; line-height: 1.6; }
.testimonial-snippet .author { color: var(--color-accent); font-weight: 600; font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; grid-auto-rows: 1fr; }
.card { border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 18px; background: rgba(255,255,255,0.04); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; flex-shrink: 0; }
.card h3 { margin: 4px 0 8px; font-size: 18px; color: #fff; line-height: 1.3; min-height: 2.6em; }
.card p { margin: 0; color: #cfd3da; flex-grow: 1; }

@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* Testimonials */
.testimonials { background: transparent; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.quote { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 18px; color: #e8eaee; scroll-snap-align: start; }
.quote .author { margin-top: 10px; font-weight: 600; }
.quote .stars { color: #ffd54a; letter-spacing: 2px; margin-top: 8px; font-size: 16px; text-shadow: 0 0 10px rgba(255,213,74,0.4); }
@media (max-width: 960px) { .quotes { grid-auto-columns: 60%; } }
@media (max-width: 640px) { .quotes { grid-auto-columns: 80%; } }

/* FAQ */
.faq details { border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 14px 16px; background: rgba(255,255,255,0.04); }
.faq details + details { margin-top: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 10px 0 0; color: #cfd3da; }

/* Contact */
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; padding: 18px 20px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); }
.contact-info .info-item { color: #e5e7eb; line-height: 1.7; }
.contact-info strong { color: var(--color-accent); }
@media (max-width: 720px) { .contact-info { grid-template-columns: 1fr; } }
.contact form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact form .full { grid-column: 1 / -1; }
.control label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-muted); margin-bottom: 6px; }
.control input, .control select, .control textarea { width: 100%; padding: 12px; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); font: inherit; background: rgba(255,255,255,0.02); color: #fff; }
.control textarea { min-height: 120px; }
.form-actions { display: flex; gap: 12px; align-items: center; }
.form-note { font-size: 12px; color: var(--color-muted); }
.alert { border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }
.alert.success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.35); color: #a7f3d0; }
.alert.error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); color: #fecaca; }

@media (max-width: 720px) { .contact form { grid-template-columns: 1fr; } }

/* Footer */
footer.site-footer { padding: 32px 0; border-top: 1px solid rgba(255,255,255,0.06); color: #cfd3da; }
footer .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { footer .grid { grid-template-columns: 1fr; } }

/* Replace default bullets with brand chevrons */
ul { list-style: none; padding-left: 0; margin: 0 0 1rem; }
ul li { position: relative; padding-left: 18px; }
ul li::before { content: '▸'; position: absolute; left: 0; top: 0.35em; color: var(--color-accent); font-weight: 700; }

/* Gallery */
.gallery .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery figure { border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,0.04); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.gallery figure:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(196,160,98,0.2); }
.gallery figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 14px; font-size: 15px; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 50%); z-index: 2; }
.gallery a.gallery-tile { display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.gallery a.gallery-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.3s ease; }
.gallery a.gallery-tile:hover img { transform: scale(1.05); }
.gallery a.gallery-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%); pointer-events: none; }
.gallery a.gallery-tile::after { content: 'View Gallery'; position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); background: var(--color-accent); color: #0d0d0f; padding: 10px 20px; border-radius: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 0 20px rgba(196,160,98,0.6); opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 3; }
.gallery a.gallery-tile:hover::after { opacity: 1; transform: translateX(-50%) translateY(-4px); }
@media (max-width: 960px) { .gallery .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .gallery .grid { grid-template-columns: 1fr; } }

/* Lightbox */
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 10000; display: flex; flex-direction: column; padding: 0; }
.lightbox-header { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: 16px 20px; background: rgba(0,0,0,0.5); position: relative; padding-right: 80px; }
.lightbox-title { font-weight: 700; font-size: 16px; flex: 1; text-align: center; }
.lightbox-controls { display: flex; gap: 8px; order: -1; }
.lightbox-controls button { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 8px 14px; cursor: pointer; font-size: 20px; border-radius: 0; transition: background 0.2s ease; }
.lightbox-controls button:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { position: fixed; top: 30px; right: 30px; background: rgba(196,160,98,0.95); color: #0d0d0f; border: none; padding: 10px 14px; cursor: pointer; font-size: 24px; font-weight: 700; border-radius: 0; transition: background 0.2s ease, transform 0.2s ease; z-index: 10002; line-height: 1; box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.lightbox-close:hover { background: var(--color-accent); transform: scale(1.1); }
.lightbox-track { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; align-items: center; padding: 20px; position: relative; }
.lightbox-track img { max-height: 85vh; max-width: 100%; margin: 0 auto; scroll-snap-align: center; border: 1px solid rgba(255,255,255,0.15); background: #000; box-shadow: 0 8px 32px rgba(0,0,0,0.8); }

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px); /* reduced movement */
  transition: opacity 500ms ease-out, transform 500ms ease-out; /* shorter duration */
  will-change: opacity, transform; /* hint to browser */
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for cards within features grid */
.features .card.reveal {
  transition-delay: calc(var(--card-index, 0) * 0.08s);
}

/* Don't animate hero section on page load */
.hero {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

