/* ============================================================
   Coffee & Appliance Repairs – Main Stylesheet
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600;700&display=swap");

/* ---------- CSS Variables ---------- */
:root {
  --white: #ffffff;
  --off-white: #f8f6f3;
  --light-gray: #f2f0ed;
  --border: #e8e4df;
  --brown-light: #c8a882;
  --brown-mid: #a07850;
  --brown-dark: #7a5c38;
  --warm-tan: #e8d9c5;
  --warm-tan-2: #d4bfa0;
  --text-dark: #2a2018;
  --text-mid: #5a4a38;
  --text-light: #8a7a6a;
  --shadow-sm: 0 2px 8px rgba(90, 60, 20, 0.08);
  --shadow-md: 0 4px 20px rgba(90, 60, 20, 0.12);
  --shadow-lg: 0 8px 40px rgba(90, 60, 20, 0.16);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "DM Serif Display", serif;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}
h4 {
  font-size: 1.15rem;
}

p {
  color: var(--text-mid);
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--brown-mid);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--brown-dark);
}

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

section {
  padding: 80px 0;
}

.section-sm {
  padding: 50px 0;
}

/* ---------- Utility ---------- */
.text-brown {
  color: var(--brown-mid) !important;
}
.text-mid {
  color: var(--text-mid) !important;
}
.text-light {
  color: var(--text-light) !important;
}
.bg-off {
  background: var(--off-white);
}
.bg-light-gray {
  background: var(--light-gray);
}
.bg-tan {
  background: var(--warm-tan);
}

.divider {
  width: 56px;
  height: 3px;
  background: var(--brown-light);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
  display: none;
}
.divider-left {
  margin-left: 0;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-mid);
  display: none;
  margin-bottom: 0.6rem;
}

/* ---------- Buttons ---------- */
.btn-primary-brand {
  background: var(--brown-mid);
  color: var(--white);
  border: 2px solid var(--brown-mid);
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
}
.btn-primary-brand:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-brand {
  background: transparent;
  color: var(--brown-mid);
  border: 2px solid var(--brown-mid);
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
}
.btn-outline-brand:hover {
  background: var(--brown-mid);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: var(--white);
  color: var(--brown-dark);
  border: 2px solid var(--white);
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
}
.btn-white:hover {
  background: var(--warm-tan);
  border-color: var(--warm-tan);
  color: var(--brown-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
}
.btn-white-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
}

/* ---------- Navbar ---------- */
.navbar-brand {
  font-family: "DM Serif Display", serif;
  font-size: 1.35rem;
  color: var(--text-dark) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-brand span {
  color: var(--brown-mid);
}
.navbar-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: var(--brown-mid);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
}

.main-nav {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-mid) !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--brown-mid) !important;
  background: var(--warm-tan);
}

.navbar-toggler {
  border: 1px solid var(--border);
  padding: 0.3rem 0.55rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23a07850' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-call-nav {
  background: var(--brown-mid);
  color: var(--white) !important;
  padding: 0.4rem 1.1rem !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition);
}
.btn-call-nav:hover {
  background: var(--brown-dark) !important;
  color: var(--white) !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: url("../images/coffee-machine-hero-bg.jpg")
    center/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(42, 32, 24, 0.72) 100%,
    rgba(90, 60, 30, 0.45) 90%,
    rgba(200, 168, 130, 0.18) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.2rem;
}
.hero p {
  color: white;
  font-size: 1.2rem;
  max-width: 520px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  padding: 90px 0 70px;
  background: url("https://images.unsplash.com/photo-1585771724684-38269d6639fd?w=1600&q=80")
    center/cover no-repeat;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(42, 32, 24, 0.8) 0%,
    rgba(90, 60, 30, 0.55) 100%
  );
}
.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-hero-content h1 {
  color: var(--white);
}
.page-hero-content p {
  color: white;
  font-size: 1.05rem;
  max-width: 560px;
}
.breadcrumb-item a {
  color: var(--brown-light);
}
.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--warm-tan-2);
}
.service-card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.service-card-body {
  padding: 1.4rem 1.4rem 1.6rem;
}
.service-icon {
  width: 44px;
  height: 44px;
  background: var(--warm-tan);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-mid);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}
.service-card h4 {
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.91rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}
.service-card .card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brown-mid);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.service-card .card-link:hover {
  color: var(--brown-dark);
  gap: 0.5rem;
}

/* Featured service card */
.service-card-featured {
  background: linear-gradient(
    135deg,
    var(--brown-dark) 0%,
    var(--brown-mid) 100%
  );
  border-color: transparent;
  color: var(--white);
}
.service-card-featured .service-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}
.service-card-featured h4,
.service-card-featured p {
  color: rgba(255, 255, 255, 0.92);
}
.service-card-featured .card-link {
  color: var(--warm-tan);
}
.service-card-featured .card-link:hover {
  color: var(--white);
}

/* ---------- Feature / Why Choose Us ---------- */
.feature-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
  height: 100%;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--warm-tan-2);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--warm-tan);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-mid);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.feature-card h4 {
  margin-bottom: 0.4rem;
}
.feature-card p {
  font-size: 0.91rem;
  color: var(--text-light);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  padding: 80px 0;
  background: url("../images/coffee-machine-hero-bg.jpg")
    center/cover no-repeat;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(100, 70, 30, 0.88) 50%,
    rgba(160, 120, 80, 0.75) 100%
  );
}
.cta-banner-content {
  position: relative;
  z-index: 2;
}
.cta-banner h2 {
  color: var(--white);
}
.cta-banner p {
  color: white;
}

