/* =========================================
   RESET & GLOBAL STYLES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #fff;
  color: #111;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 40px 200px; 
  width: 100%;
  
  /* Required for the gradient to position correctly */
  position: relative; 
  background-color: #fff; 
  z-index: 100;           
}

/* 50px Gradient Strip below header */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -50px;         
  width: 100%;
  height: 50px;          
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), transparent);
  pointer-events: none;   
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;             /* Reduced gap for smaller logo */
  
  font-weight: 600;
  font-size: 22px;       /* UPDATED: Set exactly to 22px */
  letter-spacing: -0.5px; 
  color: #000;
  line-height: 1;    
}

.logo img {
  height: 28px;          /* UPDATED: Reduced to match text size */
  width: auto;
  display: block;
}

.nav a {
  margin-left: 30px;
  text-decoration: none;
  color: #111;
  font-size: 18px;
}

/* Active Link Underline */
.nav a.active {
  text-decoration: underline;
  text-underline-offset: 6px;       
  text-decoration-thickness: 1.5px; 
  color: #000;                      
}

/* =========================================
   HOME PAGE STYLES
   ========================================= */
.content {
  padding: 0 80px; 
}

.intro {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 800px;
  text-align: center;
}

.intro h1 {
  font-size: 40px;
  line-height: 1.4;
  max-width: 900px;
}

.image-large {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.image-large img {
  width: 75%;
  max-width: 1000px;
  height: auto;
}

.image-text {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 60px;
}

.image-text img {
  width: 40%;           
  height: auto;
  margin-left: 300px;
}

.image-text p {
  width: 45%;
  font-size: 21px;
  line-height: 1.6;
  text-align: left;
  padding-right: 200px;
}

/* Image Grid (Home) */
.image-grid {
  display: flex;
  justify-content: center; 
  align-items: center;     
  gap: 30px;
  margin-bottom: 60px;     
}

.image-grid img:first-child {
  width: auto;
  max-width: 400px;        
  height: auto;            
}

.image-grid img:last-child {
  width: auto;
  max-width: 300px;        
  height: auto;            
}

/* =========================================
   PROJECTS (EXPERIENCE) PAGE
   ========================================= */
.experience-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 120px;
  padding: 100px 200px;
  align-items: start;
  width: 100%;
}

.experience-title h1 {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.2;
}

.experience-text {
  font-size: 18px; 
  line-height: 1.6;
  color: #333;
}

.experience-text p {
  margin-bottom: 20px;
}

.experience-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 0 200px 150px 200px;
  width: 100%;
}

.experience-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1; 
  object-fit: cover; 
  display: block;
}

/* =========================================
   ABOUT PAGE
   ========================================= */
.about-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 100px 200px;
  width: 100%;
}

.about-title h1 {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.2;
}

.about-text {
  width: 50%; 
  font-size: 18px; 
  line-height: 1.5;
  color: #333;
}

.about-text p {
  margin-bottom: 24px;
}

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 100px 200px;
  width: 100%;
}

.contact-text-side {
  width: 35%;
}

.contact-text-side h1 {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.2;
  max-width: 400px;
}

.contact-form-side {
  width: 55%;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  outline: none;
}

.form-group textarea {
  resize: vertical;
  border-radius: 20px;
}

.form-row {
  display: flex;
  gap: 30px;
}

.col-half {
  flex: 1;
}

