/* assets/css/style.css
   Updated for:
   - .nav.open mobile menu
   - keep brand text visible on small screens
   - equal min-height for hero and carousel on mobile
   - other responsive improvements
*/

/* ---------- variables & reset ---------- */
:root{
  --p1:#ff6b6b;
  --p2:#f59e0b;
  --accent-grad: linear-gradient(90deg,var(--p1),var(--p2));
  --bg:#f6f7f9;
  --card:#fff;
  --muted:#6b7280;
  --text:#0b1220;
  --shadow: 0 18px 40px rgba(13,20,30,0.06);
  --radius:16px;
  --container:1150px;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}

/* ---------- header ---------- */
.header{
  background:#fff;border-bottom:1px solid rgba(11,17,32,0.04);position:sticky;top:0;z-index:80;
}
.header .wrap{max-width:var(--container);margin:0 auto;padding:12px 18px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--p1)}
.brand img{height:48px;width:48px;border-radius:50%;object-fit:cover;transform:scale(1.15);box-shadow:0 8px 24px rgba(2,6,23,0.06)}
.brand span{font-weight:800}
.nav{display:flex;gap:18px;align-items:center}
.nav a{color:#324049;text-decoration:none;padding:8px 12px;border-radius:8px;font-weight:600}
.nav a:hover{background:rgba(13,20,30,0.04)}
.nav .cta{background:var(--p1);color:#fff;padding:8px 12px;border-radius:10px}

/* menu toggle (only shown on mobile via media query) */
.menu-toggle{display:none;border:0;background:#fff;padding:8px;border-radius:8px;cursor:pointer}

/* when JS toggles .open on nav, show it on mobile */
.nav.open{
  display:flex !important;
  position:fixed;
  top:68px;
  right:18px;
  background:#fff;
  border-radius:10px;
  box-shadow:0 18px 50px rgba(2,6,23,0.12);
  padding:12px;
  flex-direction:column;
  z-index:90;
  min-width:180px;
}

/* ---------- container & top-row ---------- */
.container{max-width:var(--container);margin:0 auto;padding:18px}

/* hero + carousel row */
.top-row{display:flex;gap:20px;align-items:stretch;margin-top:18px}
.hero-card{flex:0 0 62%;display:flex;flex-direction:column}
.carousel-card{flex:0 0 38%;display:flex;flex-direction:column}

/* hero */
.hero-figure{border-radius:16px;overflow:hidden;box-shadow:var(--shadow);position:relative;height:100%;min-height:420px}
.hero-figure img{width:100%;height:100%;object-fit:cover;display:block}
.hero-inner{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;color:#fff;padding:12px}
.hero-inner h1{margin:0;font-size:30px;font-weight:800;text-shadow:0 10px 22px rgba(2,6,23,0.3)}
.hero-inner .btn{background:var(--p1);color:#fff;padding:10px 16px;border-radius:10px;text-decoration:none;font-weight:700;margin-top:10px}

/* carousel */
.carousel{border-radius:16px;overflow:hidden;background:var(--card);box-shadow:var(--shadow);display:flex;flex-direction:column;height:100%}
.carousel .viewport{flex:1;display:flex;align-items:center;justify-content:center;background:#0b0b0b;overflow:hidden}
.carousel .slides{display:flex;transition:transform .45s ease;height:100%}
.carousel .slide{min-width:100%;display:flex;align-items:center;justify-content:center;height:100%}
.carousel .slide img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.carousel .controls{display:flex;align-items:center;justify-content:space-between;padding:10px}
.carousel .dots{display:flex;gap:8px}
.carousel .dot{width:10px;height:10px;border-radius:50%;background:#eef3f7;cursor:pointer}
.carousel .dot.active{background:var(--p1)}
.carousel .arrow{background:#fff;border:1px solid #eef4f8;padding:8px;border-radius:10px;cursor:pointer;box-shadow:0 6px 18px rgba(2,6,23,0.06)}

/* ---------- contact left (30%) / map right (70%) ---------- */
.row{display:flex;gap:20px;margin-top:26px;align-items:stretch}
.contact-left{flex:0 0 30%;display:flex;flex-direction:column;background:var(--card);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
.map-card{flex:1;background:var(--card);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}

/* contact left header & body */
.contact-left .head{padding:20px;background:linear-gradient(90deg,var(--p1),var(--p2));color:#fff;font-weight:800;font-size:18px}
.contact-left .body{padding:18px;display:flex;flex-direction:column;gap:14px}
.contact-item{display:flex;gap:12px;align-items:flex-start}
.contact-item i{font-size:20px;color:var(--p1);min-width:30px}
.contact-item .title{font-weight:700;color:#0b1220}
.contact-links{display:flex;flex-direction:column;gap:12px;margin-top:8px}
.contact-links a{display:flex;align-items:center;gap:12px;text-decoration:none;padding:12px;border-radius:10px;background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.98));color:#0b1220;font-weight:700;box-shadow:0 10px 30px rgba(2,6,23,0.04)}
.contact-links a i{width:26px;height:26px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:rgba(255,255,255,0.9);color:var(--p1)}

/* map */
.map-inner{padding:18px}
.map-frame{width:100%;height:320px;border-radius:12px;overflow:hidden;border:0;box-shadow:0 12px 36px rgba(2,6,23,0.06)}
.map-frame iframe{width:100%;height:100%;border:0;display:block}

/* ---------- Why choose us ---------- */
.features{display:flex;gap:20px;margin-top:36px;align-items:stretch;flex-wrap:wrap}
.feature{flex:1;min-width:260px;background:var(--card);border-radius:14px;padding:28px;text-align:center;box-shadow:var(--shadow);transition:transform .28s ease,box-shadow .28s ease}
.feature .icon{width:72px;height:72px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;margin-bottom:14px;background:linear-gradient(90deg,#ffdede,#ffdca8);font-size:28px;color:var(--p1)}
.feature h3{margin:0 0 8px;font-size:20px;font-weight:800}
.feature p{margin:0;color:var(--muted)}
.feature:hover{transform:translateY(-10px);box-shadow:0 30px 70px rgba(2,6,23,0.14)}
.feature:hover .icon{background:linear-gradient(90deg,var(--p1),var(--p2));color:#fff;transform:scale(1.02);transition:all .28s ease}
.feature.touch-hover{transform:translateY(-10px);box-shadow:0 30px 70px rgba(2,6,23,0.14);}

/* ---------- footer dark theme (reference) ---------- */
.site-footer{margin-top:40px;background:#22282f;color:#e6eef3;padding:48px 0}
.site-footer .container{display:flex;gap:28px;flex-wrap:wrap}
.footer-col{flex:1;min-width:220px}
.footer-heading{font-weight:800;font-size:20px;margin-bottom:14px;position:relative}
.footer-heading:after{content:"";display:block;width:40px;height:4px;border-radius:4px;background:linear-gradient(90deg,var(--p1),var(--p2));margin-top:10px}
.footer-input, .footer-textarea{width:100%;padding:12px;border-radius:8px;border:0;background:#2f3640;color:#fff;margin-bottom:12px}
.footer-btn{background:var(--p1);color:#fff;padding:10px 16px;border-radius:999px;border:0;cursor:pointer}
.footer-links{display:flex;flex-direction:column;gap:8px}
.footer-links a{color:#e6eef3;text-decoration:none}
.social-row{display:flex;gap:10px;margin-top:10px}
.social-btn{width:40px;height:40px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.06);color:#fff}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .carousel-card{flex-basis:420px;width:420px}
  .hero-figure{min-height:380px}
  .map-frame{height:280px}
}
@media (max-width:900px){
  .top-row{flex-direction:column}
  .hero-card,.carousel-card{flex:1 1 auto}
  .hero-figure{min-height:320px}
  .carousel{height:320px}
  .row{flex-direction:column}
  .contact-left{flex-basis:auto}
  .map-frame{height:260px}
}
@media (max-width:480px){
  .menu-toggle{display:inline-block}
  .nav{display:none}
  /* keep brand text visible on small screens (you asked to show the name) */
  .brand span{display:inline-block}
  /* ensure hero & carousel share same height on small screens */
  .hero-figure{min-height:260px}
  .carousel{height:260px}
  .map-frame{height:220px}
  .feature{min-width:100%}
}

/* focus outlines */
a:focus,button:focus,input:focus,textarea:focus{outline:3px solid rgba(255,107,107,0.12);outline-offset:2px}
