/*
Theme Name: Grand Alpine Shine
Theme URI: https://grandalpineshine.com/
Author: Grand Alpine Shine LLC
Description: Custom theme for Grand Alpine Shine cleaning service. Mirrors the original static site design.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: grand-alpine-shine
*/

/* ===========================
   Grand Alpine Shine — CSS
   =========================== */

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

:root {
  --blue-bg:   #dce8f0;
  --blue-mid:  #c8dce9;
  --blue-dark: #b0cede;
  --black:     #111111;
  --white:     #ffffff;
  --font-head: 'Raleway', sans-serif;
  --font-body: 'Lato', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--blue-bg);
  font-size: 16px;
  line-height: 1.7;
}

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

/* ---- NAV ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--blue-bg);
  border-bottom: 2px solid var(--black);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.6; text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-circle {
  position: relative;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(220, 232, 240, 0.88);
  border: 3px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-text { display: flex; flex-direction: column; align-items: center; }
.hero-line {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 3.8rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.sparkle { position: absolute; font-size: 1.8rem; line-height: 1; }
.sparkle.tl { top: 28%; right: 14%; }
.sparkle.tr { top: 35%; right: 10%; }
.sparkle.br { top: 45%; right: 8%;  }
.hero-down {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 2.5rem;
  color: var(--black);
  opacity: 0.7;
  animation: bounce 1.8s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ---- SECTIONS ---- */
.section { padding: 72px 0; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.divider { width: 280px; height: 5px; background: var(--black); margin-bottom: 28px; }

/* ---- SERVICES ---- */
.services-section { background: var(--blue-bg); }
.services-intro { font-size: 1rem; margin-bottom: 48px; max-width: 700px; }
.service-card { display: flex; gap: 28px; margin-bottom: 48px; align-items: flex-start; }
.service-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--black);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}
.service-icon img { width: 80px; height: 80px; object-fit: contain; }
.service-body h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.service-tagline { font-style: italic; margin-bottom: 10px; }
.service-sub { margin-top: 10px; }

/* ---- CONTACT ---- */
.contact-section { background: var(--blue-mid); }
.contact-section h2 {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 2.2rem;
  margin-bottom: 12px;
  text-align: center;
}
.contact-intro {
  text-align: center;
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.form-group { display: flex; flex-direction: column; }
.form-group--full { grid-column: 1 / -1; }
.form-group--checkbox { justify-content: flex-end; padding-bottom: 4px; }
label { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.req { color: #c00; }
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="url"], textarea, select {
  border: 1px solid #aac;
  background: var(--white);
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  width: 100%;
  color: #222;
}
select {
  height: 40px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23557' d='M0 0l6 8 6-8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 7px;
  cursor: pointer;
}
input:focus, textarea:focus, select:focus { border-color: #557; }
textarea { resize: vertical; }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.checkbox-label input { width: 18px; height: 18px; cursor: pointer; }
.btn-submit {
  display: block;
  margin: 28px auto 0;
  padding: 13px 48px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.75; }
.form-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 700;
}
.form-error-msg { color: #c00; font-size: 0.82rem; margin-top: 4px; }

/* ---- GALLERY ---- */
.gallery-section { background: var(--black); padding: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}
.gallery-grid img:hover { opacity: 0.85; }

/* ---- ABOUT ---- */
.about-section { background: var(--blue-bg); }
.about-section p { max-width: 700px; font-size: 1rem; }

/* ---- REVIEWS ---- */
.reviews-section { background: var(--blue-mid); }
.reviews-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.reviews-widget { background: var(--white); border-radius: 6px; padding: 24px 28px; max-width: 640px; }
.reviews-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.google-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #4285F4;
  color: white;
  font-weight: 900;
  font-size: 1rem;
  font-family: var(--font-head);
}
.reviews-label { font-weight: 700; font-size: 1rem; flex: 1; }
.review-btn {
  background: #1a73e8;
  color: white;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.review-btn:hover { opacity: 0.85; text-decoration: none; }
.reviews-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.reviews-rating strong { font-size: 1.5rem; }
.stars { color: #f4b400; font-size: 1.2rem; letter-spacing: 2px; }
.review-count { color: #555; font-size: 0.9rem; }
.reviews-cta { font-size: 0.9rem; }
.reviews-cta a { color: #1a73e8; text-decoration: underline; }

/* ---- INFO ---- */
.info-section { background: var(--blue-bg); }
.info-tagline { margin-bottom: 28px; max-width: 500px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 500px; }
.info-grid h4 {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.info-grid a:hover { text-decoration: underline; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 18px;
  font-size: 0.82rem;
}

/* WP admin bar spacing — only push down when admin bar is fixed (desktop / tablet).
   On mobile (≤600px) the admin bar is position:absolute and scrolls away, so keep nav at top. */
body.admin-bar #navbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar #navbar { top: 46px; } }
@media (max-width: 600px) { body.admin-bar #navbar { top: 0; } }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 60px; left: 0; right: 0; background: var(--blue-bg); border-bottom: 2px solid var(--black); padding: 12px 24px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero-circle { width: 300px; height: 300px; }
  .hero-line { font-size: 2.6rem; }

  .form-grid { grid-template-columns: 1fr; }
  .form-group--full { grid-column: 1; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { height: 180px; }
  .gallery-grid img:last-child { display: none; }

  .service-card { flex-direction: column; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-circle { width: 240px; height: 240px; }
  .hero-line { font-size: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
}
