/* =============================================
   APEX LOFT CONVERSIONS — Demo Site
   Brand: Deep Orange #C85F00 + Blue #1E8CC8
   Fonts: Playfair Display + Open Sans
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #C85F00;
  --primary-light: #E06B00;
  --secondary: #1E8CC8;
  --dark: #1a1a1a;
  --mid: #4a4a4a;
  --grey: #7e8082;
  --off-white: #f8f8f6;
  --white: #ffffff;
  --border: #e0e0dc;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

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

section { padding: 80px 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 3px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #2499D8; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* ---- NAV ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(6px);
  padding: 0 20px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img { height: 48px; width: auto; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 24px 16px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: var(--primary); }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark);
  min-width: 220px;
  border-top: 3px solid var(--primary);
  list-style: none;
  z-index: 100;
}
.nav-menu > li:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 20px;
  color: #ccc;
  font-size: 0.88rem;
  transition: all 0.15s;
}
.dropdown li a:hover { color: var(--white); background: #2a2a2a; padding-left: 26px; }

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 3px;
  margin-left: 10px;
}
.nav-cta:hover { background: var(--primary-light) !important; color: var(--white) !important; }

/* Mobile nav */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
    padding: 20px 0;
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a { padding: 14px 24px; border-bottom: 1px solid #2a2a2a; }
  .dropdown { display: block; position: static; background: #252525; border: none; }
  .dropdown li a { padding: 10px 40px; }
  .nav-cta { margin: 16px 24px; border-radius: 3px; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,26,26,0.80) 40%, rgba(26,26,26,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--white);
  padding: 60px 20px;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  margin-bottom: 20px;
  border-radius: 2px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 36px; max-width: 580px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero {
  background-size: cover;
  background-position: center;
  padding: 140px 20px 80px;
  text-align: center;
  color: var(--white);
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.65);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--dark);
  padding: 22px 0;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  font-weight: 600;
}
.trust-item svg { color: var(--primary); flex-shrink: 0; }

/* ---- STATS BAR ---- */
.stats-bar { background: var(--primary); padding: 60px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* ---- ABOUT STRIP ---- */
.about-strip { background: var(--off-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--mid); margin-bottom: 16px; }
.about-img img { border-radius: 4px; width: 100%; height: 420px; object-fit: cover; }

/* Badges strip */
.badges-strip {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.badges-strip img { height: 54px; width: auto; }

/* ---- SERVICES ---- */
.services-section { background: var(--white); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--mid); max-width: 640px; margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.10); transform: translateY(-3px); }
.service-card-img { height: 220px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 24px; }
.service-card-body h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-card-body p { color: var(--mid); font-size: 0.95rem; }
.service-icon {
  width: 44px; height: 44px;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ---- PORTFOLIO ---- */
.portfolio-section { background: var(--off-white); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 768px) { .portfolio-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4/3;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(200,95,0,0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }
.portfolio-item-overlay span { color: var(--white); font-weight: 700; font-size: 0.9rem; }

/* ---- TESTIMONIALS ---- */
.testimonials-section { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: var(--off-white);
  border-radius: 4px;
  padding: 32px;
  position: relative;
  border-left: 4px solid var(--primary);
}
.testimonial-stars { color: #f5a623; font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-card p { color: var(--mid); font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.95rem; }
.author-location { color: var(--grey); font-size: 0.82rem; }

/* ---- WHY CHOOSE ---- */
.why-section { background: var(--off-white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.why-card {
  background: var(--white);
  border-radius: 4px;
  padding: 28px;
  text-align: center;
  border-bottom: 3px solid var(--primary);
}
.why-card svg { color: var(--primary); margin: 0 auto 14px; display: block; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.why-card p { color: var(--mid); font-size: 0.92rem; }

/* ---- CTA BAND ---- */
.cta-band { background: var(--primary); padding: 80px 20px; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.88); margin-bottom: 32px; font-size: 1.05rem; }
.cta-band .phone {
  display: block;
  color: var(--white);
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  margin-top: 20px;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- AREAS ---- */
.areas-section { background: var(--secondary); padding: 60px 0; }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
@media (max-width: 600px) { .areas-grid { grid-template-columns: 1fr; } }
.areas-col h3 { color: var(--white); margin-bottom: 16px; font-size: 1.1rem; letter-spacing: 1px; text-transform: uppercase; }
.areas-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.areas-list li {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
}

/* ---- CONTACT SECTION ---- */
.contact-section { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { margin-bottom: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--grey); margin-bottom: 4px; }
.contact-item a { color: var(--dark); font-size: 1.05rem; font-weight: 600; }
.contact-item a:hover { color: var(--primary); }

.contact-form { background: var(--off-white); padding: 40px; border-radius: 4px; }
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--mid); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 42px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }

.footer-col h4 {
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-contact-item { margin-bottom: 10px; font-size: 0.88rem; }
.footer-contact-item a { color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-badges { display: flex; gap: 16px; align-items: center; }
.footer-badges img { height: 36px; width: auto; filter: brightness(0.85); }

/* ---- UTIL ---- */
.text-orange { color: var(--primary); }
.section-bg-dark { background: var(--dark); }
.section-bg-dark h2, .section-bg-dark p { color: rgba(255,255,255,0.9); }

@media (max-width: 480px) {
  section { padding: 60px 0; }
  .hero { min-height: 100svh; }
}
