/* Friendly, modern fonts for NeatNest LLC */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;700&family=Nunito:wght@400;600;700&family=Quicksand:wght@500;700&display=swap');

:root {
  --blue: #2aa4f4;
  --orange: #ff7a18;
  --ink: #1f2937;
  --bg: #ff7a18;
  --card: #ffffff;

  /* Font variables */
  --font-display: "Fredoka", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

* { 
  box-sizing: border-box; 
}

body {
  margin: 0; 
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--ink); 
  background: var(--orange);
  line-height: 1.6;
}

h1 {
  font-family: var(--font-display);
}

h2 {
  font-family: var(--font-accent);
}

p {
  font-family: var(--font-body);
  font-size: 1.2rem;
}

/* FIXED HEADER LAYOUT - Using Flexbox for proper vertical centering */
.site-header {
    position: relative;
    /* Other styles */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    background: var(--card);
    border-bottom: 2px solid #e5e7eb;
    position: static;
    top: 0;
    z-index: 10;
    text-align: center;
}

.social-links {
  position: absolute;
  top: 15px;   /* space from top */
  left: 20px;  /* space from left */
  display: flex;
  gap: 12px;   /* spacing between icons */
}

.social-links a img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
}

.social-links a img:hover {
  transform: scale(1.2);
}

.site-header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
}

.site-header p {
  margin: 0;
  color: #495869;
  font-weight: 600;
  max-width: 600px;
  font-family: var(--font-accent);
  letter-spacing: 0.2px;
}

.logo { 
  height: 120px;   /* increased from 80px */
  width: auto; 
}

.call-btn {
  background: var(--blue); 
  color: #fff; 
  padding: 18px 32px;   /* increased from 12px 20px */
  border-radius: 999px;
  text-decoration: none; 
  font-weight: 700;
  font-size: 1.4rem;    /* increased from 1.1rem */
  transition: all 0.3s ease;
  font-family: var(--font-accent);
  letter-spacing: 0.3px;
}

.call-btn:hover {
  background: var(--orange);
  transform: scale(1.05);
}

.section {
  max-width: 900px; 
  margin: 28px auto; 
  padding: 20px; 
  background: var(--card);
  border-radius: 16px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.section h2 { 
  margin-top: 0; 
  color: var(--blue); 
  font-size: 2rem; 
  font-weight: 700; 
  font-family: var(--font-display);
}

.services { 
  list-style: none; 
  padding: 0; 
  margin: 0;
  text-align: center;
}

.services li {
  padding: 15px 20px; 
  margin: 10px 0;
  border: 2px solid var(--blue);
  border-radius: 8px;
  background: var(--card);
  font-weight: 400; /* not bold */
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(1);
  font-family: var(--font-display); /* updated to match header phrase */
}

.services li:hover {
  border-width: 4px;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(42, 164, 244, 0.2);
  background: #f8fafc;
}

/* Service icon above text */
.service-logo {
  width: 60px;
  display: block;
  margin: 0 auto 10px; /* centers icon above the text */
}

/* Modal Popup Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: var(--card);
  margin: 10% auto;
  padding: 30px;
  border: 3px solid var(--blue);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideIn 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);

  text-align: center; /* NEW: centers all child elements */
}

.close {
  color: var(--ink);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  margin: -10px -10px 10px 10px;
}

.close:hover {
  color: var(--orange);
}

.modal h3 {
  color: var(--blue);
  margin-top: 0;
  font-size: 1.8rem;
  font-family: var(--font-accent);
}

.modal p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  font-family: var(--font-body);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.slider { 
  position: relative; 
  min-height: 70px;
  text-align: center;
}

.slide { 
  display: none; 
  font-size: 1.1rem; 
  font-family: var(--font-body);
}

.slide.active { 
  display: block; 
}

.slider-controls { 
  margin-top: 10px; 
  display: flex; 
  gap: 10px;
  justify-content: center;
}

button { 
  cursor: pointer; 
  font-size: 1rem; 
  padding: 8px 12px;
  border: 2px solid var(--blue);
  background: var(--card);
  border-radius: 4px;
  transition: all 0.2s ease;
  font-family: var(--font-accent);
  font-weight: 700;
}

button:hover {
  background: var(--blue);
  color: white;
}

form {
  text-align: center;
  border: 2px solid var(--blue);
  border-radius: 12px;
  padding: 20px;
  margin: 15px auto;
  max-width: 500px;
  background: var(--card);
  font-family: var(--font-body);
}
.contact-info {
  margin-top: 20px;
  font-size: 1.1rem;
  font-family: var(--font-accent);
  text-align: center;   /* keeps it aligned like your form */
}

.contact-info a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  color: var(--orange);
  text-decoration: underline;
}

form label {
  display: block;
  margin: 15px 0 5px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-accent);
}

form input, form textarea {
  display: block;
  margin: 5px auto 15px;
  padding: 12px;
  border: 2px solid var(--blue);
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  background: var(--card);
  transition: border-color 0.2s ease;
  font-size: 1rem;
  font-family: var(--font-body);
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(42, 164, 244, 0.1);
}

form button {
  padding: 12px 24px;
  background: var(--blue);
  color: white;
  border: 2px solid var(--blue);
  border-radius: 8px;
  font-weight: 700;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  font-family: var(--font-accent);
}

form button:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.02);
}

.site-footer {
  text-align: center;
  padding: 20px;
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
  margin-top: 20px;
  font-family: var(--font-body);
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 2rem;
  }
  
  .site-header p {
    font-size: 1rem;
  }
  
  .logo {
    height: 60px;  /* smaller for mobile */
  }
  
  .section {
    margin: 15px;
    padding: 15px;
  }
  
  .modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 20px;
  }
}
