/* ===============================
   VARIABLES
================================ */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --accent: #b51212;
  --line: #e5e5e5;
}

/* ===============================
   GLOBAL RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===============================
   NAVBAR
================================ */

.top-bar {
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  padding: 8px 0;
}

.top-inner {
  display: flex;
  justify-content: space-between;
}

.main-nav {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo a {
  text-decoration: none;
  font-size: 1.3rem;
  color: var(--text);
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--text);
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.quote-btn {
  background: var(--accent);
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: 0.3s ease;
}

.quote-btn:hover {
  background: #8f0f0f;
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* MOBILE NAV DRAWER */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: white;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--accent);
}

.mobile-nav .mobile-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}

.mobile-nav .mobile-quote {
  background: var(--accent);
  color: white;
  padding: 14px 40px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
}

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

.hero {
  height: 60vh;
  min-height: 460px;
  max-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 40px 20px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.65)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 25px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.hero-subtext {
  font-size: 1.15rem;
  color: #ffffff;
  opacity: 0.95;
  margin-bottom: 40px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-btn {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 18px 52px;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.95rem;
  box-shadow: 0 15px 40px rgba(181, 18, 18, 0.35);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.hero-btn:hover {
  background: #8f0f0f;
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(181, 18, 18, 0.5);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* ===============================
   GENERAL SECTION STYLING
================================ */

section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
}

.text-column p,
.text-column ul {
  color: var(--muted);
}

.text-column h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.text-column h3 {
  margin-top: 40px;
  font-size: 1.5rem;
}

.image-column img {
  width: 100%;
  border-radius: 6px;
}

/* ===============================
   BUTTON
================================ */

.btn {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--text);
  text-decoration: none;
  color: var(--text);
  transition: 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

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

.services-section {
  padding: 100px 0 70px 0;
  background: #f3f3f3;
  position: relative;
  z-index: 2;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
  font-size: 40px;
}

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

/* ===============================
   FLIP CARDS
================================ */

.flip-card {
  perspective: 1600px;
  height: 380px;
  width: 100%;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.flip-card-front {
  background-size: cover;
  background-position: center;
  color: white;
}

.flip-card-back {
  flex-direction: column;
  background: #111;
  color: white;
  transform: rotateY(180deg);
  z-index: 1;
}

.flip-card-back .btn {
  border-color: white;
  color: white;
  margin-top: 15px;
}

.flip-card-back .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.icon {
  font-size: 48px;
  margin-bottom: 25px;
  color: var(--accent);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.75)
  );
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
}

.flip-card-front h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.flip-card-front p {
  color: rgba(255,255,255,0.9);
}

/* ===============================
   FAQ SECTION
================================ */

.faq-section {
  background: white;
}

.faq-item {
  margin-bottom: 20px;
  border: 2px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 20px;
  font-size: 1.1rem;
  background: #111;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.faq-question:hover {
  background: var(--accent);
}

.faq-answer {
  max-height: 0;
  font-size: 1rem;
  overflow: hidden;
  background: #f9f9f9;
  padding: 0 20px;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
  max-height: 300px;
  padding: 20px;
}

/* ===============================
   CTA SECTION
================================ */

.cta {
  background: #111;
  color: white;
  text-align: center;
}

.cta .btn {
  border-color: white;
  color: white;
}

.cta .btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

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

footer {
  padding: 50px 0;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

/* ===============================
   SCROLL FADE ANIMATION
================================ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   CONTACT PAGE LAYOUT
================================ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-title {
  font-size: 42px;
  margin-bottom: 20px;
}

.contact-lead {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 16px;
}

.info-block {
  margin-top: 40px;
}

.info-block h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

/* ===============================
   FORM STYLING
================================ */

.form-container {
  background: white;
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-top: 5px solid var(--accent);
}

.form-title {
  margin-bottom: 30px;
  font-size: 28px;
}

.styled-form {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

.form-row label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  -webkit-appearance: none;
  appearance: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 18, 18, 0.1);
}

.form-button {
  margin-top: 10px;
  padding: 18px;
  background: var(--accent);
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

.form-button:hover {
  background: #8f0f0f;
  transform: translateY(-2px);
}

/* ===============================
   ABOUT SECTION
================================ */

.about-highlight {
  padding: 140px 0;
}

.about-highlight h2 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 30px;
}

.about-highlight .lead {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 35px;
  font-weight: 500;
  max-width: 650px;
}

.value-points {
  list-style: none;
  margin: 30px 0 40px 0;
  padding: 0;
}

.value-points li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.value-points li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.image-with-area {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.image-with-area img {
  border-radius: 12px;
  border: #111111 solid 4px;
}

.image-service-area {
  background: #ffffff;
  color: black;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
}

.image-service-area h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.image-service-area p {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.primary-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 16px 48px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 15px 40px rgba(181, 18, 18, 0.25);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.primary-btn:hover {
  background: #8f0f0f;
  transform: translateY(-3px);
}

/* ===============================
   SERVICE CARD BACKGROUNDS
================================ */

.custom-front {
  background-image: url("../images/custom-home.jpg");
}

.commercial-front {
  background-image: url("../images/commercial.jpg");
}

.renovation-front {
  background-image: url("../images/renovation.jpg");
}

.framing-front {
  background-image: url("../images/framing.jpg");
}

.demo-front {
  background-image: url("../images/demo.jpg");
}

.stonework-front {
  background-image: url("../images/stonework.jpg");
}

.water-front {
  background-image: url("../images/water-feature.jpg");
}

.foundation-front {
  background-image: url("../images/foundation.jpg");
}

.hugging-front {
  background-image: url("../images/hugging.jpg");
}

.american-front {
  background-image: url("../images/american-flag.jpg");
}

.contractor-front {
  background-image: url("../images/contractor.jpg");
}

.tampa-front {
  background-image: url("../images/tampa.jpg");
}

.trust-front {
  background-image: url("../images/trust.jpg");
}

/* ===============================
   RESPONSIVE — TABLET (max 900px)
================================ */

@media (max-width: 900px) {

  /* NAV */
  .nav-links,
  .quote-btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .top-bar {
    font-size: 0.7rem;
  }

  /* LAYOUT */
  .two-column {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* HERO */
  .hero h1 {
    font-size: 2.2rem;
  }

  /* ABOUT */
  .about-highlight {
    padding: 80px 0;
  }

  .about-highlight h2 {
    font-size: 2.4rem;
  }

  /* SERVICES GRID */
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
  }

  /* CONTACT */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-title {
    font-size: 34px;
  }

  .form-container {
    padding: 35px;
  }

  /* SECTION TITLE */
  .section-title {
    font-size: 32px;
    margin-bottom: 50px;
  }

}

/* ===============================
   RESPONSIVE — MOBILE (max 640px)
================================ */

@media (max-width: 640px) {

  /* GLOBAL */
  section {
    padding: 60px 0;
  }

  .container {
    width: 92%;
  }

  /* TOP BAR — hide on small phones */
  .top-bar {
    display: none;
  }

  /* LOGO */
  .logo img {
    height: 55px;
  }

  .nav-inner {
    height: 70px;
  }

  /* HERO */
  .hero {
    height: auto;
    min-height: 340px;
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 1.9rem;
    margin-bottom: 16px;
  }

  .hero-subtext {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .hero-btn {
    padding: 16px 36px;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
  }

  /* HEADINGS */
  .about-highlight h2 {
    font-size: 2rem;
  }

  .about-highlight .lead {
    font-size: 1.05rem;
  }

  .text-column h2 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  /* FLIP CARDS — flatten into stacked layout on mobile */
  .flip-card {
    height: auto;
    perspective: none;
  }

  .flip-card-inner {
    transform: none !important;
    transform-style: flat;
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .flip-card-front {
    position: relative;
    inset: auto;
    height: 220px;
    border-radius: 20px 20px 0 0;
  }

  .flip-card-back {
    position: relative;
    inset: auto;
    transform: none;
    border-radius: 0 0 20px 20px;
    padding: 30px;
    height: auto;
    min-height: 180px;
  }

  .flip-card-back h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .flip-card-back p {
    font-size: 0.9rem;
  }

  .flip-card-back .btn {
    width: 100%;
    text-align: center;
  }

  /* SERVICES GRID */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* ABOUT */
  .about-highlight {
    padding: 60px 0;
  }

  .image-with-area img {
    border-width: 2px;
  }

  .image-service-area {
    padding: 20px;
  }

  .image-service-area h3 {
    font-size: 1.2rem;
  }

  .image-service-area p {
    font-size: 1rem;
  }

  /* VALUE POINTS */
  .value-points li {
    font-size: 0.95rem;
  }

  /* BUTTONS — full width on mobile */
  .primary-btn,
  .btn {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
  }

  /* CTA */
  .cta {
    padding: 70px 0;
  }

  .cta h2 {
    font-size: 2rem;
  }

  /* FAQ */
  .faq-question {
    font-size: 1rem;
    padding: 18px;
  }

  .faq-answer {
    font-size: 0.95rem;
  }

  /* CONTACT FORM */
  .form-container {
    padding: 28px 22px;
    border-radius: 8px;
  }

  .form-title {
    font-size: 22px;
  }

  .form-button {
    padding: 18px;
    font-size: 15px;
  }

  /* FOOTER */
  footer {
    padding: 35px 0;
    font-size: 0.8rem;
  }

}