/* --- Global Styles & Resets --- */
:root {
  --primary-color: #0061a7; /* A strong blue - adjust as needed */
  --secondary-color: #2b6aaa; /* A darker blue */
  --accent-color: #d95f0e; /* DarkGoldenRod - a more subdued, darker gold */
  /* Or try a more Burnt Orange: --accent-color: #D95F0E; */
  --light-gray: #f4f4f4;
  --medium-gray: #e0e0e0;
  --dark-gray: #333333;
  --text-color: #333333;
  --light-text-color: #ffffff;
  --body-font: "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Georgia", serif; /* Or choose another distinct heading font */
  --base-font-size: 16px;
  --line-height: 1.6;
  --container-width: 1100px;
  --border-radius: 5px;
  --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--base-font-size);
  line-height: var(--line-height);
  color: var(--text-color);
  background-color: #faf9f6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

h1,
h2,
h3 {
  font-family: var(--heading-font);
  margin-bottom: 0.8em;
  color: var(--secondary-color);
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
} /* ~40px */
h2 {
  font-size: 2rem;
} /* ~32px */
h3 {
  font-size: 1.5rem;
} /* ~24px */

p {
  margin-bottom: 1em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style-position: inside; /* Or outside if you prefer */
}

/* --- Header & Navigation --- */
header {
  background-color: #ffffff;
  padding: 1em 0;
  border-bottom: 1px solid var(--medium-gray);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
}
.logo-image {
  max-height: 50px; /* Adjust as needed */
}
.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--secondary-color);
  font-family: var(--heading-font);
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

header nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  padding: 0.5em 0;
  position: relative;
}
header nav a:hover,
header nav a.active {
  color: var(--secondary-color);
}
header nav a.active::after,
header nav a:hover::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

.mobile-nav-toggle {
  display: none; /* Hidden on desktop */
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8em 1.5em;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--light-text-color); /* Changed for better contrast with yellow */
  border-color: var(--accent-color);
}
.btn-primary:hover {
  background-color: #eaa507; /* Darker yellow */
  color: var(--dark-gray);
  text-decoration: none;
}

.btn-secondary {
  background-color: rgba(
    0,
    51,
    102,
    0.5
  ); /* Semi-transparent dark blue (based on your --secondary-color) */
  color: var(--light-text-color); /* White text */
  border: 2px solid var(--light-text-color); /* White border for better contrast on the semi-transparent fill */
}
.btn-secondary:hover {
  background-color: var(--secondary-color); /* Solid dark blue on hover */
  color: var(--light-text-color);
  border-color: var(
    --accent-color
  ); /* Accent color border on hover for a little pop */
  text-decoration: none;
}

.btn-tertiary {
  background-color: transparent;
  color: var(--secondary-color);
  padding: 0.5em 1em;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--secondary-color);
  border-radius: 0;
}
.btn-tertiary:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  text-decoration: none;
}

/* --- Hero Section --- */
#hero {
  background-image: url("images/grain-texture.jpg");
  background-size: cover;
  background-position: center;
  color: var(--light-text-color);
  padding: 60px 0; /* More padding for hero */
  text-align: center;
}
#hero::before {
  /* This is the overlay */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(
    0,
    0,
    0,
    0.425
  ); /* Semi-transparent black overlay. Adjust 0.5 (50% opacity) from 0.0 (transparent) to 1.0 (solid) as needed. You can also change the color e.g., rgba(0, 51, 102, 0.6) for a dark blue overlay to match your --secondary-color */
  z-index: -1; /* Puts overlay behind the text but on top of the background image */
}
#hero h1 {
  color: var(--light-text-color);
  font-size: 2.8rem; /* Larger for hero */
}
#hero .sub-headline {
  font-size: 1.2rem;
  margin-bottom: 1.5em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--light-text-color);
}
#hero .btn {
  margin: 0.5em;
}
/* To use a background image for hero, uncomment the background-image lines above */
/* and ensure your image is dark enough or use an overlay: */

#hero {
  position: relative;
  z-index: 1;
}

/* --- Sections General Styling --- */
section {
  padding: 40px 0;
}
section:nth-of-type(even) {
  /* Alternating background for sections if desired */
  background-color: var(--light-gray);
}

/* --- Services Overview Section --- */
#services-overview h2 {
  text-align: center;
  margin-bottom: 1.5em;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.service-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center; /* Or left if you prefer */
}
.service-item h3 {
  color: var(--primary-color);
  margin-top: 0.5em; /* if using icons */
}
.service-icon {
  /* Style if you add icons */
  max-height: 50px;
  margin-bottom: 1em;
}

/* --- Why Choose Us Section --- */
#why-choose-us {
  background-color: var(--light-gray); /* Example alternating background */
}
#why-choose-us h2 {
  text-align: center;
  margin-bottom: 1.5em;
}
.why-choose-us-content {
  /* If using an image and text side-by-side:
    display: flex;
    align-items: center;
    gap: 30px;
    */
}
.why-choose-us-content ul {
  list-style-type: "✓ "; /* Checkmark or other custom bullet */
  padding-left: 1.5em;
}
.why-choose-us-content ul li {
  margin-bottom: 0.7em;
}
.profile-image {
  /* If you add a profile image */
  /* max-width: 300px; */
  /* border-radius: 50%; */ /* For a circular image */
  /* margin-bottom: 1em; */
}

