/* --- 1. CORE RESET & VARIABLES --- */
:root {
  --primary-color: rgb(184, 91, 23); /* Swapped from blue to deep ochre/burnt orange */
  --text-dark: #1f2937;
  --text-muted: #4b5563;
  --bg-white: rgb(252, 250, 240);  
  --bg-light: rgb(245, 239, 214);  
  --bg-header: rgb(238, 226, 181); 
  --nav-height: 70px;
}

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
      color: var(--text-dark);
      line-height: 1.6;
      padding-top: var(--nav-height); /* Prevents content jump under fixed header */
    }

    /* --- 2. HEADER & FIXED NAVIGATION --- */
    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: var(--nav-height);
	  background-color: var(--bg-header); /* Updated to the deeper cream */
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Slightly softer shadow to blend with warm tones */
      z-index: 9999; 
    }

    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1200px;
      height: 100%;
      margin: 0 auto;
      padding: 0 20px;
      position: relative;
    }

    <!-- original logo section replaced to allow responsive logo image
	.logo {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary-color);
      text-decoration: none;
    } -->
	
	/* --- UPDATED LOGO CSS FOR RESPONSIVE IMAGES --- */
.logo {
  display: flex;
  align-items: center;
  height: 100%; /* Keeps the link box centered vertically in the header */
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.85;
}

/* This block directly controls your image scaling constraints */
.logo img {
  max-height: 68px;    /* Prevents the image from bursting out of your 70px header */
  width: auto;         /* Keeps the aspect ratio perfectly proportional */
  max-width: 395px;    /* Ensures a wide signature style fits cleanly without cramping links */
  display: block;
  object-fit: contain; /* Prevents stretching or squishing */
}

    /* Desktop Navigation List */
    .nav-links {
      display: flex;
      list-style: none;
      gap: 30px;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--text-dark);
      font-weight: 500;
      padding: 5px 0;
      position: relative;
    }

    /* Intersection Observer Active Indicator styles */
    .nav-links a.active {
      color: var(--primary-color);
      font-weight: 700;
    }
	
	/* --- LEVEL 2: INTERMEDIATE TABLETS & LAPTOPS (New addition) --- */
		@media (max-width: 1024px) {
		.logo img {
		max-height: 52px;   /* Medium size gives your wide text breathing room on iPads */
		max-width: 280px;   /* Gently narrows the bounds so it doesn't push the menu links */
						}
						
	/* --- LEVEL 3: FAIL-SAFE MOBILE OVERRIDES --- */
		@media (max-width: 768px) {
		/* ... keep your other mobile overrides intact ... */

		.logo img {
			max-height: 42px;   /* Safely scaled to fit alongside the menu button toggle */
			max-width: 180px;   
  }
}					
						
}

    /* --- 3. RELIABLE HAMBURGER SYSTEM --- */
.menu-toggle {
  display: none; /* Hidden on desktop viewports */
  background: var(--primary-color); /* Swapped from charcoal to your new rich ochre color */
  color: #ffffff; /* Crisp white text for great accessibility and contrast */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 8px 12px;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 10000;
  transition: background-color 0.2s ease;
}

  /* --- 4. LAYOUT SECTIONS (FIXED ALTERNATION & SIZES) --- */
section {
  padding: 60px 20px; 
  min-height: auto;   
  display: flex;
  align-items: center;
  scroll-margin-top: var(--nav-height); 
  width: 100%;
}

.grid-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.content-block h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.content-block p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* FIX: Locks the images to an exact proportional sizing box so they can never bloat */
.image-block {
  width: 100%;
  max-width: 500px;     /* Prevents the contact and details photos from getting too large */
  margin: 0 auto;       /* Centers the image box inside its grid column slot */
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
}

.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Section Backdrops */
#home { background-color: var(--bg-light); }
#about { background-color: var(--bg-white); }
#sessions { background-color: var(--bg-light); }
#qualifications { background-color: var(--bg-light); }
#experience { background-color: var(--bg-white); }
#contact { background-color: var(--bg-light); }
#privacy { background-color: var(--bg-light); } 

