/* ============================================================
   RevGnosis – Main Stylesheet
   ============================================================ */

/* ----- Variables ----- */
:root {
  --blue: #00AEEF;
  --blue-dark: #0091C9;
  --text-dark: #222222;
  --text-body: #444444;
  --text-light: #666666;
  --bg-light: #f2f2f2;
  --bg-white: #ffffff;
  --bg-dark: #0d0d0d;
  --nav-height: 90px;
  --radius: 4px;
  --transition: 0.2s ease;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ----- Typography ----- */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-dark);
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

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

.heading-blue {
  color: var(--blue);
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  text-align: center;
}

.btn-solid {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-solid:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
}

.btn-full {
  width: 100%;
  display: block;
}

/* ----- Layout ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 80px 0;
}

.section-white { background: var(--bg-white); }
.section-light { background: var(--bg-light); }
.section-dark  { background: var(--bg-dark); }

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}
.section-header h2 {
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-body);
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.two-col-left {}
.two-col-right {}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow var(--transition);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  flex-shrink: 0;
}
.nav-logo img {
  height: 54px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 1rem 2rem 1.5rem;
  gap: 0;
}
.nav-mobile.open {
  display: flex;
}
.nav-mobile-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid #f0f0f0;
  transition: color var(--transition);
}
.nav-mobile-link:hover { color: var(--blue); }
.nav-mobile-cta {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: left;
}
.hero-content h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
}
.hero-content p {
  color: rgba(255,255,255,0.88);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  margin-bottom: 2rem;
  max-width: 620px;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.about-img-wrap {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.about-img-wrap:hover img {
  transform: scale(1.04);
}

/* ============================================================
   KEY BENEFITS
   ============================================================ */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.benefit-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ============================================================
   FEATURES / HOW IT WORKS
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 8px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 174, 239, 0.1);
  margin: 0 auto 1rem;
  color: var(--blue);
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--blue);
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   SHOWCASE (dark alternating sections)
   ============================================================ */
.showcase {
  padding: 0;
}
.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.showcase-item-reverse {
  direction: rtl;
}
.showcase-item-reverse > * {
  direction: ltr;
}

.showcase-img {
  overflow: hidden;
}
.showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.showcase-img:hover img {
  transform: scale(1.04);
}

.showcase-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
  background: var(--bg-dark);
}
.showcase-text h2 {
  color: var(--blue);
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}
.showcase-text p {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ============================================================
   IMAGE BANNER
   ============================================================ */
.img-banner {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.img-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.img-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-banner-text {
  text-align: center;
  padding: 2rem;
}
.img-banner-text h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
  max-width: 680px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-intro {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}
.contact-address {
  margin-bottom: 2.5rem;
  font-style: normal;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-map iframe {
  display: block;
  border-radius: 8px;
}

.contact-form-wrap h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}
.form-group input,
.form-group textarea {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  color: var(--text-dark);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,174,239,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

.form-status {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0;
  min-height: 1.5rem;
}
.form-status.success { color: #1a8a3a; }
.form-status.error   { color: #c0392b; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-white);
  border-top: 1px solid #e5e5e5;
  padding: 1.5rem 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--text-light);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--blue); }

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

/* Tablet – 1024px and below */
@media (max-width: 1024px) {
  :root { --nav-height: 80px; }

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

  .showcase-item {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .showcase-item-reverse {
    direction: ltr;
  }
  .showcase-img {
    aspect-ratio: 16 / 9;
  }
  .showcase-text {
    padding: 2.5rem 2rem;
  }
}

/* Tablet narrow / Large mobile – 768px and below */
@media (max-width: 768px) {
  :root { --nav-height: 70px; }

  .section { padding: 60px 0; }

  /* Nav */
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-logo img {
    height: 44px;
  }

  /* Two col → single col */
  .two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* About images */
  .about-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-map iframe {
    height: 300px;
  }

  /* Image banner */
  .img-banner { height: 300px; }

  /* Hero */
  .hero-content {
    text-align: center;
    padding: 3rem 1.5rem;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
}

/* Mobile – 480px and below */
@media (max-width: 480px) {
  .section { padding: 48px 0; }

  .container { padding: 0 1.25rem; }

  .nav-container { padding: 0 1.25rem; }

  .about-images {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn { width: 100%; max-width: 280px; }

  .nav-mobile-cta .btn {
    max-width: none;
    flex: 1;
  }

  .img-banner { height: 240px; }
}

/* ============================================================
   NAV ACTIVE STATE
   ============================================================ */
.nav-links a.nav-active {
  color: var(--blue);
}
.nav-links a.nav-active::after {
  transform: scaleX(1);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  margin-top: var(--nav-height);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 0 2rem;
  margin: 0 auto;
  text-align: left;
}
.page-hero-content h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.page-hero-content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ============================================================
   PAGE INTRO (features page)
   ============================================================ */
.page-intro {
  padding: 70px 0 60px;
  margin-top: var(--nav-height);
}
.page-intro h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.page-intro-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
  margin-top: var(--nav-height);
}
.contact-page h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.contact-page .contact-layout {
  margin-top: 2rem;
}
.contact-page .contact-map iframe {
  height: 460px;
}

.form-checkbox {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0 !important;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
}
.checkbox-label a {
  color: var(--blue);
  text-decoration: underline;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
}
.about-quad-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.about-img-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.about-img-large {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img-small {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img-large img,
.about-img-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.about-img-large:hover img,
.about-img-small:hover img {
  transform: scale(1.04);
}

/* ============================================================
   FEATURES PAGE — CARD GRID
   ============================================================ */
.feat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feat-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.feat-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.feat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.feat-card:hover .feat-card-img img {
  transform: scale(1.05);
}
.feat-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  padding: 1rem 1.25rem 0.4rem;
}
.feat-card p {
  font-size: 0.85rem;
  color: var(--text-body);
  padding: 0 1.25rem 1.25rem;
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   FEATURES PAGE — DETAIL GRID
   ============================================================ */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.detail-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.detail-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.detail-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.detail-card:hover .detail-card-img img {
  transform: scale(1.05);
}
.detail-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  background: #fff;
}
.detail-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}
.detail-card-body p {
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   RESPONSIVE — NEW PAGES
   ============================================================ */
@media (max-width: 1024px) {
  .feat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .page-hero { height: 320px; }
  .page-hero-content h1 { font-size: 1.5rem; }

  .about-quad {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-img-stack {
    grid-template-columns: 1fr 1fr;
  }

  .feat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-page .contact-map iframe { height: 300px; }
}

@media (max-width: 480px) {
  .page-hero { height: 260px; }

  .feat-cards-grid {
    grid-template-columns: 1fr;
  }
  .about-img-stack {
    grid-template-columns: 1fr;
  }
  .about-img-large { grid-column: auto; }
}
