/* Base resets and typography */
:root {
  --accent: #ff751f;
  --dark: #222;
  --darkest: #111;
  --lightgray: #f4f4f4;
  --font-heading: 'Roboto Slab', serif;
  --font-body: 'Open Sans', sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--dark);
  background-color: #fff;
  font-size: 16px; /* base font size for consistent scaling */
}
body {
  line-height: 1.6;
  font-weight: 500;
  background: #f9f9f9;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 117, 31, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(21, 33, 99, 0.08) 0%, transparent 50%);
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--darkest);
}
p {
  color: #444;
}
a {
  color: var(--accent);
}

/* Utility */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
img {
  max-width: 100%;
  height: auto;
}

/* Header / Navbar */
.site-header {
  background: rgba(17,17,17,0.85);
  backdrop-filter: blur(8px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}
.navbar .logo img {
  display: block;
  height: 90px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s, transform 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent);
  transform: translateY(-1px);
}
.nav-links a.active {
  color: var(--accent);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  width: 25px;
  height: 3px;
  background-color: #222;
  display: block;
  position: relative;
  transition: all 0.3s;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
}
.hamburger::before {
  top: -8px;
}
.hamburger::after {
  top: 8px;
}
.nav-toggle.active .hamburger {
  background-color: transparent;
}
.nav-toggle.active .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: #ff751f;
}
.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: #ff751f;
}

/* Hero */
.hero {
  padding-top: 100px; /* account for fixed nav */
  background: linear-gradient(180deg, #3a3a3a 0%, #222 100%);
  text-align: center;
  padding: 6rem 1rem 8rem;
  color: #fff;
  position: relative;
}
.hero::before {
  display: none; /* remove pattern overlay */
}
.hero .container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-logo {
  max-width: 400px;
  width: 100%;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 3.5rem;
  color: #fff;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
}
.hero h2 {
  font-size: 2rem;
  color: #ff751f;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
}
.hero p {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: #f2f2f2;
  font-weight: 500;
}
.btn {
  display: inline-block;
  background-color: #ff751f;
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-top: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  animation: pulse 2s infinite;
}
.btn:hover {
  background-color: #e06614;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
@keyframes pulse {
  0% { box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
  50% { box-shadow: 0 4px 8px rgba(255, 117, 31, 0.4); }
  100% { box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
}

/* Sections */
.section {
  padding: 4rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin-bottom: 2rem;
  background: #fff;
  border-left: 5px solid var(--accent);
}
.section.about {
  background-color: var(--dark);
  color: #fff;
  border-left-color: var(--accent);
  text-align: center;
}
.section.about .container {
  max-width: 800px;
}
.section.about p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-top: 1rem;
}
.section.about h2 {
  border-color: var(--accent);
  color: #fff;
  font-size: 2.5rem;
}
.section.about p,
.section.about ul li,
.section.about address,
.section.about a {
  color: #fff;
}
.section.about a {
  color: var(--accent);
}
.section:nth-of-type(even) {
  background-color: var(--lightgray);
}
.section:nth-of-type(even) h2,
.section:nth-of-type(even) p,
.section:nth-of-type(even) ul li,
.section:nth-of-type(even) address {
  color: var(--dark);
}
.section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
  border-bottom: 4px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.25rem;
  font-weight: 800;
  position: relative;
}
.section h2::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  height: 100%;
  width: 6px;
  background: var(--accent);
}
.section h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-weight: 700;
}
.service {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.5rem 1rem 1.5rem 3rem;
  border-radius: 4px;
  background: #fff;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.service::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 0.5rem;
  width: 24px;
  height: 24px;
  background-size: cover;
}
.service:nth-of-type(1)::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ff751f" viewBox="0 0 24 24"><path d="M12 2l9 4-9 4-9-4 9-4zm0 6l9 4-9 4-9-4 9-4zm0 6l9 4-9 4-9-4 9-4z"/></svg>');
}
.service:nth-of-type(2)::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ff751f" viewBox="0 0 24 24"><path d="M3 13h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V7H3v2z"/></svg>');
}
.service:nth-of-type(3)::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ff751f" viewBox="0 0 24 24"><path d="M12 2l8 8h-6v8h-4v-8H4l8-8z"/></svg>');
}
@media(min-width:768px){
  .services-list {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem;
  }
}

.section.services h2 {
  margin-bottom: 2rem;
  text-align: center;
}

/* Footer */
.site-footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}
.site-footer .footer-logo {
  display: block;
  margin: 0 auto 1rem;
  height: 40px;
}
.site-footer p {
  font-size: 0.9rem;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--darkest);
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}
.contact-form button {
  align-self: flex-start;
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}
}

/* FAQ Section */
.faq {
  background-color: #f9f9f9;
}
.faq-list {
  display: grid;
  gap: 1.5rem;
}
.faq-item {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.faq-item h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.faq-item p {
  margin: 0;
  line-height: 1.6;
}

/* Mobile & tablet responsiveness */
@media (max-width: 768px) {
  html {
    font-size: 15px; /* reduce base font size for consistent scaling */
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    width: 280px;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: none;
    gap: 1.5rem;
  }
  .nav-links.open {
    transform: translateX(0);
    display: block;
  }
  .nav-links a {
    color: #222;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 1.1rem;
  }
  .nav-links a:hover,
  .nav-links a:focus {
    background-color: #f0f0f0;
  }
  .nav-links a.active {
    color: #ff751f;
    text-decoration: underline;
  }
  .nav-links a::after {
    display: none;
  }
  .hero {
    padding: 3rem 1rem 4rem;
  }
  .hero h1 {
    font-size: 2.5rem !important;
    margin-bottom: 0.5rem;
  }
  .hero h2 {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem;
  }
  .hero p {
    font-size: 1rem;
    margin-top: 1rem;
  }
  .btn {
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
  }
  .section {
    padding: 3rem 1rem;
  }
  .section h2 {
    font-size: 2rem;
  }
  .section h3 {
    font-size: 1.3rem;
  }
  .services-list {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 1rem;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
  }
  .contact-form button {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 14px; /* further reduction for very small screens */
  }
  .navbar .logo img {
    height: 80px;
  }
  .nav-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px; /* smallest for phones */
  }
  .hero h1 {
    font-size: 2rem !important;
  }
  .hero h2 {
    font-size: 1.3rem !important;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .section h2 {
    font-size: 1.8rem;
  }
  .section h3 {
    font-size: 1.2rem;
  }
  .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }
  .navbar {
    padding: 0.8rem 1rem;
  }
  .navbar .logo img {
    height: 70px;
  }
}
