/* ===== Reset & Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: #222;
  overflow-x: hidden;
  line-height: 1.6;
}

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

.fade-transition {
  transition: opacity 0.6s ease-in-out;
}

.fade-out {
  opacity: 0;
}

/* ===== Banner Section ===== */
.banner-top {
  background-color: #0077cc;
  color: white;
  text-align: center;
  padding: 0.7em 1.5em;
  font-size: 0.95em;
  position: relative;
  z-index: 1000;
  animation: slideDown 0.8s ease-in-out;
}

.banner-top .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2em;
  cursor: pointer;
}

@keyframes slideDown {
  from { top: -50px; opacity: 0; }
  to { top: 0; opacity: 1; }
}

/* ===== Navigation Bar ===== */
nav {
  background: #002244;
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  width: 100%;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: #fff;
  padding: 15px 20px;
  display: block;
  text-decoration: none;
  transition: background 0.3s;
}

nav ul li a:hover {
  background: #005fa3;
}

nav .dropdown ul.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #005fa3;
  display: none;
  min-width: 180px;
  z-index: 999;
  flex-direction: column;
}

nav .dropdown:hover ul.submenu {
  display: block;
}

/* ===== Hamburger Toggle Button ===== */
.nav-toggle {
  display: none;
  font-size: 1.8em;
  color: white;
  background: #002244;
  padding: 15px 20px;
  cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
  height: 100vh;
  background: url('rittybest.png') no-repeat center center/cover;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
  position: relative;
}

.hero h1 {
  font-size: 3em;
  text-shadow: 2px 2px 5px #000;
}

.hero p {
  font-size: 1.3em;
  text-shadow: 1px 1px 2px #000;
}

.cta-button {
  margin-top: 20px;
  display: inline-block;
  background: #ff6600;
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s, background 0.3s;
}

.cta-button:hover {
  background: #e65c00;
  transform: scale(1.05);
}

/* ===== Section Layouts ===== */
.section {
  padding: 80px 20px;
  text-align: center;
  background-color: #f9f9f9;
}

.section h2 {
  font-size: 2.2em;
  color: #003366;
  margin-bottom: 20px;
}

.section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1em;
}

/* ===== Services Section ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.service-box:hover {
  transform: translateY(-10px);
}

.service-box h3 {
  color: #005fa3;
  margin-bottom: 10px;
}

/* ===== Testimonials Section ===== */
.testimonials {
  background: #eef7ff;
}

.testimonial-box {
  background: white;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  border-left: 5px solid #0077cc;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.testimonial-box p {
  font-style: italic;
}

.testimonial-author {
  margin-top: 10px;
  text-align: right;
  font-weight: bold;
  color: #003366;
}

/* ===== Contact Form ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact-form button {
  background: #0077cc;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #005fa3;
}

/* ===== Footer ===== */
footer {
  background: #003366;
  color: white;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.9em;
}

footer a {
  color: #aaccff;
  margin: 0 10px;
  text-decoration: none;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

/* ===== Scroll Buttons ===== */
.scroll-buttons {
  position: fixed;
  bottom: 20px;
  right: 15px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.scroll-buttons.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-buttons button {
  background: #0077cc;
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 50%;
  font-size: 1.2em;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.2s;
}

.scroll-buttons button:hover {
  background: #005fa3;
  transform: scale(1.1);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav ul {
    flex-direction: column;
    display: none;
    width: 100%;
    background: #002244;
  }

  nav.open ul {
    display: flex;
  }

  nav ul li {
    width: 100%;
    text-align: left;
    border-top: 1px solid #003366;
  }

  nav ul li a {
    padding: 15px 20px;
  }

  nav .dropdown ul.submenu {
    display: none;
    background: #003366;
    border-top: 1px solid #004080;
  }

  nav .dropdown ul.submenu.open {
    display: flex;
    flex-direction: column;
  }

  nav .dropdown ul.submenu li a {
    padding-left: 40px;
    background-color: #004080;
  }

  .hero h1 {
    font-size: 2.2em;
  }

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

  .section h2 {
    font-size: 1.8em;
  }

  .cta-button {
    font-size: 1em;
    padding: 10px 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8em;
  }

  .hero p {
    font-size: 0.95em;
  }

  .section h2 {
    font-size: 1.6em;
  }

  .scroll-buttons button {
    padding: 8px 10px;
    font-size: 1em;
  }
}

/* ===== Dropdown Icon Styling ===== */
.toggle-icon {
  float: right;
  margin-left: 8px;
  font-weight: bold;
  font-size: 1.2em;
  color: #fff;
}

/* ===== Submenu transition (optional) ===== */
nav .submenu {
  transition: all 0.3s ease;
  overflow: hidden;
}