/* ---------- Brands ---------- */
.brand-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
  min-height: 64px;
}
.brand-item:hover {
  border-color: var(--brown-light);
  color: var(--brown-mid);
  box-shadow: var(--shadow-sm);
}

/* ---------- Contact Form ---------- */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.form-control,
.form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  font-size: 0.93rem;
  color: var(--text-dark);
  background: var(--off-white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  font-family: "DM Sans", sans-serif;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--brown-light);
  box-shadow: 0 0 0 3px rgba(200, 168, 130, 0.2);
  background: var(--white);
  outline: none;
}
textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

/* ---------- Info Cards (Contact page) ---------- */
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition);
}
.info-card:hover {
  box-shadow: var(--shadow-md);
}
.info-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: var(--warm-tan);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-mid);
  font-size: 1.1rem;
}
.info-card h5 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.info-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ---------- Map Placeholder ---------- */
.map-placeholder {
  width: 100%;
  height: 380px;
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.92rem;
  gap: 0.6rem;
  overflow: hidden;
}
.map-placeholder i {
  font-size: 2.5rem;
  color: var(--brown-light);
}
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-lg);
}

/* ---------- Stats / Numbers ---------- */
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: "DM Serif Display", serif;
  font-size: 2.6rem;
  color: var(--brown-mid);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ---------- Problem List ---------- */
.problem-list {
  list-style: none;
  padding: 0;
}
.problem-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  color: var(--text-mid);
}
.problem-list li:last-child {
  border-bottom: none;
}
.problem-list li i {
  color: var(--brown-mid);
  font-size: 0.85rem;
}

/* ---------- Team Card ---------- */
.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.team-avatar {
  width: 80px;
  height: 80px;
  background: var(--warm-tan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-mid);
  font-size: 2rem;
  margin: 0 auto 1rem;
}
.team-card h5 {
  margin-bottom: 0.2rem;
}
.team-card .role {
  font-size: 0.85rem;
  color: var(--brown-mid);
  font-weight: 600;
}

/* ---------- Hours Table ---------- */
.hours-table {
  width: 100%;
}
.hours-table tr td {
  padding: 0.5rem 0;
  font-size: 0.92rem;
  color: var(--text-mid);
}
.hours-table tr td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--text-dark);
}
.hours-table tr {
  border-bottom: 1px solid var(--border);
}
.hours-table tr:last-child {
  border-bottom: none;
}

/* ---------- Floating Buttons ---------- */
.floating-btns {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  transition: all var(--transition);
  text-decoration: none;
}
.float-btn:hover {
  transform: scale(1.08);
  color: var(--white);
}
.float-btn-call {
  background: var(--brown-mid);
}
.float-btn-call:hover {
  background: var(--brown-dark);
}
.float-btn-wa {
  background: #25d366;
}
.float-btn-wa:hover {
  background: #1ebe5d;
}
.float-btn-email {
  background: #5a7ab5;
}
.float-btn-email:hover {
  background: #4a6aa0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}
.site-footer h5 {
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-logo {
  font-family: "DM Serif Display", serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.6rem;
  display: block;
}
.footer-logo span {
  color: var(--brown-light);
}
.site-footer p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover {
  color: var(--brown-light);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-contact-item i {
  color: var(--brown-light);
  margin-top: 3px;
  min-width: 14px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  padding: 1.2rem 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a:hover {
  color: var(--brown-light);
}

/* ---------- Alert / Notice ---------- */
.notice-bar {
  background: var(--warm-tan);
  padding: 0.55rem 0;
  font-size: 0.84rem;
  text-align: center;
  color: var(--brown-dark);
  font-weight: 500;
}
.notice-bar a {
  color: var(--brown-dark);
  font-weight: 700;
}

/* ---------- Testimonial ---------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  height: 100%;
}
.stars {
  color: #d4960a;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.testimonial-card p {
  font-size: 0.93rem;
  color: var(--text-mid);
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--warm-tan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-mid);
  font-weight: 700;
  font-size: 0.95rem;
}
.author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}
.author-area {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ---------- Accordion ---------- */
.accordion-item {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.accordion-button {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
}
.accordion-button:not(.collapsed) {
  background: var(--warm-tan);
  color: var(--brown-dark);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: none;
}
.accordion-button::after {
  filter: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  section {
    padding: 60px 0;
  }
  .hero {
    min-height: 70vh;
  }
}

@media (max-width: 768px) {
  section {
    padding: 50px 0;
  }
  .hero {
    min-height: 80vh;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .contact-form-wrap {
    padding: 1.5rem;
  }
  .floating-btns {
    right: 14px;
    bottom: 20px;
  }
}


.areas-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.areas-box {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 18px;
  height: 100%;
  transition: all 0.3s ease;
}

.areas-box:hover {
  transform: translateY(-3px);
  border-color: rgba(0,0,0,0.12);
}

.areas-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.areas-box p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* ======================
   RESPONSIVE
   ====================== */

@media (max-width: 1100px) {
  .areas-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .areas-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .areas-box {
    padding: 15px;
  }

  .areas-box h3 {
    font-size: 0.9rem;
  }

  .areas-box p {
    font-size: 0.82rem;
    line-height: 1.6;
  }
}
