/* Simplified CSS Template for Glendale Elite Custom Cabinets */
/* Clean, professional, easy to adapt in Pinecone or similar editors */

:root {
  --primary: #1a365d;
  --base: #D3BC9C;            /* Light Brown  Background */
  --accent3: #BA710A;         /*       Orange H3 Hero text - Buttons */
  --accent2: #94866e;         /*       Brown  H2 Background - Flip Card Background */
  --accent: rgb(94, 41, 33);  /* Red   Brown  Hero background & H2 Font Color */
  --text: #2d3748;
  --text-light: #4a5568;
  /*--bg: #ffffff;*/
  --bg: var(--base); /* #D3BC9C;  tan*/
  --bg-alt: #f7fafc;
  --border: #e2e8f0;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --max-width: 1100px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

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

/* Header */
.site-header {
  background: var(--accent2);
  font-color var(--accent);
  font-weight: bold;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  font-color: var(--accent3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { height: 120px; width: auto; }
.header-contact { text-align: right; font-size: 0.9rem; }
.phone {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.main-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  display: block;
}
.main-nav a:hover { color: var(--accent); }

/* Dropdown */
.dropdown { position: relative; }
.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  z-index: 200;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: flex;
}
.dropdown-menu li { width: 100%; }
.dropdown-menu a {
  padding: 0.6rem 1rem;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: var(--bg-alt);
}

/* Hero */
.hero {
  background: var(--accent);
  /*background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);*/
  color: #fff;
  padding: 3rem 0 4rem;
  text-align: center;
}
.hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: block;
}
.hero h1 {
  font-size: 2.25rem;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.tagline {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}
.hero-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.75rem;
  text-align: left;
  margin: 2rem 0 1rem;
  align-items: start;
}
.hero-col h3 {
  color: var(--accent3); /*#BA710A;  */
  margin-top: 0;
  font-size: 1.1rem;
}
.hero-col p { margin-bottom: 1rem; }
.hero-quote {
  background: rgba(255,255,255,0.08);
  padding: 1.25rem;
  border-radius: var(--radius);
}
.hero-quote h2 {
  <!---color: #fff; --->
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  text-align: center;
}
.hero .quote-form {
  max-width: none;
  margin: 0;
}
.hero .quote-form input,
.hero .quote-form textarea {
  background: #fff;
  color: var(--text);
  border: none;
  width: 100%;
}

.about-details {
  background-image: url("page-kitchen3.jpg");
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
  background-image: url("page-kitchen3.jpg");
}


/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent3);
  color: #1a365d;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
