/* Google Fonts - Inter (Modern, Clean) & Outfit (Friendly Headings) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@500;600;700&display=swap');

:root {
  /* Brand Colors - Refined for Trust, Reliability & Comfort */
  /* Deep Navy (Trust, Stability) */
  --primary: #1B2A41;
  /* Soft Steel Blue (Reliability, Modern) */
  --primary-light: #324A5F;
  /* Warm Teal/Sage (Comfort, Outdoors, Growth) - REPLACED Sky Blue */
  --accent: #2C7A7B;
  --accent-hover: #236363;
  --accent-soft: #E6FFFA;

  /* Accent Warmth (Friendly highlights - e.g. for secondary buttons or badges) */
  --warm-highlight: #ED8936;

  /* Neutral Colors - Warm & Clean */
  --bg-body: #FFFFFF;
  --bg-light: #F7FAFC;
  /* Very cool grey, clean */
  --bg-off-white: #EDF2F7;
  /* Slightly deeper for borders/subtle bg */

  /* Text Colors */
  --text-main: #2D3748;
  /* Softer than black for reading comfort */
  --text-muted: #718096;
  /* Accessible grey */
  --text-light: #A0AEC0;
  --text-on-dark: #FFFFFF;

  /* UI Variables */
  --radius-sm: 0.5rem;
  /* Softened corners */
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  /* For cards */

  /* Premium Shadows (Diffused, soft) */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

  /* Layout */
  --container-width: 1200px;
  --header-height: 100px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.7;
  /* Increased for reading comfort */
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  /* Friendly, modern header font */
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  /* Tighten slightly for modern feel */
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 0;
  /* More breathing room */
}

.section-bg {
  background-color: var(--bg-light);
}

.grid {
  display: grid;
  gap: 2.5rem;
  /* More space between items */
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.flex {
  display: flex;
  gap: 1rem;
}

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

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

.items-start {
  align-items: flex-start;
}

.w-full {
  width: 100%;
}

.ml-auto {
  margin-left: auto;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

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

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

.text-muted {
  color: var(--text-muted);
}

.text-sm {
  font-size: 0.875rem;
}

/* Buttons - "Tactile" and Friendly */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 2rem;
  /* Fully rounded buttons = Friendlier */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.btn-primary,
.btn-primary:visited {
  background-color: var(--accent);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary,
.btn-secondary:visited {
  background-color: white;
  color: var(--primary);
  border-color: var(--bg-off-white);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-light);
  border-color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-block {
  width: 100%;
}

/* Header & Nav */
.site-header {
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bg-off-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}

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

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

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

.main-nav a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:not(.btn):hover,
.main-nav a.active {
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}

@media (max-width: 850px) {
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: white;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    text-align: center;
  }

  .main-nav.active {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Cards - Floating & Comfortable */
.card {
  background-color: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bg-off-white);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

/* Feature Icons */
.feature-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  background-color: var(--accent-soft);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* Circle */
  transition: transform 0.3s;
}

.card:hover .feature-icon {
  transform: scale(1.1);
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--bg-off-white);
  /* Thicker, softer border */
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
  background-color: var(--bg-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: white;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Footer - Dark & Grounded */
.site-footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 5rem 0 2rem;
  margin-top: auto;
}

.site-footer h3 {
  color: white;
  margin-bottom: 1rem;
}

.site-footer h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.site-footer a {
  color: var(--text-light);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: white;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Page Specific: Hero */
.hero {
  padding: 4rem 0 3rem;
  /* Reduced padding (was 6rem 0 4rem) */
  text-align: center;
  /* Background removed - using IMG tag now */
}

.hero-visual {
  margin: 1rem auto 1.5rem;
  /* Reduced spacing (was 2rem auto 3rem) */
  position: relative;
  width: 100%;
}

.hero-img {
  display: block;
  max-width: 85%;
  /* Increased size (was 70%) */
  height: auto;
  margin: 0 auto;

  /* Soft radial fade at edges */
  -webkit-mask-image: radial-gradient(ellipse at center, black 65%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, black 65%, transparent 100%);
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto -4rem;
  /* Doubled negative margin to -4rem */
  position: relative;
  z-index: 2;
  /* Ensure title stays on top */
  line-height: 1.1;
  color: var(--primary);
}

.hero p {
  /* Removed hero p styles as text was moved */
  display: none;
}

.hero-visual {
  margin: -7rem auto -4rem;
  /* dialed back to -7rem (approx 2x) */
  position: relative;
  width: 100%;
  z-index: 1;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0;
  position: relative;
  z-index: 2;
  /* Ensure buttons stay on top */
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
    margin-top: 1rem;
  }

  .hero {
    padding: 3rem 0 3rem;
    /* Reduced mobile padding */
  }

  .hero-visual {
    margin: 1.5rem auto 1.5rem;
    /* Symmetric spacing to center image vertically on mobile */
  }

  .hero-img {
    max-width: 100%;
    /* Full width on mobile */
    margin: 0;
    /* Margins handled by wrapper */
  }


  h1 {
    font-size: 2.25rem;
    padding: 0 1rem;
    margin-bottom: 0;
    /* Reset negative margin from desktop to prevent overlap/imbalance */
  }
}

/* Timeline/Price Display (Specific tweaks) */
.price-display {
  background: linear-gradient(to right, var(--bg-light), white);
  border: 1px solid var(--accent-soft);
}

/* Animation Utilities (Global) */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  animation: spin 1s linear infinite;
  display: inline-block;
}

.success-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid #4ade80;
  /* green-400 */
  color: #1f2937;
  /* gray-800 */
  padding: 1.5rem;
  border-radius: 0.5rem;
  z-index: 10000;
  max-width: 28rem;
  /* max-w-md */
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  /* shadow-xl */
}

.success-overlay {
  position: fixed;
  inset: 0;
}

.portfolio-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
  justify-content: center;
  align-items: center;
}

.portfolio-modal.active {
  display: flex;
}

.modal-content-wrapper {
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1000px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  z-index: 10002;
  cursor: pointer;
  transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Gallery Section */
.modal-gallery {
  position: relative;
  background: #000;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.modal-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Nav Buttons */
.modal-nav {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  z-index: 2;
}

.modal-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.modal-prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.modal-nav:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Info Section */
.modal-info {
  padding: 2rem;
  color: var(--text-dark);
}

.modal-info h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

@media (max-width: 768px) {
  .modal-content-wrapper {
    width: 95%;
  }

  .modal-gallery {
    height: 40vh;
  }
}

/* Social Media Icons */
.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: flex-start;
  /* Left align */
}

.social-icon {
  display: inline-block;
  color: var(--text-muted);
  /* Start neutral */
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.social-icon svg {
  width: 2rem;
  /* Reasonable size ~32px */
  height: 2rem;
  fill: currentColor;
}

.social-icon:hover {
  color: var(--primary);
  /* Brand color on hover */
  transform: translateY(-2px);
}