/*
Theme Name: Reval Survey Editable One Page
Theme URI: https://revalsurvey.com
Author: OpenAI / ChatGPT
Description: Editable one-page WordPress theme for Reval Survey based on the approved mockup.
Version: 1.0.1
License: GPL-2.0-or-later
Text Domain: reval-survey
*/

:root{
  --navy:#062843;
  --navy-deep:#042139;
  --cream:#faf5ec;
  --cream-2:#f6eee3;
  --gold:#b78342;
  --gold-light:#d4a15b;
  --ink:#123456;
  --muted:#283c50;
  --line:#dcc8aa;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#071d32;
  color:var(--ink);
  font-family:Georgia,'Times New Roman',serif;
  line-height:1.45;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.site-shell{
  max-width:1023px;
  margin:0 auto;
  background:var(--cream);
  box-shadow:0 0 42px rgba(0,0,0,.28);
}

/* 1. Header / Hero */
.hero{
  position:relative;
  min-height:556px;
  overflow:hidden;
  color:#fff;
  background:
    url('assets/img/hero-bg-final.png') center top / cover no-repeat,
    var(--navy);
}
.hero::after{content:none}
.hero-inner{
  position:relative;
  z-index:2;
  padding:220px 56px 56px;
  min-height:556px;
  display:flex;
  flex-direction:column;
}
.hero h1{
  margin:0;
  font-size:75px;
  line-height:.98;
  font-weight:400;
  letter-spacing:-.025em;
  color:#fff;
  max-width:560px;
}
.hero-subtitle{
  margin-top:14px;
  color:var(--gold-light);
  font-size:31px;
  line-height:1.1;
}
.hero-rule{
  display:flex;
  align-items:center;
  gap:18px;
  margin:30px 0 26px;
}
.hero-rule span:first-child{
  width:134px;
  height:2px;
  background:var(--gold);
}
.hero-rule .star{
  color:var(--gold);
  font-size:31px;
  line-height:1;
}
.hero-slogan{
  margin:0;
  color:#fff;
  font-size:23px;
  line-height:1.44;
  max-width:430px;
}

/* 2. Services */
.services{
  background:var(--cream);
  padding:34px 70px 60px;
}
.section-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  color:var(--gold);
  font-size:19px;
  text-transform:uppercase;
  letter-spacing:.21em;
  margin:0 0 7px;
}
.section-title::before,
.section-title::after{
  content:"";
  height:1px;
  background:var(--gold);
  opacity:.7;
  flex:1;
}
.services-star{
  text-align:center;
  color:var(--gold);
  font-size:27px;
  line-height:1;
  margin-bottom:26px;
}
.service-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
}
.service-card{
  position:relative;
  text-align:center;
  padding:0 28px;
  min-height:210px;
}
.service-card:not(:last-child)::after{
  content:"";
  position:absolute;
  top:6px;
  right:0;
  bottom:2px;
  width:1px;
  background:var(--line);
}
.service-icon{
  color:#0b3459;
  width:84px;
  height:84px;
  margin:0 auto 16px;
}
.service-icon svg{width:100%;height:100%}
.service-icon-image{display:flex;align-items:center;justify-content:center;background:transparent}
.service-icon-image img{display:block;max-width:118px;max-height:96px;width:auto;height:auto;object-fit:contain}
.service-card h3{
  margin:0;
  color:#17385c;
  text-transform:uppercase;
  letter-spacing:.11em;
  font-size:17px;
  line-height:1.15;
}
.small-rule{
  width:34px;
  height:1px;
  background:var(--gold);
  margin:14px auto 14px;
}
.service-card p{
  margin:0;
  color:#222d3b;
  font-size:14px;
  line-height:1.35;
}


