/* ========================================
   A & N Carpentry - Portfolio Styles
   ======================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brown-dark: #5c3d2e;
  --brown-mid: #8b6f47;
  --cream: #faf3e0;
  --charcoal: #2c2c2c;
  --amber: #d4a03c;
  --white: #ffffff;
  --brown-light: #d2b48c;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height, 80px);
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  color: var(--brown-dark);
  margin-bottom: 16px;
}

.section-title.centered {
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--brown-mid);
  max-width: 600px;
  margin: 0 auto 60px;
}

.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--amber);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #c4912e;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-full {
  width: 100%;
}

/* --- Call Now --- */
.call-now {
  background-color: var(--brown-dark);
  color: var(--cream);
  padding: 48px 0;
}

.call-now-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.call-now h2 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.call-now p {
  color: var(--brown-light);
}

.call-now-btn {
  white-space: nowrap;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: var(--white);
  box-shadow: var(--shadow);
}

.navbar.scrolled {
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--amber);
  font-size: 1.6rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--amber);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--amber);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: #c4912e;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
}

/* --- About --- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  height: 500px;
}

.about-text .lead {
  font-size: 1.2rem;
  color: var(--brown-mid);
  margin-bottom: 20px;
  font-weight: 400;
}

.about-text p {
  margin-bottom: 16px;
  color: #555;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat:last-child {
  justify-content: flex-end;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--amber);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--brown-mid);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Services --- */
.services {
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--amber);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--amber);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--brown-dark);
  margin-bottom: 12px;
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
}

/* --- Gallery --- */
.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(92, 61, 46, 0.85) 0%,
    transparent 60%
  );
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
}

/* --- Testimonials --- */
.testimonials {
  background: var(--brown-dark);
  color: var(--white);
}

.testimonials .section-title {
  color: var(--white);
}

.testimonials .section-subtitle {
  color: var(--brown-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--amber);
  font-size: 1.2rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
  opacity: 0.9;
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  font-size: 1rem;
  color: var(--amber);
}

.testimonial-author span {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* --- Contact --- */
.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--cream);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(212, 160, 60, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.info-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.info-card h3 {
  font-size: 1.2rem;
  color: var(--brown-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--amber);
}

.info-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list li strong {
  color: var(--brown-dark);
  min-width: 110px;
}

.info-list li span {
  color: #666;
  text-align: right;
}

.check-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: #555;
  font-size: 0.95rem;
}

.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Footer --- */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
}

.footer-brand .nav-logo {
  display: inline-flex;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-brand .footer-licences {
  margin-top: 12px;
  font-size: 0.8rem;
  opacity: 0.5;
  line-height: 1.5;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.footer-badges img {
  height: 80px;
  width: auto;
  background: var(--white);
  border-radius: 4px;
  padding: 6px 10px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.footer-badges img:hover {
  opacity: 1;
}

.footer-links h4,
.footer-social h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul a {
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links ul a:hover {
  color: var(--amber);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--amber);
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.site-credit {
  font-size: 0.75rem;
  opacity: 0.6;
}

.back-to-top {
  color: var(--amber);
  font-weight: 700;
  transition: var(--transition);
}

.back-to-top:hover {
  color: var(--white);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--charcoal);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 0;
    transition: right 0.4s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link:hover {
    color: var(--white);
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    text-align: center;
    margin-top: 16px;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image img {
    height: 350px;
  }

  .about-stats {
    gap: 24px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-wide {
    grid-column: span 1;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 14px 28px;
  }

  .about-stats {
    flex-direction: column;
    gap: 16px;
  }

  .contact-form {
    padding: 24px;
  }
}
