/*
Theme Name: Facade Repair Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Custom facade landing theme
Version: 1.0
*/

:root {
    --red: #D32F2F;
    --red-dark: #B71C1C;
    --red-hover: #E53935;
    --dark: #1a1a1a;
    --gray-bg: #f5f5f5;
    --gray-dark: #444;
    --gray-mid: #777;
    --white: #ffffff;
    --border: #e0e0e0;
    --text: #222222;
    --blue-accent: #1565C0;
    --orange: #E65100;
  }

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

  body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    overflow-x: hidden;
  }

  /* HEADER */
  .header {
    background: #fff;
    border-bottom: 2px solid var(--red);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }
  .logo-icon {
    width: 44px;
    height: 44px;
    background: var(--red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .logo-icon svg { width: 28px; height: 28px; fill: white; }
  .logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    text-transform: uppercase;
  }
  .logo-text span { color: var(--red); display: block; }
  .header-phone {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .header-phone::before {
    content: '';
    display: inline-block;
    width: 20px; height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D32F2F'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1-9.4 0-17-7.6-17-17 0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
  }
  .burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
  }
  .burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--dark);
    border-radius: 2px;
  }

  /* HERO */
  .hero {
    position: relative;
    min-height: 440px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: stretch;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1400&auto=format&fit=crop&q=80') center/cover no-repeat;
    opacity: 0.45;
  }
  .hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
  }
  .hero-content { flex: 1; }
  .hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  }
  .hero-sub {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  }

  /* FORM CARD */
  .form-card {
    background: rgba(255,255,255,0.97);
    border-radius: 6px;
    padding: 28px 24px;
    width: 300px;
    flex-shrink: 0;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  }
  .form-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 18px;
    text-transform: uppercase;
  }
  .form-card input,
  .form-card textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    margin-bottom: 12px;
    outline: none;
    transition: border-color .2s;
    background: #fafafa;
  }
  .form-card input:focus,
  .form-card textarea:focus { border-color: var(--red); background: #fff; }
  .form-card textarea { resize: none; height: 68px; }
  .btn-red {
    width: 100%;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 14px;
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, transform .1s;
    letter-spacing: 0.5px;
  }
  .btn-red:hover { background: var(--red-hover); transform: translateY(-1px); }
  .btn-red:active { transform: translateY(0); }
  .form-privacy {
    font-size: 12px;
    color: var(--gray-mid);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .form-privacy::before {
    content: '✓';
    color: var(--red);
    font-weight: 700;
    font-size: 13px;
  }

  /* SECTIONS */
  section { padding: 60px 0; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
  .section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: var(--dark);
    margin-bottom: 40px;
    position: relative;
  }
  .section-title::after {
    content: '';
    display: block;
    width: 60px; height: 3px;
    background: var(--red);
    margin: 12px auto 0;
    border-radius: 2px;
  }

  /* SERVICES */
  .services { background: #fff; }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .service-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px 18px;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
    background: #fff;
  }
  .service-card:hover {
    box-shadow: 0 6px 24px rgba(211,47,47,0.12);
    transform: translateY(-3px);
  }
  .service-icon {
    width: 60px; height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 28px;
    background: #fff5f5;
    border: 2px solid #ffcdd2;
  }
  .service-card h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    text-transform: uppercase;
  }
  .service-card p {
    font-size: 13px;
    color: var(--gray-mid);
    line-height: 1.5;
  }

  /* ADVANTAGES */
  .advantages { background: var(--gray-bg); }
  .advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .adv-card {
    background: #fff;
    border-radius: 6px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform .2s;
  }
  .adv-card:hover { transform: translateY(-4px); }
  .adv-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 30px;
    background: linear-gradient(135deg, #fff5f5, #ffebee);
    border: 2px solid #ef9a9a;
  }
  .adv-card h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
  }
  .adv-card p { font-size: 13px; color: var(--gray-mid); }

  /* WORKS */
  .works { background: #fff; }
  .works-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
  }
  .works-track {
    display: flex;
    transition: transform .5s ease;
  }
  .works-slide {
    min-width: 100%;
    position: relative;
  }
  .works-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
  }
  .works-labels {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0;
  }
  .works-label {
    background: rgba(211,47,47,0.88);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .works-label.after { background: rgba(21,101,192,0.88); }
  .works-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: transform .2s;
  }
  .works-play:hover { transform: translate(-50%, -50%) scale(1.1); }
  .works-play svg { fill: white; width: 24px; height: 24px; margin-left: 4px; }
  .works-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--dark);
    transition: background .2s;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
  }
  .works-nav:hover { background: var(--red); color: white; }
  .works-nav.prev { left: 16px; }
  .works-nav.next { right: 16px; }
  .works-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }
  .works-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    border: none;
    transition: background .2s;
  }
  .works-dot.active { background: var(--red); }

  /* CALCULATOR BANNER */
  .calc-banner {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .calc-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1200&auto=format&fit=crop&q=60') center/cover;
    opacity: 0.15;
  }
  .calc-banner-inner { position: relative; }
  .calc-banner h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .calc-banner p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
  }
  .btn-red-outline {
    display: inline-block;
    border: 2px solid var(--red);
    background: var(--red);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 48px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background .2s, transform .15s;
    text-decoration: none;
  }
  .btn-red-outline:hover { background: var(--red-hover); transform: translateY(-2px); }

  /* REVIEWS */
  .reviews { background: var(--gray-bg); }
  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 20px;
  }
  .review-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }
  .review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
  }
  .reviewer-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #ddd;
    overflow: hidden;
  }
  .reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .reviewer-info h5 {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
  }
  .stars { color: #FFC107; font-size: 16px; letter-spacing: 2px; }
  .review-text { font-size: 14px; color: #555; line-height: 1.7; }
  .reviews-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
  }
  .btn-nav {
    background: var(--gray-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    color: var(--gray-dark);
    transition: background .2s;
    font-family: 'Roboto', sans-serif;
  }
  .btn-nav:hover { background: #eee; }

  /* CTA BOTTOM */
  .cta-bottom {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .cta-bottom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1200&auto=format&fit=crop&q=60') center/cover;
    opacity: 0.1;
  }
  .cta-bottom-inner { position: relative; }
  .cta-bottom h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .cta-bottom p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
  }
  .btn-red-lg {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    padding: 18px 60px;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background .2s, transform .15s;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(211,47,47,0.4);
  }
  .btn-red-lg:hover { background: var(--red-hover); transform: translateY(-2px); }

  /* FOOTER */
  .footer {
    background: #1a1a1a;
    border-top: 3px solid var(--red);
    padding: 20px 0;
  }
  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .footer-copy { font-size: 13px; color: #777; }
  .footer-links { display: flex; flex-direction: column; gap: 10px; }
  .footer-links a {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: color .2s;
  }
  .footer-links a:hover { color: var(--red); }

  /* FLOATING PHONE */
  .float-phone {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
  .float-btn {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: transform .2s;
    font-size: 22px;
    border: none;
  }
  .float-btn:hover { transform: scale(1.1); }
  .float-btn.phone { background: var(--red); }
  .float-btn.wa { background: #25D366; }
  .float-label {
    background: var(--red);
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    writing-mode: unset;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .2s;
  }
  .float-label:hover { background: var(--red-hover); }

  /* MODAL */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: #fff;
    border-radius: 8px;
    padding: 36px 32px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 16px 60px rgba(0,0,0,0.4);
    animation: modalIn .3s ease;
  }
  @keyframes modalIn {
    from { transform: scale(0.9) translateY(-20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
  }
  .modal-close {
    position: absolute;
    top: 14px; right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    line-height: 1;
  }
  .modal-close:hover { color: var(--red); }
  .modal h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 20px;
  }
  .modal input, .modal textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 12px;
    outline: none;
    transition: border-color .2s;
  }
  .modal input:focus, .modal textarea:focus { border-color: var(--red); }
  .modal textarea { resize: none; height: 80px; }
  .success-msg {
    text-align: center;
    padding: 20px;
    display: none;
  }
  .success-msg .check {
    font-size: 56px;
    color: #4CAF50;
    margin-bottom: 12px;
  }
  .success-msg h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 8px;
  }
  .success-msg p { color: var(--gray-mid); font-size: 15px; }

  /* Animations */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .animate { animation: fadeInUp .6s ease both; }
  .animate-d1 { animation-delay: .1s; }
  .animate-d2 { animation-delay: .2s; }
  .animate-d3 { animation-delay: .3s; }
  .animate-d4 { animation-delay: .4s; }

  /* MOBILE */
  @media (max-width: 768px) {
    .header-phone { font-size: 17px; }
    .burger { display: flex; }

    .hero-inner { flex-direction: column; padding: 40px 20px; }
    .hero-title { font-size: 34px; }
    .hero-sub { font-size: 16px; }
    .form-card { width: 100%; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }

    .section-title { font-size: 24px; }
    .calc-banner h2 { font-size: 24px; }
    .cta-bottom h2 { font-size: 26px; }
    .btn-red-lg { padding: 14px 32px; font-size: 17px; }

    .works-slide img { height: 260px; }

    .footer-inner { flex-direction: column; align-items: flex-start; }
  }

  @media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 28px; }
  }