/*
 Theme Name:   SAMA Renovation
 Theme URI:    https://samarenovation.com
 Author:       SAMA Renovation
 Description:  Custom standalone theme for SAMA Renovation
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  sama
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --gold: #E8A020;
  --dark: #1a2235;
  --darker: #111827;
  --white: #ffffff;
  --gray: #666;
  --light-gray: #f9f9f9;
}
body { font-family: 'Open Sans', sans-serif; color: #333; }
a { text-decoration: none; }

/* TOP BAR */
.top-bar { background: var(--darker); color: #ccc; font-size: 13px; padding: 8px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar-left { display: flex; gap: 24px; }
.top-bar a { color: #ccc; } .top-bar a:hover { color: var(--gold); }

/* HEADER */
.site-header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 30px; max-width: 1200px; margin: 0 auto; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { height: 52px; width: auto; display: block; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 26px; color: var(--dark); letter-spacing: 1px; }
.logo-sub { font-size: 11px; color: var(--gold); font-weight: 600; letter-spacing: 4px; text-transform: uppercase; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; color: var(--dark); text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.2s; }
.main-nav a:hover { color: var(--gold); }
.btn-quote { background: var(--gold); color: var(--white); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; padding: 12px 24px; text-transform: uppercase; letter-spacing: 1px; transition: background 0.2s; white-space: nowrap; }
.btn-quote:hover { background: #c8880a; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: all 0.3s; }
.mobile-nav { display: none; background: var(--white); border-top: 1px solid #eee; padding: 16px 30px; }
.mobile-nav a { display: block; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; color: var(--dark); padding: 10px 0; border-bottom: 1px solid #f0f0f0; text-transform: uppercase; letter-spacing: 0.5px; }
.mobile-nav.open { display: block; }

/* HERO */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; background: linear-gradient(rgba(17,24,39,0.55), rgba(17,24,39,0.55)), url('https://images.unsplash.com/photo-1484154218962-a197022b5858?w=1400&q=80') center/cover no-repeat; }
.hero-content { max-width: 600px; padding: 80px 30px 80px 80px; }
.hero-content h1 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 54px; color: var(--white); line-height: 1.1; margin-bottom: 20px; }
.hero-content p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 36px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { background: var(--gold); color: var(--white); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px; padding: 16px 32px; text-transform: uppercase; letter-spacing: 1px; transition: background 0.2s; display: inline-block; }
.btn-primary:hover { background: #c8880a; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px; padding: 14px 32px; text-transform: uppercase; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.btn-outline:hover { background: var(--white); color: var(--dark); }

/* SECTION HEADER */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 36px; color: var(--dark); }
.section-header h2 span { color: var(--gold); }
.section-divider { width: 50px; height: 3px; background: var(--gold); margin: 16px auto 0; }

/* SERVICES */
.services { padding: 80px 30px; background: var(--white); }
.services-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.service-card h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--dark); margin: 14px 0 10px; }
.service-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 4px; display: block; }
.service-card ul { list-style: none; }
.service-card ul li { font-size: 13px; color: var(--gray); padding: 3px 0 3px 14px; position: relative; line-height: 1.5; }
.service-card ul li::before { content: '•'; position: absolute; left: 0; color: var(--gold); }

/* ABOUT */
.about { padding: 80px 30px; background: var(--light-gray); }
.about-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 32px; color: var(--dark); margin-bottom: 12px; }
.about-divider { width: 40px; height: 3px; background: var(--gold); margin-bottom: 20px; }
.about-text p { color: var(--gray); line-height: 1.8; margin-bottom: 28px; font-size: 15px; }
.about-img { width: 100%; height: 380px; object-fit: cover; border-radius: 4px; }
.why-choose h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 28px; color: var(--dark); margin-bottom: 12px; }
.why-divider { width: 40px; height: 3px; background: var(--gold); margin-bottom: 24px; }
.why-list { list-style: none; }
.why-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--dark); font-weight: 600; padding: 10px 0; border-bottom: 1px solid #eee; }
.why-list li:last-child { border-bottom: none; }
.check { width: 22px; height: 22px; background: var(--gold); color: white; border-radius: 3px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; font-weight: 700; }

/* PROJECTS */
.projects { padding: 80px 30px; background: var(--white); }
.projects-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.project-item { position: relative; overflow: hidden; border-radius: 4px; }
.project-item img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.3s; }
.project-item:hover img { transform: scale(1.05); }
.project-label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(17,24,39,0.78); color: white; font-size: 11px; font-weight: 700; font-family: 'Montserrat', sans-serif; padding: 8px 12px; text-transform: uppercase; letter-spacing: 0.5px; }