/* --- FIXED DESKTOP ALTERNATION & SHARP CENTERING --- */
@media (min-width: 769px) {
  #about .grid-container,
  #contact .grid-container,
  #experience .grid-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center; /* Pulls both boxes into the exact center of the page */
    gap: 60px;               /* Keeps a clean, consistent gap between text and photo */
  }
  
  /* Restores centered matching grid structure for standard forward sections */
  #home .grid-container,
  #sessions .grid-container,
  #qualifications .grid-container,
  #privacy .grid-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 60px;
  }
  
  /* Ensures all content blocks take up identical half-page widths */
  .content-block {
    width: 50%;
    max-width: 550px;
  }

  /* Ensures all image blocks take up identical balanced dimensions */
  .image-block {
    width: 50%;
    max-width: 500px;
    margin: 0; /* Cleans out column slot alignment drift */
  }
}



    /* --- 5. BREAKPOINT: FAIL-SAFE MOBILE OVERRIDES --- */
    @media (max-width: 768px) 
	{
      .menu-toggle {
        display: block; /* Instantly reveals the text button */
      }

      /* Convert links list into a bulletproof dropdown block */
      .nav-links {
        display: none; /* Hard hidden by default */
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eeeeee;
      }
	  
	    /* Paste this inside your existing @media (max-width: 768px) block */
		.logo img {
		max-height: 42px;   /* Safely scales down on mobile to prevent overlapping the menu button */
		max-width: 180px;   /* Keeps the wide signature text neat on smaller phone screens */
		}

      /* This single utility class strictly handles opening/closing */
      .nav-links.open {
        display: flex !important;
      }

      .nav-links li {
        width: 100%;
      }

      .nav-links a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #eeeeee;
        width: 100%;
      }

      .grid-container {
        grid-template-columns: 1fr; /* Stack layout vertically */
        gap: 25px;
      }
    }
	
	/* Update this block to include select menus */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    background-color: #fff; /* Ensures dropdown looks uniform */
}

/* Changes the selection circle highlight to the ochre theme color */
.contact-form input[type="radio"] {
    accent-color: #f59e0b; 
}
	
	
	/* --- FIND THIS IN YOUR STYLE.CSS FILE AND UPDATE IT --- */
.btn-contact-page {
  display: inline-block !important; /* FORCES the button to reappear and render cleanly */
  background-color: var(--primary-color); 
  color: #ffffff; 
  text-decoration: none;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(184, 91, 23, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  margin-top: 15px; /* Gives nice spacing below the paragraph text */
}

/* Ensure it behaves correctly when hovered */
/* --- FIND THIS IN YOUR STYLE.CSS FILE AND UPDATE IT --- */
.btn-contact-page,
.btn-submit {
  display: inline-block !important; /* FORCES both the home page link and the email submit button to render */
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  padding: 14px 30px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(184, 91, 23, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  margin-top: 15px;
  border: none;
  cursor: pointer;
}

/* Ensure hover behaviors work correctly for both buttons */
.btn-contact-page:hover,
.btn-submit:hover {
  background-color: rgb(156, 75, 17);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 91, 23, 0.3);
}

/* 1. Force the body to take up the absolute minimum height of the monitor screen */
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

/* 2. Tell the main content area to swallow all leftover empty vertical space */
.thank-you-content {
    flex: 1;
    
    /* Optional: Centering the text vertically inside the leftover space */
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
}


	
	/* --- 6. FOOTER STYLES (UPDATED CONTRAST) --- */
footer {
  background-color: rgb(31, 41, 55); /* Deep charcoal for a bold, crisp contrast */
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding: 30px 20px;
  color: rgb(209, 213, 219); /* Light grey text for excellent readability over charcoal */
  font-size: 0.9rem;
}

.footer-container {
  max-width: 800px; /* Narrowed down for perfectly centered stacked layout text */
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Forces items into clean, stacked rows */
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px; /* Tightly spaces the copyright line and credit line */
  width: 100%;
}

.footer-container p {
  margin: 0;
}

.footer-container a {
  color: rgb(245, 158, 11); /* Swapped to a bright warm amber to stand out on dark grey */
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.footer-container a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* ==========================================
   STICKY FOOTER FIX (Place at the very bottom)
   ========================================== */

/* 1. Force the main browser container to expand to full screen */
html, body {
    height: 100% !important;
    margin: 0;
    padding: 0;
}

body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important; 
}

/* 2. Target the element right before your footer and force it to grow */
body > main, 
body > .thank-you-content {
    flex: 1 0 auto !important;
}

/* 3. Ensure the footer stays explicitly at the tail end */
body > footer {
    flex-shrink: 0 !important;
}
