/* ============================================
   R&R Consulting Website - Main Stylesheet
   ============================================ */

/* Root Variables */
:root {
  --primary-blue: #1e3a8a;
  --secondary-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-orange: #f97316;
  --accent-orange-dark: #c2410f; /* Dark orange for hover backgrounds */
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
}

h3 {
  font-size: 1.75rem;
  color: var(--primary-blue);
}

h4 {
  font-size: 1.25rem;
  color: var(--text-dark);
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-orange);
}

/* Navigation Bar */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--accent-green);
}

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

.logo-section {
  display: flex;
  flex-direction: column; /* Stack logo and tagline vertically */
  align-items: center;
  gap: 0.25rem;
}

.logo {
  max-width: 120px; /* slightly larger to improve visibility */
  height: auto;
  border-radius: 8px;
  transition: var(--transition);
  padding: 4px; /* small padding to create breathing space */
  background: rgba(255,255,255,0.95); /* subtle white background to improve contrast */
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.tagline-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tagline {
  font-size: 1.35rem; /* larger tagline */
  font-weight: 700; /* elegant weight */
  color: var(--secondary-blue); /* brighter blue */
  opacity: 0.98;
  letter-spacing: 0.6px;
  font-style: italic; /* more elegant */
  text-transform: none;
  text-shadow: 0 2px 8px rgba(14,165,233,0.08); /* subtle glow */
  transition: transform 0.22s ease, text-shadow 0.22s ease;
}

.tagline:hover,
.tagline:focus {
  transform: translateY(-2px) scale(1.02);
  text-shadow: 0 4px 14px rgba(14,165,233,0.18);
}

/* Responsive tweak for smaller screens */
@media (max-width: 768px) {
  .tagline { font-size: 1.05rem; letter-spacing: 0.2px; }
}

.tagline {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-blue);
  opacity: 0.95;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover {
  color: var(--secondary-blue);
  border-bottom-color: var(--accent-orange);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* Mobile Responsive Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu a {
    display: block;
    padding: 1rem;
  }

  /* Hide textual brand name in layout (no text next to logo per request) */
  .brand-name {
    display: none;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background-image: url('../assets/images/127825099.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    background-attachment: fixed;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
  margin-top: 18vh; /* shift content down more from center */
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo {
  margin-bottom: 2rem;
}

.hero-logo-img {
  max-width: 140px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  animation: pulse 2s infinite;
  background: var(--white);
  padding: 8px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}


.hero-subtitle {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Make hero description inherit subtitle size when hero-subtitle class is present */
.hero-description.hero-subtitle {
  font-size: 2rem;
  font-weight: 300;
}

/* Improve contrast in hero section */
.hero-subtitle,
.hero-description {
  color: var(--white);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.35);
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--accent-orange) 0%, #fb923c 100%);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Secondary CTA buttons */
.cta-secondary {
  display: inline-block;
  padding: 10px 18px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 30px;
  margin-left: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cta-secondary:hover {
  border-color: var(--accent-orange);
  background: rgba(255,255,255,0.06);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.4);
}

@media (max-width: 768px) {
  .hero {
    height: 80vh;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 0.95rem;
  }
  .hero-content { margin-top: 10vh; }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 1.5rem;
  }
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--accent-green);
  font-weight: 600;
}

/* About Section */
.about {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
}

/* Ensure About section header and subtitle have white text for readability */
.about .section-header h2 {
  color: var(--white) !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.about .section-subtitle {
  color: rgba(255,255,255,0.95) !important;
}

/* Ensure the 'About' section header appears just below the sticky navbar on anchor navigation */
#about {
  scroll-margin-top: 110px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch; /* Ensure image height matches content */
  margin-bottom: 4rem;
}

.about-text {
  display: grid;
  gap: 1.5rem;
}

.about-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--accent-green);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.about-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.about-image img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  object-fit: cover; /* Fill the container while keeping aspect ratio */
}

/* Make about-cards span full height to align with the image */
.about-text .about-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.about-text .about-card p {
  flex: 1 1 auto; /* Allow text to fill space consistently */
}

.founders-section {
  text-align: center;
  margin-top: 3rem;
}

.founders-section h3 {
  margin-bottom: 2rem;
  color: var(--white);
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.founder-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
}

