/* GitHub Pages: Push this folder to a GitHub repo (e.g., 'gripngo-website'), then enable GitHub Pages in Settings → Pages (branch: main, folder: /). */
/* Pure CSS (no frameworks). Colors: white background, black & red accents. */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --accent: #d90429;
  /* red accent */
  --shadow: 0 10px 30px rgba(0, 0, 0, .06);
  --radius: 16px;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6
}

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

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto
}

.section-header {
  margin: 2rem 0 1rem
}

.section-header h1,
.section-header h2 {
  line-height: 1.2;
  margin: 0 0 .25rem
}

.section-header p {
  color: var(--muted);
  margin: 0 0 1rem
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  gap: 1rem
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  letter-spacing: .3px
}

.logo span {
  font-size: 1.05rem
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  cursor: pointer
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111;
  border-radius: 2px
}

.site-nav .menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0
}

.site-nav .menu>li>a {
  padding: .5rem .75rem;
  border-radius: 10px
}

.site-nav .menu>li>a:hover {
  background: #f5f5f5
}

.btn-quote {
  background: var(--accent);
  color: #fff;
  padding: .55rem .9rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s
}

.btn-quote:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 35px rgba(217, 4, 41, .25)
}

/* Dropdown */
.has-dropdown {
  position: relative
}

.dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: .25rem;
  display: none
}

.dropdown li a {
  display: block;
  padding: .6rem .8rem;
  border-radius: 8px
}

.dropdown li a:hover {
  background: #f7f7f7
}

.has-dropdown:hover .dropdown {
  display: block
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: #fff;
    translate: 0 -10px;
    opacity: 0;
    pointer-events: none;
    transition: all .2s;
    border-top: 1px solid #eee
  }

  .site-nav.open {
    translate: 0 0;
    opacity: 1;
    pointer-events: auto
  }

  .site-nav .menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem
  }

  .has-dropdown .dropdown {
    position: relative;
    top: 0;
    border: none;
    box-shadow: none;
    display: none;
    margin-left: .75rem
  }

  .has-dropdown.open .dropdown {
    display: block
  }
}

/* Hero */
.hero {
  min-height: 64svh;
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .25));
  z-index: -1
}

.hero-inner {
  padding: 8svh 0;
  color: #fff;
  animation: fadeUp .6s ease both
}

.hero h1 {
  font-size: clamp(1.7rem, 1rem + 2.4vw, 3rem);
  margin: 0 0 .5rem
}

.hero .sub {
  color: #f1f5f9;
  margin: 0 0 1rem
}

.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: .7rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s
}

.btn-primary {
  background: var(--accent);
  color: white
}

.btn-secondary {
  background: #fff;
  color: #111
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px)
}

/* Cards and grids */
.grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0
}

.grid.two {
  grid-template-columns: repeat(2, 1fr)
}

.grid.three {
  grid-template-columns: repeat(3, 1fr)
}

.grid.four {
  grid-template-columns: repeat(4, 1fr)
}

@media (max-width: 900px) {
  .grid.three {
    grid-template-columns: repeat(2, 1fr)
  }

  .grid.four {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 560px) {

  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr
  }
}

.card {
  border: 1px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .08)
}

.card .card-body {
  padding: 1rem
}

.card.info {
  padding: 1rem
}

.feature-card img {
  aspect-ratio: 16/10;
  object-fit: cover
}

.product img {
  aspect-ratio: 4/3;
  object-fit: cover
}

/* CTA */
.cta .cta-box {
  border: 2px dashed #eee;
  padding: 1.25rem;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: flex-start
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid #eee;
  padding: 1.5rem 0 .5rem
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 1rem
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}

.site-footer h4 {
  margin: .25rem 0
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: .25rem 0
}

.contact-list li {
  margin: .25rem 0
}

.social-row {
  display: flex;
  gap: .6rem
}

.icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: background .15s, transform .15s
}

.icon:hover {
  background: #f7f7f7;
  transform: translateY(-1px)
}

.icon svg {
  width: 20px;
  height: 20px;
  fill: #111
}

.site-footer .bottom {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid #eee
}

/* Gallery & Lightbox */
.gallery img {
  border-radius: 12px;
  border: 1px solid #eee;
  cursor: zoom-in;
  aspect-ratio: 4/3;
  object-fit: cover
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 2000
}

.lightbox.open {
  display: flex
}

.lightbox img {
  max-width: 96vw;
  max-height: 86vh;
  border-radius: 14px
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 2rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer
}

/* Social page */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem
}

@media (max-width: 700px) {
  .social-grid {
    grid-template-columns: 1fr
  }
}

.social-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 1rem;
  background: #fff
}

.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #111;
  opacity: .9
}

.social-icon.fb {
  background: #1877f2
}

.social-icon.ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%)
}

.social-icon.wa {
  background: #25D366
}

/* Contact */
.contact-grid {
  align-items: start
}

.contact-form fieldset {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 1rem
}

label {
  display: block;
  margin: .75rem 0 .35rem
}

input,
select,
textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(217, 4, 41, .2);
  border-color: var(--accent)
}

.form-note {
  color: var(--muted);
  font-size: .9rem
}

.map-wrap {
  margin-top: 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee
}

.map-wrap iframe {
  width: 100%;
  height: 260px;
  border: 0
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    translate: 0 8px
  }

  to {
    opacity: 1;
    translate: 0 0
  }
}

/* Social feeds (new layout) */
.feed-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.6fr 1.2fr
}

@media (max-width: 940px) {
  .feed-grid {
    grid-template-columns: 1fr
  }
}

.embed-card {
  border: 1px solid #eee;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden
}

.embed-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem;
  border-bottom: 1px solid #f1f1f1
}

.embed-card header h3 {
  margin: 0;
  font-size: 1rem
}

.embed-body {
  padding: .75rem
}

/* Facebook embed */
.fb-embed .embed-body {
  padding: 0
}

.fb-embed .fb-page {
  width: 100%
}

/* Instagram grid of embeds */
.ig-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, 1fr)
}

@media (max-width: 560px) {
  .ig-grid {
    grid-template-columns: 1fr
  }
}

.instagram-media {
  margin: 0 !important;
  max-width: 100% !important;
  border-radius: 14px !important
}

/* Small helper note */
.embed-note {
  color: var(--muted);
  font-size: .9rem;
  margin-top: .5rem
}