/* ============================================
   Dream Castle Construction & Renovations
   Clean CSS - Single Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0d4f4f;
  --accent: #c47834;
  --cta: #d4914a;
  --dark: #1a2a2a;
  --dark-alt: #000000;
  --text: #000000;
  --text-muted: #4a5d5d;
  --text-light: #8E91AA;
  --light-bg: #f8f5f0;
  --white: #ffffff;
  --border: #eaeaea;
  --whatsapp: #25D366;
  --font-primary: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --container: 1140px;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; }

/* --- Utilities --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.section-label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--accent); margin-bottom: 10px; }
.section-title { font-family: var(--font-primary); font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; color: var(--dark); }
.section-subtitle { font-size: 18px; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; }
.section-padding { padding: 100px 0; }
.accent { color: var(--accent); }
.hidden { display: none; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 14px 32px; border-radius: var(--radius); font-weight: 700; font-size: 15px; text-transform: uppercase; cursor: pointer; transition: var(--transition); letter-spacing: 1px; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--dark); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--cta); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

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

/* Top Bar */
.top-bar { background: var(--accent); padding: 8px 0; text-align: center; }
.top-bar p { color: var(--white); font-size: 14px; font-weight: 600; margin: 0; }

/* Navbar */
.navbar { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; }
.navbar__logo img { max-width: 350px; max-height: 90px; height: auto; }
.navbar__menu { display: flex; align-items: center; gap: 5px; }
.navbar__menu li { position: relative; }
.navbar__menu li a { padding: 10px 15px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--primary); display: block; }
.navbar__menu li a:hover { color: var(--accent); }

/* Dropdown */
.navbar__menu .dropdown:hover .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__menu { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 240px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); border-radius: 0 0 var(--radius) var(--radius); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 100; }
.dropdown__menu li a { font-size: 14px; font-weight: 400; text-transform: none; padding: 8px 25px; }
.dropdown__menu li a:hover { color: var(--accent); background: var(--light-bg); }

/* CTA in navbar */
.navbar__cta { margin-left: 15px; }
.navbar__cta .btn { padding: 10px 24px; font-size: 13px; }

/* Hamburger */
.hamburger { display: none; background: none; border: 2px solid var(--primary); border-radius: 4px; padding: 8px; cursor: pointer; flex-direction: column; gap: 5px; width: 42px; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--primary); transition: var(--transition); }

/* Mobile Menu Overlay */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 320px; height: 100vh; background: var(--white); z-index: 2000; padding: 20px; overflow-y: auto; transition: right 0.35s ease; box-shadow: -5px 0 30px rgba(0,0,0,0.15); }
.mobile-menu.active { right: 0; }
.mobile-menu__close { background: none; font-size: 28px; cursor: pointer; color: var(--primary); float: right; padding: 5px 10px; }
.mobile-menu__nav { margin-top: 50px; }
.mobile-menu__nav li { border-bottom: 1px solid var(--border); }
.mobile-menu__nav li a { display: block; padding: 14px 0; font-size: 16px; font-weight: 600; color: var(--dark); }
.mobile-menu__nav li a:hover { color: var(--accent); }
.mobile-menu__nav .sub-menu { padding-left: 20px; }
.mobile-menu__nav .sub-menu li a { font-weight: 400; font-size: 14px; }
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1999; display: none; }
.mobile-overlay.active { display: block; }

/* ============================================
   HERO
   ============================================ */
.hero { position: relative; min-height: 85vh; display: flex; align-items: center; background: url('../images/services/tiler-working.webp') center center / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.hero__content { position: relative; z-index: 1; max-width: 650px; padding: 60px 0; }
.hero__content h1 { font-family: var(--font-primary); font-size: 56px; font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 20px; }
.hero__content p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 30px; }

/* ============================================
   SERVICES OVERVIEW
   ============================================ */