.founder-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.founder-image {
  margin-bottom: 1rem;
}

.founder-role {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.founder-bio {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.founder-bullets {
  display: none; /* We removed the detailed bullets for founder bios */
}

.founder-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-green);
  transition: var(--transition);
}

.founder-card:hover .founder-image img {
  border-color: var(--accent-orange);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

/* Services Section */
.services {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-image {
  height: 250px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.service-highlight {
  color: var(--accent-orange);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  flex-grow: 1;
}

.service-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
}

.service-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Approach list styling for the About section */
.approach-list {
  list-style: disc outside;
  margin: 0.5rem 0 1.25rem 0; /* smaller gap from the paragraph and the following content */
  padding-left: 1.25rem;
  color: var(--text-dark);
  font-size: 1rem; /* match the default about card font */
  font-family: inherit;
  line-height: 1.6;
}

.approach-list li {
  margin: 0.35rem 0; /* reduced gap between list items */
  line-height: 1.6;
}

/* Ensure paragraph text in about cards matches list styling */
.about-card p,
.about-card li {
  color: var(--text-dark);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.6;
}

/* Execution Model Section */
.execution {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
}

/* Insights Section (used to be Execution) */
.insights {
  padding: 6rem 0;
  min-height: 45vh;
  background-image: url('../assets/images/coming-soon-unsplash.jpg');
  background-size: cover;
  background-position: center center;
  position: relative;
  color: var(--white);
}

.insights-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
}

.insights-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 28vh;
}

.insights-message {
  text-align: center;
  max-width: 900px;
  padding: 3rem 1rem;
  color: var(--white);
}

.insights-message h3 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.insights-message p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  margin: 0.35rem 0; /* tighten spacing between the two lines */
}

/* Adjust layout specific to Insights: move heading down, reduce subtitle size, color message green */
.insights .section-header { margin-top: 150px; }
@media (max-width: 768px) {
  .insights .section-header { margin-top: 60px; }
}
.insights .section-subtitle { font-size: 1.0rem; }
.insights .insights-message p { color: var(--accent-green); font-size: 1.0rem; }

/* Move the 'Coming soon' message upward to sit closer to the header */
.insights-message { margin-top: -180px; }

@media (max-width: 768px) {
  .insights .section-header { margin-top: 60px; }
  .insights-message { margin-top: -140px; }
}

.execution-model {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap; /* Keep all steps in one horizontal line */
  gap: 0.5rem; /* Reduced gap between steps for compact layout */
  margin-bottom: 3rem;
  align-items: stretch;
  justify-content: center;
  overflow-x: auto; /* Allow horizontal scroll on small screens */
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.execution-step {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--accent-green);
  flex: 0 0 22%; /* Each step takes ~22% of the row, leaving space for arrows */
  min-width: 220px; /* Ensure readable content */
  background: var(--light-bg); /* Light background color for each step box */
  border: 1px solid rgba(17,24,39,0.04);
  padding: 1.5rem 1.2rem;
}

.execution-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent-orange-dark);
  background: linear-gradient(180deg, var(--accent-orange-dark), var(--accent-orange));
  color: var(--white);
  cursor: pointer;
}

/* Ensure headings and text in the step contrast on dark background */
.execution-step:hover h3,
.execution-step:hover p,
.execution-step:hover .step-number {
  color: var(--white);
}

/* Accessibility: focus state for keyboard navigation */
.execution-step:focus {
  outline: 3px solid rgba(59,130,246,0.15);
  outline-offset: 4px;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-blue);
  margin-bottom: 1rem;
}

.execution-arrow {
  display: flex;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-orange);
  font-weight: bold;
  align-items: center;
}

.execution-image {
  text-align: center;
}

.execution-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  /* Keep horizontal layout but allow scrolling; show arrows smaller */
  .execution-step {
    flex: 0 0 260px;
  }
  .execution-arrow {
    font-size: 1.25rem;
  }
}

/* Our Belief Section */
.belief {
  position: relative;
  /* Match hero height to create visual balance */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Padding is reset to vertically center content within full height */
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #0ea5e9 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.belief-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.belief-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.25rem; /* Add inner padding for improved spacing when full height */
}