.btn:hover { background: #d4af37; }

/* Stats / Flip Cards */
.stats {
  background: var(--accent2);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.flip-card {
  background: transparent;
  height: 160px;
  perspective: 1000px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.flip-card-front {
  background: var(--accent);/*#fff;*/
  color: #fff;/*var(--primary);*/
  border: 1px solid var(--border);
}
.flip-card-front strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.flip-card-front span {
  font-size: 0.9rem;
  line-height: 1.3;
}
.flip-card-back {
  background: #fff; /*var(--base); */
/*  background: var(--primary);*/
  font-color: var(accent);
  transform: rotateY(180deg);
}
.flip-card-back p {
  margin: 0;
  font-color: var(accent);
  font-size: 0.90rem; /*0.85rem;*/
  line-height: 1.4;
}

/* Sections */
section { padding: 3.5rem 0; }
h2 {
  font-size: 1.85rem;
  color: var(--accent);  /*var(--primary);*/
  margin-top: 0;
  margin-bottom: 1.5rem;
  background: var(--accent2);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  <!---display: inline-block; --->
}
h3 { color: var(--primary); margin-top: 0; }

.service {
  margin-bottom: 0;
  padding: 0;
  border-bottom: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.service h3,
.service p {
  padding-left: 1rem;
  padding-right: 1rem;
}
.service h3 { margin-top: 1rem; margin-bottom: 0.5rem; }
.service p { margin-bottom: 1rem; font-size: 0.95rem; }

.commercial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.commercial .service h3 {
  font-size: 1rem;
}

/* Materials */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.material {
  background: var(--bg-alt);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.material h3 { margin-top: 0; font-size: 1.15rem; }
.material-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  border-radius: 60px / 50%;
  margin: 0 0 1rem 0;
}

/* Project Details / Steps */
.project-details {
}
.project-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

/* Project Details / Steps */
.project-details {
  background-image: url("woodpine.jpg");
  background-repeat: repeat; /* Repeats horizontally and vertically */
  background-color: #F0EFB4; /*var(--bg-alt);*/
}
.project-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.step {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}
.step-number {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step h3 { margin-top: 0; font-size: 1.1rem; }
.project-image {
  position: sticky;
  top: 1.5rem;
}
.tall-image {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.circle-image {
  width: 100%;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.ellipse-image {
  width: 100%;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Testimonials */
.testimonies { }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  margin: 0;
}
.testimonial p {
  font-style: italic;
  margin-top: 0;
}
.testimonial footer {
  margin-top: 1rem;
  font-style: normal;
}
.testimonial strong { display: block; color: var(--primary); }
.testimonial span { font-size: 0.85rem; color: var(--text-light); }
.cta { }
.quote-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.quote-form input,
.quote-form textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}
.quote-form button { align-self: flex-start; }

/* Footer */
.site-footer {
  background: var(--primary);
  color: #e2e8f0;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a { color: var(--accent); text-decoration: none; }

/* Responsive */
@media (max-width: 1000px) {
  .commercial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-columns { grid-template-columns: 1fr; gap: 1.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .project-layout { grid-template-columns: 1fr; }
  .tall-image { min-height: 400px; }
}
@media (max-width: 800px) {
  .hero h1 { font-size: 1.75rem; }
  .site-header .container { flex-direction: column; text-align: center; gap: 1rem; }
  .header-contact { text-align: center; }
  .main-nav ul { flex-direction: column; gap: 0.5rem; }
  .dropdown-menu { position: static; box-shadow: none; border: none; min-width: auto; }
  .stats-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .commercial-grid { grid-template-columns: 1fr; }
}



.phone-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--accent3);
  color: var(--accent);
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: shake 4.5s ease-in-out infinite;
  transition: box-shadow 0.2s ease;
}

.phone-button:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  animation-play-state: paused;
}

.phone-icon {
  width: 45px;
  height: auto;
  filter: brightness(0) invert(1); /* make black icon white */
}

.phone-number {
  letter-spacing: 0.5px;
}

/* Subtle shake animation for the phone icon */
@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  15%, 19%, 23% { transform: rotate(-8deg); }
  17%, 21%, 25% { transform: rotate(8deg); }
  33% { transform: rotate(0deg); }
}

.faq {
  background-image: url("woodpine.jpg");
  background-repeat: repeat; /* Repeats horizontally and vertically */
  background-color: #F0EFB4; /*var(--bg-alt);*/
}

.faq-item {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;           /* hides the default triangle in some browsers */
  position: relative;
  color: var(--primary, #1a365d);
}

.faq-item summary::-webkit-details-marker {
  display: none;              /* hides the default arrow in WebKit */
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent, #c9a227);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "–";
  transform: translateY(-50%) rotate(0deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text, #2d3748);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

.text-overlay-section {
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 8px;
}

.gallery-flow {
  column-count: 3;              /* number of columns */
  column-gap: 1rem;             /* space between columns */
}

.gallery-flow img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;          /* space under each image */
  border-radius: 6px;
  display: block;
  break-inside: avoid;          /* keeps each image from splitting across columns */
}

/* Responsive */
@media (max-width: 900px) {
  .gallery-flow { column-count: 2; }
}
@media (max-width: 600px) {
  .gallery-flow { column-count: 1; }
}