/* --- Mini Portfolio Section --- */
#mini-portfolio h2 {
  text-align: center;
  margin-bottom: 1.5em;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.portfolio-item {
  border-radius: var(--border-radius);
  overflow: hidden; /* To contain image within rounded corners */
  box-shadow: var(--box-shadow);
  background-color: #fff;
}
.portfolio-item img {
  width: 100%;
  aspect-ratio: 4 / 3; /* Maintain aspect ratio */
  object-fit: cover; /* Crop image to fit */
  border-bottom: 1px solid var(--medium-gray);
}
.portfolio-item p {
  padding: 15px;
  text-align: center;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 0;
}

/* --- Final CTA Section --- */
#final-cta {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  text-align: center;
}
#final-cta h2,
#final-cta p {
  color: var(--light-text-color);
}
#final-cta .btn-primary {
  /* Make CTA button stand out on dark bg */
  background-color: var(--accent-color);
  color: var(--dark-gray);
  border-color: var(--accent-color);
}
#final-cta .btn-primary:hover {
  background-color: #eaa507;
  color: var(--dark-gray);
}
.contact-info-cta {
  margin-top: 1.5em;
  font-size: 1.1rem;
}

/* --- Footer --- */
footer {
  background-color: var(--dark-gray);
  color: var(--light-gray);
  padding: 2em 0;
  text-align: center;
  font-size: 0.9rem;
}
footer p {
  margin-bottom: 0.5em;
  color: var(--light-gray);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin-top: 1em;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.footer-links a {
  color: var(--light-gray);
}
.footer-links a:hover {
  color: var(--accent-color);
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.3rem;
  }

  header .container {
    flex-wrap: wrap; /* Allow logo and toggle to be on one line, nav on next */
  }

  header nav {
    display: none; /* Hidden by default on mobile */
    width: 100%;
    order: 3; /* Puts nav below logo/toggle line */
    margin-top: 10px;
  }
  header nav.active {
    /* Shown when toggled */
    display: block;
  }
  header nav ul {
    flex-direction: column;
    gap: 0;
  }
  header nav a {
    display: block;
    padding: 0.8em 0;
    text-align: center;
    border-bottom: 1px solid var(--medium-gray);
  }
  header nav a.active::after,
  header nav a:hover::after {
    display: none; /* Remove underline effect for mobile stacked nav */
  }
  header nav li:last-child a {
    border-bottom: none;
  }

  .mobile-nav-toggle {
    display: block; /* Show toggle button on mobile */
    order: 2; /* Places toggle after logo if logo is also taking space */
  }

  .services-grid {
    grid-template-columns: 1fr; /* Stack services on smaller screens */
  }
  .portfolio-grid {
    grid-template-columns: 1fr; /* Stack portfolio items */
  }
  #hero h1 {
    font-size: 2.2rem;
  }
}
/* Add these styles to your existing style.css file */
/* They are for the new privacy policy page content */

/* --- Generic Text Content Section (for Privacy Policy, About Us, etc.) --- */
.text-content-section {
  padding: 30px 0; /* Adjust padding as needed */
  background-color: #ffffff; /* White background for text-heavy pages for readability */
  /* Or keep it var(--body-font-color) if you prefer the eggshell */
  border-radius: var(--border-radius);
  margin: 2em auto; /* Center it if container is narrower */
  max-width: 900px; /* Good width for readability */
}

/* Ensure container within text-content-section doesn't double-pad too much if section has padding */
.text-content-section > .container {
  padding: 0 20px; /* Adjust container padding if section has its own */
}

#privacy-policy-content h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-top: 2em;
  margin-bottom: 1em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--accent-color);
}

#privacy-policy-content h3 {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}
#privacy-policy-content h4 {
  font-size: 1.1rem;
  color: var(--text-color); /* Or var(--secondary-color) */
  font-weight: bold;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

#privacy-policy-content p {
  margin-bottom: 1em;
  line-height: 1.7; /* Slightly more line height for dense text */
}

#privacy-policy-content ul {
  list-style: disc; /* Standard disc for unordered lists */
  margin-left: 20px; /* Indent lists */
  margin-bottom: 1em;
}

#privacy-policy-content ul li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

#privacy-policy-content ul li > p {
  /* Paragraphs inside list items */
  margin-bottom: 0.3em; /* Less margin for paragraphs within list items */
}

#privacy-policy-content strong {
  /* Bolding within paragraphs */
  font-weight: bold;
  color: var(
    --text-color
  ); /* Ensure it's not overridden by link colors if nested */
}
/* --- Generic Page Hero for Internal Pages --- */
#page-hero {
  background-color: var(--secondary-color); /* Or var(--primary-color) */
  /* You could also use a subtle pattern or a generic relevant image here */
  /* background-image: url('images/internal-hero-bg.jpg'); */
  /* background-size: cover; */
  /* background-position: center; */
  color: var(--light-text-color);
  padding: 40px 0;
  text-align: center;
}
#page-hero h1 {
  color: var(--light-text-color);
  font-size: 2.5rem; /* Consistent with homepage hero h1 */
  margin-bottom: 0.3em;
}
#page-hero .sub-headline {
  font-size: 1.1rem;
  color: var(--light-gray); /* Lighter than main text on dark bg */
  margin-bottom: 0;
}