.belief-content h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.belief-message {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
.about .section-header h2 {
  color: var(--white);
}
.about .section-subtitle {
  color: rgba(255,255,255,0.95);
}

/* Ensure the 'About' section header appears just below the sticky navbar on anchor navigation */
#about {
  scroll-margin-top: 110px;
}
  line-height: 1.8;
}

.belief-message .highlight {
  color: var(--accent-orange);
  font-weight: 800;
}

.belief-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

/* Improve contrast and readability in belief section */
.belief-message,
.belief-subtitle {
  color: var(--white);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  background: var(--white);
  color: var(--text-dark);
  padding: 2rem;
  max-width: 520px;
  width: 90%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }
}

.modal-close {
  float: right;
  font-size: 1.25rem;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr; /* Stack subsections vertically for clarity */
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-info {
  display: grid;
  gap: 2rem;
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-left: 4px solid var(--accent-green);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--accent-orange);
}

.contact-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

/* Contact icons */
.contact-card .contact-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.contact-email-card p { margin: 0.35rem 0; }
.contact-email-card .contact-link { color: var(--text-dark); font-weight: 600; }

/* Add spacing specifically between email and LinkedIn lines */
.contact-email-card p + p { margin-top: 0.75rem; }

.contact-link {
  font-weight: 600;
  color: var(--secondary-blue);
  word-break: break-word;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 480px) {
  .contact-link {
    font-size: 0.9rem;
  }
}

.contact-card ul {
  list-style: none;
}

.contact-card ul li {
  margin-bottom: 0.5rem;
}

.contact-card ul li a {
  display: inline-block;
  padding: 0.5rem 0;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--accent-green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--primary-blue);
}

.contact-form-container {
  background: #f1f5f9; /* lighter background to contrast with form inputs */
  padding: 1.25rem; /* reduce padding to decrease vertical height */
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--accent-green); /* Left-hand green border */
  padding-left: 1.25rem; /* Extra left padding to offset border */
}

.contact-form-container h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

@media (max-width: 480px) {
  .contact-form {
    gap: 1rem;
  }
}

.form-group {
  display: grid;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  padding: 0.55rem; /* reduce input padding to reduce form height */
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.g-recaptcha {
  margin: 1rem 0;
}

.submit-btn {
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--accent-orange) 0%, #fb923c 100%);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.contact-image {
  display: none;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .contact-image {
    display: block;
  }

  .contact-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
  }
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 3rem 0 1rem;
  border-top: 3px solid var(--accent-green);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: left;
  justify-items: start;
}

.footer-section:last-child {
  justify-self: end;
  text-align: left;
}

.footer-section h4 {
  color: var(--accent-green);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent-orange);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.footer-logo {
  max-width: 100px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.footer-content:after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  grid-column: 1 / -1;
}

.footer-content:last-child {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-section:last-child {
    justify-self: start;
    text-align: left;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer {
    display: none;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo {
    max-width: 100px; /* slightly larger on high-DPI displays */
  }

/* ========== ENHANCED MOBILE OPTIMIZATION FOR SMALL SCREENS ========== */

/* Extra small devices (max 480px) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 15px;
  }

  .logo {
    max-width: 90px;
  }

  .hero {
    height: 70vh;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .service-image {
    height: 180px;
  }

  .service-list li {
    font-size: 0.9rem;
  }

  .insights-message h3 {
    font-size: 1.5rem;
  }

  .insights-message p {
    font-size: 0.95rem;
  }

  .contact-form-container {
    padding: 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.5rem;
    font-size: 16px;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .submit-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }
}

/* ========== SCROLL-TO-TOP BUTTON ========== */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #fb923c 100%);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.4);
  transform: translateY(10px);
}

.scroll-to-top:active {
  transform: translateY(0);
}

.scroll-to-top.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .scroll-to-top {
    bottom: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* Keyboard focus accessibility */
.scroll-to-top:focus {
  outline: 3px solid rgba(16, 185, 129, 0.3);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
  .scroll-to-top {
    border: 2px solid var(--white);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .scroll-to-top {
    transition: opacity 0.15s ease;
  }

  .scroll-to-top.show {
    animation: none;
  }

  .scroll-to-top:hover {
    transform: none;
  }
}