/* STATS */
.stats { background: var(--dark); padding: 60px 30px; }
.stats-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat-number { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 48px; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.stat-label { color: rgba(255,255,255,0.65); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* FOOTER CTA */
.footer-cta { background: var(--darker); padding: 80px 30px; }
.footer-cta-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 60px; align-items: start; }
.cta-form h2, .contact-info h2, .footer-map h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 22px; color: var(--white); margin-bottom: 8px; }
.cta-form p { color: rgba(255,255,255,0.55); font-size: 14px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.cta-form input, .cta-form textarea { width: 100%; padding: 11px 14px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: white; font-size: 13px; font-family: 'Open Sans', sans-serif; outline: none; transition: border-color 0.2s; }
.cta-form input::placeholder, .cta-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.cta-form input:focus, .cta-form textarea:focus { border-color: var(--gold); }
.cta-form textarea { height: 80px; resize: none; margin-bottom: 10px; display: block; }
.btn-submit { width: 100%; background: var(--gold); color: var(--white); border: none; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px; padding: 14px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background 0.2s; }
.btn-submit:hover { background: #c8880a; }
.contact-info h2 { margin-bottom: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.5; }
.contact-icon { width: 34px; height: 34px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.contact-item strong { display: block; color: white; font-weight: 600; margin-bottom: 2px; font-size: 13px; }
.social-links { display: flex; gap: 10px; margin-top: 24px; }
.social-link { width: 34px; height: 34px; background: rgba(255,255,255,0.08); color: white; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; transition: background 0.2s; font-family: 'Montserrat', sans-serif; }
.social-link:hover { background: var(--gold); color: white; }
.footer-map h2 { margin-bottom: 16px; }
.footer-map iframe { width: 100%; height: 260px; border: none; border-radius: 4px; }

/* BOTTOM BAR */
.bottom-bar { background: #0a0f1a; padding: 18px 30px; text-align: center; color: rgba(255,255,255,0.35); font-size: 13px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services-grid, .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .about-inner, .footer-cta-inner { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding: 60px 30px; }
  .hero-content h1 { font-size: 40px; }
}
@media (max-width: 768px) {
  .main-nav, .header-inner .btn-quote { display: none; }
  .mobile-toggle { display: block; }
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content h1 { font-size: 32px; }
  .form-row { grid-template-columns: 1fr; }
}

/* PROJECTS GALLERY PAGE */
.projects-gallery { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .projects-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects-gallery { grid-template-columns: 1fr; } }
.projects-gallery .project-item img { height: 240px; }

/* LIGHT CONTACT PAGE OVERRIDES */
.cta-form-light input, .cta-form-light textarea { background: #f3f3f3; border: 1px solid #ddd; color: #333; }
.cta-form-light input::placeholder, .cta-form-light textarea::placeholder { color: #999; }
.cta-form-light input:focus, .cta-form-light textarea:focus { border-color: var(--gold); }
.contact-info-light .contact-item { color: var(--gray); }
.contact-info-light .contact-item strong { color: var(--dark); }
.contact-info-light .social-link { background: #f0f0f0; color: var(--dark); }
.contact-info-light .social-link:hover { background: var(--gold); color: #fff; }

/* WORDPRESS CUSTOM LOGO */
.logo .custom-logo-link { display: block; line-height: 0; }
.logo .custom-logo { height: 60px; width: auto; max-width: 100%; }
@media (max-width: 768px) { .logo .custom-logo { height: 48px; } }

/* STICKY FOOTER LAYOUT */
html { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
.site-header { flex-shrink: 0; }
.bottom-bar { flex-shrink: 0; margin-top: auto; }

/* CONTACT FORM VALIDATION + STATUS */
.field-wrap { display: flex; flex-direction: column; margin-bottom: 10px; }
.form-row { align-items: start; }
.form-row .field-wrap { margin-bottom: 0; }
.field-error { color: #c0392b; font-size: 12px; margin-top: 4px; min-height: 14px; font-family: 'Open Sans', sans-serif; }
.cta-form input.has-error, .cta-form textarea.has-error { border-color: #c0392b !important; }
.form-status { margin-top: 14px; font-size: 14px; font-weight: 600; font-family: 'Open Sans', sans-serif; }
.form-status.success { color: var(--gold); }
.form-status.error { color: #c0392b; }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
