/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

body {
  font-family: 'Georgia', serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

.section {
  padding: 60px 0;
}

.section:nth-child(even) {
  background: white;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: #2c3e50;
  position: relative;
}

.section-title::after {
  content: '';
  width: 80px;
  height: 3px;
  background: #e74c3c;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* ========================================
   HEADER
   ======================================== */

.header {
  background: #2c3e50;
  color: white;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #ecf0f1;
}

.header-phone {
  background: #e74c3c;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: background 0.3s;
}

.header-phone:hover {
  background: #c0392b;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  background: url('/images/hero-locksmith-workshop.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  min-height: 75vh;
  position: relative;
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: flex-start; /* Align to left */
  text-align: left; /* Left align text */
  padding: 60px 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(44, 62, 80, 0.85) 0%,    /* Dark on left for text */
    rgba(44, 62, 80, 0.6) 30%,    /* Gradual fade */
    rgba(44, 62, 80, 0.3) 60%,    /* Light in middle */
    rgba(44, 62, 80, 0.1) 100%    /* Very light on right - shows Tex clearly */
  );
}

.hero .container {
  position: relative;
  z-index: 2;
  background: none;
  padding: 0 20px;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  max-width: 500px; /* Narrower text area */
  margin-left: 0; /* Remove auto centering */
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 450px; /* Constrain paragraph width */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.cta-phone {
  background: #e74c3c;
  color: white;
  padding: 18px 36px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 15px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.cta-phone:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.hero-subtext {
  font-size: 16px;
  opacity: 0.9;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: #e74c3c;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.service-card p {
  color: #666;
  line-height: 1.6;
}

/* ========================================
   AREAS WE SERVE SECTION
   ======================================== */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}

.area-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  font-weight: bold;
  color: #2c3e50;
  transition: all 0.3s;
}

.area-item:hover {
  background: #e74c3c;
  color: white;
  transform: translateY(-3px);
}

/* ========================================
   ABOUT US
   ======================================== */

.about-us {
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

.credentials {
  margin-top: 30px;
  display: grid;
  gap: 15px;
}

.credential-item {
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid #e74c3c;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.credential-item strong {
  color: #2c3e50;
  font-size: 16px;
}

.credential-item span {
  color: #666;
  font-size: 14px;
}

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

.about-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.02);
}

/* Responsive design */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-image {
    order: -1; /* Put image first on mobile */
  }
  
  .about-text p {
    font-size: 16px;
  }
  
  .credentials {
    margin-top: 25px;
  }
  
  .credential-item {
    padding: 12px 15px;
  }
  
  .credential-item strong {
    font-size: 15px;
  }
}

/* ========================================
   SERVICES NOT OFFERED
   ======================================== */

.services-not-offered-simple {
  background: #f8f9fa;
  padding: 40px 0; /* Reduced from 60px */
}

.section-title-small {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #2c3e50;
  position: relative;
}