.push-down label {
    margin-top: 28px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checkbox-group label {
  margin-bottom: 0;
}

.submit-btn {
  background-color: #E07A5F;
  color: white;
  border: none;
  padding: 12px 36px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-btn:hover {
  background-color: #c7654b;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 40px 200px;
  width: 100%;
  font-size: 15px;
  color: #E07A5F; 
}

/* =========================================
   SERVICES PAGE STYLES
   ========================================= */
.services-container {
  padding: 100px 200px; 
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  gap: 80px;            
  margin-bottom: 150px; 
}

/* Service Images */
.service-img {
  flex: 1;
  max-width: 635px; 
}

.service-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Service Text */
.service-text {
  flex: 1;
  max-width: 500px; 
}

.service-text h2 {
  font-size: 32px;
  margin-bottom: 24px;
  font-weight: 500; 
  line-height: 1.2;
}

.service-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

/* Grey Section (Services) */
.full-width-grey {
  background-color: #F5F5F5; 
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
  margin-top: 100px; 
  margin-bottom: 100px;
}

.services-container.clean {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.service-row.no-margin {
  margin-bottom: 0;
}

/* =========================================
   MOBILE / RESPONSIVE STYLES (FIXED)
   ========================================= */

/* Hamburger Menu Icon (Hidden on Desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px; 
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Tablet adjustment */
@media (max-width: 1400px) {
  .site-header, .about-intro, .experience-intro, .experience-gallery, .site-footer, .contact-section {
    padding-left: 50px;
    padding-right: 50px;
  }
  .content { padding: 0 50px; }
  .intro h1 { max-width: 100%; }
  
  .services-container { padding: 100px 100px; }
  .service-row { gap: 50px; }
}

/* MOBILE PHONES (Portrait) */
@media (max-width: 768px) {
  
  /* --- 1. HEADER FIX --- */
  .site-header {
    display: flex;
    flex-wrap: wrap;             /* Allows the hidden Nav to drop down */
    justify-content: space-between; 
    align-items: center;
    padding: 20px !important;    /* Forces small padding */
  }

  /* Fixes logo size and positioning on mobile */
  .logo {
    max-width: 75%;
    font-size: 20px;
    gap: 10px;
  }
  
  .logo img {
    height: 26px; /* Slightly smaller for mobile */
  }

  /* Pushes hamburger to the far right */
  .hamburger {
    display: flex; 
    margin-left: auto;           
  }

  /* --- NAV ANIMATION --- */
  .nav {
    width: 100%; 
    max-height: 0; 
    overflow: hidden; 
    opacity: 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, margin-top 0.3s;
    margin-top: 0;
    border-top: 1px solid transparent; 
  }

  .nav.active {
    max-height: 500px; 
    opacity: 1; 
    margin-top: 20px; 
    border-top: 1px solid #eee; 
    padding-top: 20px;
  }

  /* --- 2. HOME PAGE FIX --- */
  .content { 
    padding: 20px !important; 
  }

  .intro { 
    height: auto !important; 
    padding: 60px 0 !important; 
    flex-direction: column;
  }
  
  .intro h1 { 
    font-size: 28px !important; 
    text-align: left;
  }
  
  .image-large img { 
    width: 100% !important; 
  }

  /* Force stack: Image top, Text bottom */
  .image-text { 
    display: flex !important;
    flex-direction: column !important; 
    gap: 30px !important; 
    margin-bottom: 40px !important;
  }
  
  .image-text img { 
    width: 100% !important; 
    margin-left: 0 !important; 
  }
  
  .image-text p { 
    width: 100% !important; 
    padding-right: 0 !important; 
  }

  .image-grid { 
    flex-direction: column !important; 
    align-items: center !important; 
  }
  
  .image-grid img:first-child, 
  .image-grid img:last-child { 
    max-width: 100% !important; 
    width: 100% !important; 
  }

  /* --- 3. PROJECTS / EXPERIENCE PAGE FIX --- */
  .experience-intro { 
    display: flex !important;
    flex-direction: column !important; 
    gap: 30px !important; 
    padding: 40px 20px !important;
  }
  
  .experience-gallery { 
    display: grid !important;
    grid-template-columns: 1fr !important; /* 1 Column only */
    gap: 20px !important; 
    padding: 0 20px 80px 20px !important; 
  }

  /* --- 4. ABOUT & CONTACT FIX --- */
  .about-intro, .contact-section { 
    flex-direction: column !important;
    padding: 40px 20px !important;
  }
  
  .about-text, .contact-text-side, .contact-form-side { 
    width: 100% !important; 
  }
  
  .form-row { 
    flex-direction: column !important; 
    gap: 0 !important; 
  }
  
  /* --- 5. SERVICES PAGE FIX --- */
  .services-container {
    padding: 40px 20px !important;
  }

  .service-row {
    flex-direction: column !important;
    margin-bottom: 60px !important;
    gap: 30px !important;
  }
  
  .service-img { order: 1; width: 100% !important; }
  .service-text { order: 2; width: 100% !important; }
  
  /* --- 6. FOOTER FIX --- */
  .site-footer { 
    flex-direction: column !important; 
    gap: 15px; 
    align-items: center; 
    text-align: center; 
    padding: 40px 20px !important;
  }
}