/* === Base Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f5f5f5;
  --text: #111;
  --accent: #00c4cc;
  --btn-bg: #00c4cc;
  --btn-text: #fff;
  --box-bg: #ffffff;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

html, body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

/* === Navbar === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: rgba(0, 0, 0, 0.85);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo img {
  height: 50px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  font-size: 28px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

/* === Responsive Navbar === */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #000;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    padding: 20px;
    text-align: right;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu li {
    padding: 10px 0;
  }

  .navbar {
    flex-wrap: wrap;
  }
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero .hero-content {
  z-index: 1;
  animation: fadeInUp 1s ease-out forwards;
  color: white;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 10px #000;
}

.hero p {
  font-size: 1.25rem;
  text-shadow: 1px 1px 5px #000;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--btn-bg, #009999); /* fallback if --btn-bg isn't set */
  color: white; /* <-- Makes text visible even when not hovered */
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
  margin-top: 20px;
}

.btn:hover {
  background-color: #008c8c;
  color: white; /* Ensures text stays visible on hover */
  transform: scale(1.05);
}

/* === Section Box === */
.section-box {
  max-width: 1100px;
  margin: 60px auto;
  padding: 40px;
  background: var(--box-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

.section-box img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  object-fit: cover;
}

.section-box .text {
  flex: 1;
  min-width: 250px;
  color: var(--text);
}

.section-box .text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.section-box .text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* === Call to Action Banner === */
.motto-banner {
  background: var(--accent);
  color: white;
  padding: 40px 20px;
  text-align: center;
  font-size: 1.75rem;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Footer === */
.footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  border-top: 1px solid #333;
}

/* === Store Section === */
.store-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
}

.store-section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text);
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.product-card {
  background-color: var(--box-bg);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 260px;
  text-align: center;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

.product-card .info {
  padding: 20px;
}

.product-card .info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.product-card .info p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.product-card .info a {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.product-card .info a:hover {
  background-color: #008c8c;
}

/* === Mobile Adjustments === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .section-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section-box img {
    max-width: 100%;
  }

  .section-box .text {
    padding: 0;
  }

  .motto-banner {
    font-size: 1.25rem;
    padding: 30px 15px;
  }

  .store-section h2 {
    font-size: 1.5rem;
  }

  .product-card .info h3 {
    font-size: 1rem;
  }

  .product-card .info p {
    font-size: 0.9rem;
  }

  .gallery-section {
    padding: 30px 10px;
  }

  .gallery-title {
    font-size: 1.75rem;
  }
}

/* === Anchor Offset Fix (Sticky Navbar) === */
#home,
#about,
#services,
#gallery,
#contact {
  scroll-margin-top: 80px;
}

/* === General Elements === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.swiper,
.swiper-wrapper,
.swiper-slide {
  max-width: 100%;
  overflow: hidden;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  z-index: 9999;
}

.about-hero {
  background-image: url('images/grading-bg.jpeg');
}

/* === Contact Page === */
.contact-hero {
  background-image: url('images/grading-bg.jpeg');
}

.contact-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 30px;
  background: var(--box-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  position: relative;
}

.input-group i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #888;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 15px 15px 15px 44px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.input-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  padding: 12px 24px;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background-color: #008c8c;
  transform: scale(1.03);
}

.thank-you-message {
  display: none;
  text-align: center;
  font-size: 1.2rem;
  padding: 20px;
  background: #d4f4dd;
  border: 1px solid #b2e4c1;
  color: #2a7c45;
  border-radius: 8px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .contact-section {
    padding: 20px;
  }
}

/* === Gallery Page === */
.gallery-hero {
  background-image: url('images/grading-bg.jpeg');
}

.gallery-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
}

.gallery-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

/* === Services Page === */
.services-hero {
  background-image: url('images/grading-bg.jpeg');
}

.motto-banner {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  font-size: 1.25rem;
}

.motto-banner a {
  color: #00cccc;
  text-decoration: underline;
  margin-left: 10px;
}

/* === Home Page Specific === */
.home-hero {
  background-image: url('images/grading-bg.jpeg');
}

.simple-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.simple-gallery img {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.simple-gallery img:hover {
  transform: scale(1.03);
}

.motto-banner {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.motto-banner a {
  color: white !important;
  text-decoration: none;
  font-weight: bold;
}

.under-construction-img {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
}

/* === Blog List Styling === */
.blog-list {
  list-style: none;
  padding-left: 0;
}

.blog-list li {
  margin-bottom: 10px;
}

.blog-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.blog-list a:hover {
  color: #008c8c;
  text-decoration: underline;
}

.blog-list p {
  margin-bottom: 25px;
  color: #333;
  font-size: 1rem;
}

.protips-hero {
  background-image: url('../images/protips-hero-banner.png');
  background-size: cover; /* Ensures full coverage */
  background-position: center;
  background-repeat: no-repeat;
  min-height: 300px; /* Replaces fixed height */
  padding: 3rem 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (max-width: 768px) {
  .protips-hero {
    background-position: top center;
    background-size: cover;  /* Keep 'cover' on mobile */
    min-height: 250px;
    padding: 2rem 1rem;
  }
}