.section-title-small::after {
  content: '';
  width: 60px; 
  height: 2px;
  background: #95a5a6;
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

.not-offered-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.not-offered-intro {
  font-size: 16px;
  color: #666;
  margin-bottom: 25px;
  font-style: italic;
}

.not-offered-list {
  background: white;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: left;
  display: inline-block;
  margin: 0;
  border-left: 4px solid #95a5a6;
}

.not-offered-list li {
  color: #555;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.4;
}

.not-offered-list li:last-child {
  margin-bottom: 0;
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.gallery-item {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  background: #eee;
}

.gallery-item picture,
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-item img {
  object-fit: cover;
  object-position: center;
  transition: transform .3s ease;
}

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

.gallery-item a {
  display: block;
  height: 100%;
}

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox[aria-hidden="true"] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox__figure {
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  margin: 0;
  position: relative;
  text-align: center;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: calc(90vh - 60px);
  width: auto;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  object-fit: contain;
  margin: 0 auto;
}

.lightbox__figure figcaption {
  color: #fff;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  opacity: 0.9;
  padding: 6px 12px;
  background: rgba(0,0,0,0.8);
  border-radius: 4px;
  margin: 10px auto 0;
  display: inline-block;
  max-width: 90%;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease;
  backdrop-filter: blur(5px);
}

.lightbox__close { 
  top: 20px; 
  right: 20px; 
}

.lightbox__prev  { 
  left: 20px; 
  top: 50%; 
  transform: translateY(-50%);
}

.lightbox__next  { 
  right: 20px; 
  top: 50%; 
  transform: translateY(-50%);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox__close:focus,
.lightbox__nav:focus {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h3 {
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e74c3c;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.submit-btn {
  background: #2c3e50;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #34495e;
}

/* Contact Info panel on right hand side */
.contact-info {
  background: #e74c3c;
  color: white;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-phone {
  font-size: 32px;
  font-weight: bold;
  margin: 20px 0;
  display: block;
  text-decoration: none;
  color: white;
}

.contact-info p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.hours {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

/* ========================================
   FORM VALIDATION STYLES
   ======================================== */

.form-group.error input,
.form-group.error textarea {
  border-color: #e74c3c !important;
  background-color: #fdf2f2;
}

.form-group.success input,
.form-group.success textarea {
  border-color: #27ae60 !important;
  background-color: #f2f9f2;
}

.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  display: none;
  font-weight: normal;
}

.error-message.show {
  display: block;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.form-status {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: none;
  font-weight: bold;
}

.form-status.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.form-status.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.form-status.show {
  display: block;
}

.submit-btn:disabled {
  background: #95a5a6 !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.submit-btn .loading {
  display: none;
}

.submit-btn.loading .normal-text {
  display: none;
}

.submit-btn.loading .loading {
  display: inline;
}

.required {
  color: #e74c3c;
  font-weight: bold;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 40px 0;
}

.footer-phone {
  background: #e74c3c;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-size: 20px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.footer-phone:hover {
  background: #c0392b;
}

.footer p {
  opacity: 0.8;
}

/* ========================================
   RESPONSIVE DESIGN AREA FOR PHONES N'AT
   ======================================== */

/* Tablet & Mobile (768px and below) */
@media (max-width: 768px) {
  /* Header */
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .header-phone {
    font-size: 16px;
    padding: 10px 20px;
  }
  
  /* Hero */
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .cta-phone {
    font-size: 18px;
    padding: 15px 30px;
  }
  
  /* Sections */
  .section-title {
    font-size: 28px;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  /* Areas - More compact on mobile */
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .area-item {
    padding: 12px 8px;
    font-size: 14px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-info {
    order: -1;
  }
  
  .contact-phone {
    font-size: 24px;
  }
  
  /* Lightbox */
  .lightbox {
    padding: 15px;
  }
  
  .lightbox__figure img {
    max-height: calc(90vh - 50px);
  }
  
  .lightbox__figure figcaption {
    font-size: 0.9rem;
    padding: 4px 8px;
    margin-top: 8px;
  }
  
  .lightbox__nav,
  .lightbox__close {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }
  
  .lightbox__close {
    top: 15px;
    right: 15px;
  }
  
  .lightbox__prev {
    left: 15px;
  }
  
  .lightbox__next {
    right: 15px;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  /* Hero */
/* Mobile (768px and below) */
@media (max-width: 768px) {
  .hero {
    text-align: center;
    justify-content: center;
    background-attachment: scroll;
    background-image: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)),
                      url('/images/hero-locksmith-workshop-mobile.jpg');
  }
  
  .hero::before {
    background: none; /* Remove gradient on mobile, use overlay instead */
  }
  
  .hero .container {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 18px;
    max-width: 100%;
  }
}
}
  
  /* Areas - Even more compact */
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .area-item {
    padding: 10px 6px;
    font-size: 13px;
  }

 /* About Us */
 @media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-image {
    order: -1; /* Put image first on mobile */
  }
  
  .about-text p {
    font-size: 16px;
  }
  
  .credentials {
    margin-top: 25px;
  }
  
  .credential-item {
    padding: 12px 15px;
  }
  
  .credential-item strong {
    font-size: 15px;
  }
}

   /* Services Not Offered */
@media (max-width: 768px) {
  .services-not-offered-simple {
    padding: 30px 0;
  }
  
  .section-title-small {
    font-size: 24px;
  }
  
  .not-offered-list {
    padding: 25px 30px;
    width: 100%;
  }
  
  .not-offered-list li {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .not-offered-list {
    padding: 20px 25px;
  }
}
  
  /* Contact */
  .contact-form,
  .contact-info {
    padding: 25px;
  }
  
  /* Lightbox */
  .lightbox {
    padding: 10px;
  }
  
  .lightbox__figure img {
    max-height: calc(90vh - 40px);
  }
  
  .lightbox__figure figcaption {
    font-size: 0.85rem;
    padding: 3px 6px;
    margin-top: 6px;
  }
}
