/* Core Variables */
:root {
  --primary-blue: #214380;
  --secondary-blue: #4A70B0;
  --dark-text: #333333;
  --body-text: #666666;
  --white: #FFFFFF;
  --light-bg: #F8F8F8;
  --font-primary: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --header-height-desktop: 100px;
  --header-height-mobile: 70px;
}

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

body {
  font-family: var(--font-primary);
  color: var(--body-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-text);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.bg-light { background-color: var(--light-bg); }
.bg-primary { background-color: var(--primary-blue); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
  background-color: var(--secondary-blue);
  border-color: var(--secondary-blue);
  box-shadow: 0 4px 12px rgba(33, 67, 128, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--light-bg);
  color: var(--dark-text);
}

/* Link Underline Animation */
.link-anim {
  position: relative;
  color: var(--primary-blue);
  font-weight: 600;
}
.link-anim::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}
.link-anim:hover::after {
  width: 100%;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: height 0.3s ease;
  height: var(--header-height-desktop);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 80px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
}

.nav-list a {
  font-weight: 600;
  color: var(--dark-text);
  position: relative;
}

.nav-list a:hover {
  color: var(--secondary-blue);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-phone {
  font-weight: 700;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-text);
  position: relative;
  transition: background 0.2s;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--dark-text);
  transition: top 0.2s, transform 0.2s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height-mobile));
  background: var(--white);
  padding: 2rem;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-mobile-overlay.active {
  display: flex;
}

/* Hero Sections */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 8rem 0;
  display: flex;
  align-items: center;
  min-height: 80vh;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(33, 67, 128, 0.7), rgba(0,0,0,0.5));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btns .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}

.hero-btns .btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-blue);
}

/* Standard Section */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro/About Section Grid */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Services Overview Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-card-img-wrapper {
  overflow: hidden;
}

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

.service-card-content p {
  flex-grow: 1;
}

.service-card-content .btn {
  align-self: flex-start;
  margin-top: 1.5rem;
}

/* Detailed Services List (services.html) */
.detailed-service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.detailed-service-block:nth-child(even) {
  direction: rtl;
}

.detailed-service-block:nth-child(even) > * {
  direction: ltr;
}

/* Why Choose Us Grid */
.values-grid, .why-us-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.value-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.value-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  fill: var(--primary-blue);
  transition: fill 0.3s ease, transform 0.3s ease;
}

.value-item:hover .value-icon {
  fill: var(--secondary-blue);
  transform: scale(1.05);
}

/* Process Timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-step {
  position: relative;
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--primary-blue);
  z-index: 1;
}

/* Team Section */
.team-photo-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Contact Specific Layouts */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 3px rgba(74, 112, 176, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-info-block {
  margin-bottom: 2rem;
}

.map-embed {
  border-radius: 8px;
  overflow: hidden;
  height: 300px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTA Section */
.cta-section {
  background-image: linear-gradient(rgba(33, 67, 128, 0.9), rgba(33, 67, 128, 0.9)), url('../images/hero-desktop.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background-color: #1A335B;
  color: var(--white);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  max-width: 200px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ccc;
}

.footer-links a:hover {
  color: var(--white);
}

.newsletter-form {
  display: flex;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  border-radius: 0 4px 4px 0;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  background: rgba(255,255,255,0.1);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}

.social-icons svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
  transition: fill 0.3s, transform 0.3s;
}

.social-icons a:hover {
  background: var(--white);
}

.social-icons a:hover svg {
  fill: var(--primary-blue);
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Service Detail Layout */
.service-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-detail-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.service-detail-gallery img:hover {
  transform: scale(1.03);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  h1 { font-size: 2.8rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  
  .site-header { height: var(--header-height-mobile); }
  .nav-desktop { display: none; }
  .mobile-nav-toggle { display: block; }
  
  .hero { 
    padding: 6rem 0; 
    text-align: left;
    background-image: url('../images/hero-mobile.png') !important; 
  }
  
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .values-grid, .why-us-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  
  .detailed-service-block { grid-template-columns: 1fr; gap: 2rem; }
  .detailed-service-block:nth-child(even) { direction: ltr; }
  
  .process-timeline { grid-template-columns: 1fr; gap: 2rem; padding-left: 20px; }
  .process-timeline::before {
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    height: 100%;
  }
  .process-step { display: flex; text-align: left; gap: 1.5rem; align-items: flex-start; }
  .step-number { margin: 0; flex-shrink: 0; width: 50px; height: 50px; font-size: 1.2rem; }
  
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; text-align: center; }
  
  .cta-btns { flex-direction: column; width: 100%; padding: 0 1.5rem; }
  .cta-btns .btn { width: 100%; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.btn-submit {
  background-color: var(--primary-blue);
  color: var(--white);
  border: 2px solid var(--primary-blue);
}
.btn-submit:hover {
  background-color: var(--secondary-blue);
  border-color: var(--secondary-blue);
  box-shadow: 0 4px 12px rgba(33, 67, 128, 0.3);
  transform: translateY(-2px);
}