/* 3. Body / About */
.about{
  position:relative;
  overflow:hidden;
  min-height:420px;
  background:
    linear-gradient(90deg, rgba(246,238,227,1) 0%, rgba(246,238,227,.98) 39%, rgba(246,238,227,.78) 50%, rgba(246,238,227,.12) 72%, rgba(246,238,227,0) 100%),
    url('assets/img/about-bg.png') right center / 56% auto no-repeat,
    var(--cream-2);
  border-top:1px solid rgba(0,0,0,.035);
}
.about-inner{
  position:relative;
  z-index:2;
  padding:38px 0 40px 66px;
  width:48%;
}
.kicker{
  color:var(--gold);
  font-size:17px;
  letter-spacing:.18em;
  text-transform:uppercase;
  margin-bottom:12px;
}
.kicker::after{
  content:"";
  display:block;
  width:120px;
  height:2px;
  background:var(--gold);
  margin-top:10px;
}
.about h2{
  margin:20px 0 22px;
  color:#16385d;
  font-size:35px;
  line-height:1.08;
  font-weight:700;
}
.about p{
  margin:0 0 14px;
  color:#1f3348;
  font-size:16px;
  line-height:1.48;
}
.note{
  margin-top:18px;
  max-width:330px;
  border:1px solid var(--gold);
  padding:11px 14px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  background:rgba(255,255,255,.28);
  color:#244057;
  font-size:14px;
  line-height:1.3;
  font-style:italic;
}
.note svg{
  flex:0 0 34px;
  width:34px;
  height:34px;
  color:var(--gold);
}

/* 4. Get in Touch */
.contact{
  position:relative;
  overflow:hidden;
  background:var(--navy);
  color:#fff;
  padding:30px 66px 28px;
}
.contact::before{
  content:"";
  position:absolute;
  inset:0;
  background:url('assets/img/footer-lines.svg') center / cover no-repeat;
  opacity:.18;
}
.contact-inner{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:31% 33% 36%;
  gap:34px;
  align-items:center;
}
.contact h2{
  margin:0 0 14px;
  color:var(--gold-light);
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:17px;
}
.contact h2::after{
  content:"";
  display:block;
  width:34px;
  height:2px;
  background:var(--gold);
  margin-top:12px;
}
.contact h3{
  margin:0 0 12px;
  color:#fff;
  font-size:28px;
  font-weight:400;
  line-height:1.1;
}
.contact p{
  margin:0;
  color:#fff5e7;
  font-size:15px;
  line-height:1.45;
}
.contact-list{
  border-left:1px solid rgba(214,161,91,.42);
  border-right:1px solid rgba(214,161,91,.42);
  padding:4px 38px;
  display:grid;
  gap:13px;
}
.contact-item{
  display:grid;
  grid-template-columns:24px 1fr;
  gap:15px;
  align-items:center;
  color:#fff;
  font-size:16px;
}
.contact-item svg{
  width:22px;
  height:22px;
  color:var(--gold-light);
}
.cta-wrap{text-align:center}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  border:2px solid var(--gold);
  color:#f2bd72;
  min-width:250px;
  padding:17px 24px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:17px;
  transition:background .2s,color .2s;
}
.btn:hover{
  background:var(--gold);
  color:#061e34;
}

/* 5. Footer */
.footer{
  position:relative;
  background:var(--navy);
  color:#e8ddd0;
  border-top:2px solid var(--gold);
  padding:22px 66px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  font-size:13px;
}
.footer-star{
  position:absolute;
  left:50%;
  top:-18px;
  transform:translateX(-50%);
  background:var(--navy);
  color:var(--gold);
  font-size:26px;
  line-height:1;
  padding:0 16px;
}
.legal-links{
  display:flex;
  align-items:center;
  gap:16px;
  white-space:nowrap;
}
.legal-links button{
  background:none;
  border:0;
  color:#e8ddd0;
  font:inherit;
  cursor:pointer;
  padding:0;
}
.legal-links button:hover{color:#f2bd72}

/* Popups */
.modal{
  display:none;
  position:fixed;
  z-index:9999;
  inset:0;
  background:rgba(0,0,0,.68);
  padding:32px;
}
.modal.is-open{
  display:flex;
  align-items:center;
  justify-content:center;
}
.modal-box{
  background:#fffaf3;
  color:#142b42;
  max-width:760px;
  width:100%;
  max-height:82vh;
  overflow:auto;
  border:1px solid var(--gold);
  box-shadow:0 20px 80px rgba(0,0,0,.38);
  padding:34px 40px;
  position:relative;
}
.modal-box h2{
  font-size:34px;
  margin:0 0 18px;
  color:#0b2a45;
}
.modal-content{
  font-family:Arial,sans-serif;
  font-size:16px;
  line-height:1.6;
}
.modal-close{
  position:absolute;
  right:18px;
  top:14px;
  background:none;
  border:0;
  font-size:34px;
  line-height:1;
  cursor:pointer;
  color:#0b2a45;
}
body.modal-open{overflow:hidden}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);padding:0!important;border:0!important;height:1px!important;width:1px!important;overflow:hidden}