.services-overview { background: var(--light-bg); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service-card { background: var(--white); padding: 40px 25px; border-radius: var(--radius); text-align: center; transition: var(--transition); box-shadow: var(--shadow); }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.service-card__icon { font-size: 40px; color: var(--accent); margin-bottom: 20px; }
.service-card__title { font-family: var(--font-primary); font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
.service-card__text { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ============================================
   ABOUT
   ============================================ */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about__content h3 { font-family: var(--font-primary); font-size: 28px; font-weight: 800; margin-bottom: 20px; color: var(--dark); }
.about__content p { margin-bottom: 16px; color: rgba(0,0,0,0.65); line-height: 1.8; }
.about__stats { background: var(--primary); color: var(--white); border-radius: var(--radius); padding: 50px 40px; }
.about__stats h2 { font-family: var(--font-primary); font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.about__highlight { font-family: var(--font-primary); font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 20px; }

/* Why Choose Us */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 50px; }
.why-card { display: flex; gap: 20px; padding: 25px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.why-card__icon { flex-shrink: 0; width: 55px; height: 55px; background: var(--light-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 22px; }
.why-card__title { font-family: var(--font-primary); font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.why-card__text { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio { background: var(--light-bg); }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.portfolio-grid__item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.portfolio-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-grid__item:hover img { transform: scale(1.05); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { background: var(--dark); color: var(--white); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-label { color: var(--accent); }
.rating-display { display: flex; align-items: center; gap: 15px; justify-content: center; margin-bottom: 15px; }
.rating-display__number { font-family: var(--font-primary); font-size: 64px; font-weight: 800; color: var(--accent); }
.rating-display__stars { color: var(--accent); font-size: 20px; display: flex; gap: 3px; }
.rating-display__label { font-size: 14px; color: var(--text-light); }

.testimonial-slider { max-width: 900px; margin: 0 auto; overflow: hidden; position: relative; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }
.testimonial-card { min-width: 100%; padding: 40px; }
.testimonial-card__stars { color: var(--accent); font-size: 18px; display: flex; gap: 3px; margin-bottom: 20px; justify-content: center; }
.testimonial-card__text { font-size: 17px; line-height: 1.8; color: rgba(255,255,255,0.85); margin-bottom: 25px; font-style: italic; text-align: center; }
.testimonial-card__author { text-align: center; }
.testimonial-card__name { font-weight: 700; font-size: 16px; }
.testimonial-card__role { font-size: 13px; color: var(--text-light); }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.testimonial-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: var(--transition); }
.testimonial-dots span.active { background: var(--accent); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section { background: var(--primary); text-align: center; padding: 80px 0; }
.cta-section h2 { font-family: var(--font-primary); font-size: 42px; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 30px; }
.cta-section .phone-link { font-family: var(--font-primary); font-size: 32px; font-weight: 800; color: var(--accent); display: block; margin-bottom: 30px; }
.cta-section .phone-link:hover { color: var(--cta); }

/* ============================================
   CONTACT
   ============================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact__info h3 { font-family: var(--font-primary); font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 20px; }
.contact__info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.contact__info-icon { width: 45px; height: 45px; background: var(--light-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.contact__info-text h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.contact__info-text p { font-size: 14px; color: var(--text-muted); }
.contact__info-text a { color: var(--primary); }
.contact__info-text a:hover { color: var(--accent); }

/* Contact Form */
.contact-form h3 { font-family: var(--font-primary); font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 25px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-group label .required { color: #e74c3c; }
.form-group input,
.form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; transition: var(--transition); background: var(--white); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,79,79,0.1); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group .error-msg { color: #e74c3c; font-size: 12px; margin-top: 4px; display: none; }
.form-group.has-error input,
.form-group.has-error textarea { border-color: #e74c3c; }
.form-group.has-error .error-msg { display: block; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark-alt); color: var(--white); padding: 80px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer__logo img { max-width: 280px; margin-bottom: 20px; }
.footer__desc { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(196,120,52,0.3); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 16px; transition: var(--transition); }
.footer__social a:hover { background: var(--accent); }
.footer__heading { font-family: var(--font-primary); font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.footer__links li { margin-bottom: 10px; }
.footer__links li a { font-size: 14px; color: var(--text-light); }
.footer__links li a:hover { color: var(--white); }
.footer__links li a i { margin-right: 8px; color: var(--white); font-size: 14px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; }
.footer__bottom p { font-size: 14px; color: var(--text-light); }
.footer__bottom-badge { background: var(--white); color: var(--dark-alt); padding: 6px 24px; border-radius: 20px; font-size: 14px; font-weight: 500; }

/* ============================================
   WHATSAPP WIDGET
   ============================================ */
.whatsapp-btn { position: fixed; bottom: 45px; right: 15px; z-index: 99999; cursor: pointer; transition: transform 0.3s ease; animation: whatsappEntry 0.4s cubic-bezier(0.25,1,0.5,1); }
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn svg { width: 60px; height: 60px; border: 3px solid var(--whatsapp); border-radius: 50%; padding: 5px; background: var(--whatsapp); box-shadow: 0 4px 15px rgba(37,211,102,0.4); }

@keyframes whatsappEntry {
  0% { opacity: 0; transform: scale(0); }
  100% { opacity: 1; transform: scale(1); }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up, .fade-left, .fade-down { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up { transform: translateY(30px); }
.fade-left { transform: translateX(-30px); }
.fade-down { transform: translateY(-30px); }
.fade-up.visible, .fade-left.visible, .fade-down.visible { opacity: 1; transform: translate(0); }

/* ============================================
   SERVICES PAGE
   ============================================ */
.page-hero { background: var(--primary); padding: 60px 0; text-align: center; }
.page-hero h1 { font-family: var(--font-primary); font-size: 48px; font-weight: 800; color: var(--white); }

.service-detail { border-bottom: 1px solid var(--border); }
.service-detail:nth-child(even) { background: var(--light-bg); }
.service-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.service-detail:nth-child(even) .service-detail__grid { direction: rtl; }
.service-detail:nth-child(even) .service-detail__grid > * { direction: ltr; }
.service-detail__image { border-radius: var(--radius); overflow: hidden; }
.service-detail__image img { width: 100%; height: 350px; object-fit: cover; }
.service-detail__content h2 { font-family: var(--font-primary); font-size: 32px; font-weight: 800; color: var(--dark); margin-bottom: 15px; }
.service-detail__content p { color: rgba(0,0,0,0.65); line-height: 1.8; margin-bottom: 15px; }
.service-detail__list { margin-top: 15px; }
.service-detail__list li { padding: 6px 0; font-size: 15px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.service-detail__list li i { color: var(--accent); font-size: 14px; }

/* Process Section */
.process { background: var(--dark); color: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.process-card { text-align: center; padding: 30px 20px; }
.process-card__number { font-family: var(--font-primary); font-size: 48px; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.process-card__title { font-family: var(--font-primary); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.process-card__text { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .navbar__menu, .navbar__cta { display: none; }
  .hamburger { display: flex; }
  .hero__content h1 { font-size: 42px; }
  .section-title { font-size: 34px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .service-detail__grid { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .service-detail__grid { direction: ltr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar__logo img { max-width: 250px; }
}

@media (max-width: 767px) {
  .hero { min-height: 70vh; }
  .hero__content h1 { font-size: 32px; }
  .hero__content p { font-size: 16px; }
  .section-title { font-size: 28px; }
  .section-padding { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 15px; text-align: center; }
  .cta-section h2 { font-size: 28px; }
  .cta-section .phone-link { font-size: 24px; }
  .rating-display__number { font-size: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 32px; }
  .mobile-menu { width: 280px; }
  .navbar__logo img { max-width: 200px; }
  .top-bar p { font-size: 12px; }
}
