/* =========================================================
   Piña Auto Services — Global Stylesheet
   Dark Green Palette
   ========================================================= */

:root {
  --bg-darkest: #04140f;
  --bg-dark: #0a2a1f;
  --primary-green: #0e3d2c;
  --mid-green: #14523a;
  --accent-green: #2f8f5e;
  --bright-green: #45c07d;
  --gold: #d8ae4c;
  --text-light: #f3f7f4;
  --text-muted: #b9c9c0;
  --card-bg: #0f3226;
  --border-soft: rgba(243, 247, 244, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --header-height: 74px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-darkest);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  color: var(--text-light);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 70px 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-darkest));
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 45px;
}

.section-header .eyebrow {
  display: inline-block;
  color: var(--bright-green);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 2.1rem;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-green), var(--mid-green));
  color: var(--text-light);
  box-shadow: 0 8px 22px rgba(47, 143, 94, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(47, 143, 94, 0.5);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b8863a);
  color: #16241c;
  box-shadow: 0 8px 22px rgba(216, 174, 76, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 10px 28px rgba(216, 174, 76, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--bright-green);
  color: var(--bright-green);
}

.btn-outline:hover {
  background: rgba(69, 192, 125, 0.1);
}

.btn-block {
  width: 100%;
}

.btn-call svg {
  width: 18px;
  height: 18px;
}

/* Contact Me button used site-wide (calls the shop) */
.btn-contact {
  background: linear-gradient(135deg, var(--bright-green), var(--accent-green));
  color: #062017;
  box-shadow: 0 8px 20px rgba(69, 192, 125, 0.35);
}

.btn-contact:hover {
  box-shadow: 0 10px 26px rgba(69, 192, 125, 0.5);
  transform: translateY(-2px);
}

/* =========================================================
   Header / Top Nav (hides on scroll down, reveals on scroll up)
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 900;
  background: rgba(6, 27, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: transform 0.35s ease;
}

.site-header.nav-hidden {
  transform: translateY(-100%);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 2px dashed var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 0.6rem;
  text-align: center;
  line-height: 1.1;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(47, 143, 94, 0.08);
}

.logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-text .brand-name {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text .brand-tagline {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bright-green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--bright-green);
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--bright-green);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-actions .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* Hamburger / menu toggle — always visible, opens the side drawer */
.menu-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--mid-green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--text-light);
  display: block;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text-light);
  transition: transform 0.25s ease;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle.is-open span {
  background: transparent;
}

.menu-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Floating menu button — appears only once the header has
   slid out of view on scroll, so the side drawer is always
   reachable. */
.scroll-menu-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 950;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.scroll-menu-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================================
   Side Drawer Nav (mobile menu + scroll-triggered menu)
   ========================================================= */

.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 84vw);
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-darkest));
  border-left: 1px solid var(--border-soft);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  overflow-y: auto;
}

.side-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--mid-green);
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-nav a {
  display: block;
  padding: 14px 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.drawer-nav a:hover,
.drawer-nav a.active {
  color: var(--bright-green);
  padding-left: 16px;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-footer .phone-line {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.drawer-footer .phone-line strong {
  color: var(--bright-green);
  display: block;
  font-size: 1.1rem;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 7, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

body.drawer-locked {
  overflow: hidden;
}

/* =========================================================
   Floating call button (extra mobile-friendly CTA)
   ========================================================= */

.floating-call {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 850;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bright-green), var(--accent-green));
  color: #062017;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(69, 192, 125, 0.45);
  animation: pulse 2.4s infinite;
}

.floating-call svg {
  width: 26px;
  height: 26px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(69, 192, 125, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(69, 192, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(69, 192, 125, 0); }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  padding: 90px 0 80px;
  background:
    radial-gradient(circle at 20% 20%, rgba(69, 192, 125, 0.18), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(216, 174, 76, 0.12), transparent 40%),
    linear-gradient(180deg, var(--bg-dark), var(--bg-darkest));
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero .eyebrow {
  display: inline-block;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--bright-green);
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.hero-stats .stat {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
}

.hero-stats .stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--bright-green);
  font-family: Georgia, serif;
}

.hero-stats .stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-media {
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: linear-gradient(160deg, var(--mid-green), var(--primary-green));
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 30px;
  box-shadow: var(--shadow);
}

/* =========================================================
   Cards / Grids
   ========================================================= */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: minmax(0, 1fr); }
.grid-3 { grid-template-columns: minmax(0, 1fr); }
.grid-4 { grid-template-columns: minmax(0, 1fr); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-green);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(69, 192, 125, 0.12);
  color: var(--bright-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.card .price-tag {
  margin-top: 14px;
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

/* =========================================================
   CTA band
   ========================================================= */

.cta-band {
  background: linear-gradient(135deg, var(--mid-green), var(--primary-green));
  border-radius: var(--radius);
  padding: 46px 30px;
  text-align: center;
  border: 1px solid var(--border-soft);
}

.cta-band h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* =========================================================
   Testimonials
   ========================================================= */

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.testimonial-card .stars {
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card p.quote {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-card .author span {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* =========================================================
   Forms (Appointments / Contact)
   ========================================================= */

.form-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group label .req {
  color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-dark);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text-light);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--bright-green);
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}

.form-success,
.form-error {
  display: none;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.form-success {
  background: rgba(69, 192, 125, 0.14);
  border: 1px solid var(--accent-green);
  color: var(--bright-green);
}

.form-error {
  background: rgba(216, 90, 76, 0.14);
  border: 1px solid #d85a4c;
  color: #f2a99c;
}

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

/* =========================================================
   Info blocks (Contact page)
   ========================================================= */

.info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-item .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(69, 192, 125, 0.12);
  color: var(--bright-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.info-item p, .info-item a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.map-placeholder {
  border-radius: var(--radius);
  border: 2px dashed var(--accent-green);
  background: rgba(47, 143, 94, 0.08);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}

.faq-question .plus {
  color: var(--bright-green);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-question .plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-soft);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 30px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--bright-green);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--bright-green);
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom span {
  color: var(--gold);
}

/* =========================================================
   Page banner (used on interior pages)
   ========================================================= */

.page-banner {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-darkest));
  border-bottom: 1px solid var(--border-soft);
}

.page-banner .eyebrow {
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.page-banner h1 {
  font-size: 2rem;
  margin: 12px 0;
}

.page-banner p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumb span {
  color: var(--bright-green);
}

/* =========================================================
   Values / team
   ========================================================= */

.value-list {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

.team-card {
  text-align: center;
}

.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px dashed var(--accent-green);
  background: rgba(47, 143, 94, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-align: center;
  padding: 8px;
}

.team-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: block;
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { flex: 0 0 auto; }
  .form-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 860px) {
  .desktop-nav { display: block; }
  .menu-toggle { display: flex; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
  .value-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 3rem; }
  .header-actions .contact-label { display: inline; }
}

@media (max-width: 859px) {
  .header-actions .btn span.long-label { display: none; }
}