@media(max-width:900px){
  .site-shell{max-width:100%}
  .hero{
    background:
      url('assets/img/hero-bg-final.png') center top / cover no-repeat,
      var(--navy);
  }
  .hero-inner{padding:180px 28px 34px;min-height:520px}
  .hero h1{font-size:56px}
  .hero-subtitle{font-size:25px}
  .services{padding:34px 26px}
  .service-grid{grid-template-columns:1fr 1fr;row-gap:36px}
  .service-card:nth-child(2)::after{display:none}
  .about{
    background:
      linear-gradient(180deg, rgba(246,238,227,1) 0%, rgba(246,238,227,.97) 54%, rgba(246,238,227,.56) 100%),
      url('assets/img/about-bg.png') center bottom / 90% auto no-repeat,
      var(--cream-2);
    padding-bottom:260px;
  }
  .about-inner{width:auto;padding:34px 28px}
  .contact-inner{grid-template-columns:1fr;gap:28px}
  .contact{padding:34px 28px}
  .contact-list{border:0;padding:0}
  .footer{flex-direction:column;text-align:center;padding:28px}
  .footer-star{display:none}
}
@media(max-width:560px){
  .hero{min-height:500px}
  .hero-inner{min-height:500px;padding:150px 24px 28px}
  .hero h1{font-size:43px}
  .hero-subtitle{font-size:21px}
  .hero-slogan{font-size:18px}
  .service-grid{grid-template-columns:1fr}
  .service-card::after{display:none!important}
  .section-title{font-size:15px;gap:12px}
  .about h2{font-size:28px}
  .btn{width:100%;min-width:0}
  .legal-links{flex-wrap:wrap;justify-content:center}
  .modal{padding:16px}
  .modal-box{padding:28px 22px}
}


/* Final editable services rebuild */
.services-editable{
  background:#f5f0ea;
  background:linear-gradient(90deg,#f4eee6 0%,#fbf7f0 50%,#f4eee6 100%);
  padding:34px 72px 58px;
}
.services-editable .section-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  color:#b78342;
  font-size:19px;
  text-transform:uppercase;
  letter-spacing:.21em;
  margin:0 0 8px;
}
.services-editable .section-title::before,
.services-editable .section-title::after{
  content:"";
  height:1px;
  background:#c89a5b;
  opacity:.75;
  flex:1 1 auto;
}
.services-editable .services-star{
  text-align:center;
  color:#b78342;
  font-size:27px;
  line-height:1;
  margin:0 0 24px;
}
.services-editable .service-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
}
.services-editable .service-card{
  position:relative;
  min-height:225px;
  text-align:center;
  padding:0 28px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.services-editable .service-card:not(:last-child)::after{
  content:"";
  position:absolute;
  top:5px;
  right:0;
  bottom:4px;
  width:1px;
  background:#dcc8aa;
}
.services-editable .service-icon{
  width:122px;
  height:112px;
  margin:0 auto 12px;
  color:#0b3459;
  display:flex;
  align-items:center;
  justify-content:center;
}
.services-editable .service-icon-image img{
  width:auto;
  height:auto;
  max-width:122px;
  max-height:112px;
  object-fit:contain;
  display:block;
}
.services-editable .service-card h3{
  min-height:42px;
  margin:0;
  color:#17385c;
  text-transform:uppercase;
  letter-spacing:.11em;
  font-size:17px;
  line-height:1.15;
  font-weight:700;
}
.services-editable .small-rule{
  width:34px;
  height:1px;
  background:#b78342;
  margin:14px auto 14px;
  flex:0 0 auto;
}
.services-editable .service-card p{
  margin:0 auto;
  color:#222d3b;
  font-size:14px;
  line-height:1.35;
  max-width:160px;
}
@media(max-width:900px){
  .services-editable{padding:34px 26px}
  .services-editable .service-grid{grid-template-columns:1fr 1fr;row-gap:36px}
  .services-editable .service-card:nth-child(2)::after{display:none}
}
@media(max-width:560px){
  .services-editable .service-grid{grid-template-columns:1fr}
  .services-editable .service-card::after{display:none!important}
}