/* --- Services Page Specific Styles --- */
#services-content .intro-paragraph,
#contact-content .intro-paragraph {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.service-category {
  margin-bottom: 3em;
  padding-bottom: 2em;
  border-bottom: 1px solid var(--medium-gray);
}
.service-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-category h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1em;
}
.service-category h3 {
  /* For sub-headings like "Common Handyman Tasks Include:" */
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-top: 1.5em;
  margin-bottom: 0.7em;
}

.service-list {
  list-style: "✓ "; /* Using the checkmark again */
  padding-left: 1.5em; /* Adjust as needed */
  margin-bottom: 1.5em;
  columns: 2; /* Display list in two columns on wider screens */
  column-gap: 30px;
}
.service-list li {
  margin-bottom: 0.6em;
  -webkit-column-break-inside: avoid; /* Keep list items from breaking across columns */
  page-break-inside: avoid;
  break-inside: avoid;
}

.pricing-info {
  background-color: #ffffff; /* White card for pricing info */
  border: 1px solid var(--medium-gray);
  border-left: 5px solid var(--accent-color); /* Accent border */
  padding: 20px;
  margin-top: 1em;
  margin-bottom: 1.5em;
  border-radius: var(--border-radius);
}
.pricing-info h4 {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 0.5em;
}
.pricing-info p {
  margin-bottom: 0.5em;
  font-size: 0.95rem;
}
.pricing-info p:last-child {
  margin-bottom: 0;
}

.cta-container {
  text-align: center;
  margin-top: 1.5em;
}

.sub-service {
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px dashed var(--medium-gray);
}
.sub-service:first-of-type {
  /* If the first sub-service doesn't need a top border */
  /* border-top: none; */
  /* padding-top: 0; */
}
.sub-service h3 {
  /* For sub-service titles like "Bespoke Wood Creations" */
  font-size: 1.4rem; /* Slightly larger */
  text-align: left; /* Or center if you prefer */
  margin-top: 0;
}

/* --- Contact Page Specific Styles --- */
.contact-form-container {
  max-width: 700px;
  margin: 2em auto;
  background-color: #ffffff; /* White background for the form area */
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5em;
}
.form-group label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
  color: var(--secondary-color);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--body-font);
}
.form-group textarea {
  resize: vertical; /* Allow vertical resizing */
  min-height: 120px;
}
.form-group select {
  appearance: none; /* For custom dropdown arrow if desired later */
  background-color: #fff; /* Ensure select bg is white */
}
/* Add a simple focus style */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 97, 167, 0.2); /* Using your primary color with opacity */
}

.alternative-contact {
  text-align: center;
  margin-top: 3em;
  padding: 20px;
  background-color: var(
    --light-gray
  ); /* Light gray background for this section */
  border-radius: var(--border-radius);
}
.alternative-contact h3 {
  color: var(--primary-color);
  margin-bottom: 1em;
}
.alternative-contact p {
  font-size: 1.1rem;
  margin-bottom: 0.7em;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
  .service-list {
    columns: 1; /* Single column for service lists on smaller screens */
  }
  #page-hero h1 {
    font-size: 2rem;
  }
  #page-hero .sub-headline {
    font-size: 1rem;
  }

  .contact-form-container {
    padding: 20px;
  }
}
/* --- Responsive Adjustments for Larger Screens --- */

/* For screens wider than your current max-width, e.g., > 1200px */
@media (min-width: 1200px) {
  :root {
    --container-width-large: 1140px; /* A modest increase for slightly larger than default */
  }
  .container {
    max-width: var(--container-width-large);
  }
}

/* For "Full HD" type screens and a bit beyond, e.g., > 1400px */
@media (min-width: 1400px) {
  :root {
    --container-width-xlarge: 1320px;
  }
  .container {
    max-width: var(--container-width-xlarge);
  }
  /* Optional: Slightly increase base font size for better readability on larger displays */
  /* body {
        font-size: calc(var(--base-font-size) + 1px);
    } */
}

/* For very wide screens like QHD or entry UHD, e.g., > 1800px or > 2000px */
@media (min-width: 1800px) {
  :root {
    --container-width-xxlarge: 1500px; /* Adjust as you see fit */
  }
  .container {
    max-width: var(--container-width-xxlarge);
  }
  /* Optional: Further increase base font size if lines of text get too long */
  /* body {
        font-size: calc(var(--base-font-size) + 2px);
    } */
}

/* For your 32" UHD specifically, you might go even wider if you like */
@media (min-width: 2400px) {
  /* Common width for QHD+ or smaller UHD scaling */
  :root {
    --container-width-uhd: 1800px; /* Or even 2000px or more, test for readability */
  }
  .container {
    max-width: var(--container-width-uhd);
  }
}
