/* ===================================================
   ask-quick.com — Site Styles
   =================================================== */

:root{
  --accent:#1a73e8;
  --whatsapp:#25D366;
  --text:#202124;
  --text-light:#5f6368;
  --border:#e0e0e0;
  --bg:#ffffff;
  --radius:10px;
  --max-width:960px;
  --header-h:64px;
}

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

html,body{
  height:100%;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}

.bkg {
	background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
}

html[dir="rtl"] body{ font-family:"Segoe UI",Tahoma,Arial,sans-serif; }

a{color:inherit;text-decoration:none;}
button{font-family:inherit;cursor:pointer;}

img{max-width:100%;display:block;}

/* ---------- HEADER ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--bg);
  border-bottom:1px solid var(--border);
}

.header-inner{
  max-width:var(--max-width);
  margin:0 auto;
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: center;  /* This centers both logo and tagline */
}

.header-left img {
    height: 40px;
    width: auto;
}

.tagline {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-light);
    text-transform: uppercase;
    text-align: center;  /* Ensures text itself is centered */
}

/* Copyright text */
.copyright {
    font-size:13px;
    color: var(--text-light);
    padding-left: 20px;
}

.header-right{
  display:flex;
  align-items:center;
  gap:22px;
}

.nav-links{
  display:flex;
  gap:22px;
}

.nav-links a{
  font-size:15px;
  color:var(--text);
  padding:6px 2px;
  border-bottom:2px solid transparent;
  transition:border-color .15s ease, color .15s ease;
  white-space:nowrap;
}

.nav-links a:hover,
.nav-links a.active{
  color:var(--accent);
  border-bottom-color:var(--accent);
}

.lang-switcher{
  position:relative;
}

.lang-btn{
  display:flex;
  align-items:center;
  gap:6px;
  background:none;
  border:1px solid var(--border);
  border-radius:20px;
  padding:6px 12px;
  font-size:14px;
  color:var(--text);
}

.lang-btn:hover{ border-color:var(--accent); }

.lang-dropdown{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:8px;
  box-shadow:0 4px 16px rgba(0,0,0,.08);
  min-width:140px;
  display:none;
  overflow:hidden;
}

html[dir="rtl"] .lang-dropdown{ right:auto; left:0; }

.lang-dropdown.open{ display:block; }

.lang-dropdown button{
  display:block;
  width:100%;
  text-align:left;
  padding:10px 14px;
  background:none;
  border:none;
  font-size:14px;
  color:var(--text);
}

html[dir="rtl"] .lang-dropdown button{ text-align:right; }

.lang-dropdown button:hover{ background:#f3f3f3; }

.menu-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:32px;
  height:32px;
  background:none;
  border:none;
  padding:0;
}

.menu-toggle span{
  display:block;
  height:2px;
  width:100%;
  background:var(--text);
  transition:transform .2s ease, opacity .2s ease;
}

.menu-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity:0; }
.menu-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:720px){
	.hero {
        padding: 30px 20px;
        margin: 0 -20px 30px;
        border-radius: 0;
    }
    .hero::before {
        border-radius: 0;
    }
    .hero::after {
        font-size: 80px;
        right: 10px;
        bottom: 10px;
    }
    html[dir="rtl"] .hero::after {
        right: auto;
        left: 10px;
    }
  .nav-links{
    position:fixed;
    top:var(--header-h);
    left:0;
    right:0;
    flex-direction:column;
    background:var(--bg);
    border-bottom:1px solid var(--border);
    padding:10px 20px 16px;
    gap:4px;
    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition:opacity .15s ease, transform .15s ease;
  }
  .nav-links.open{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }
  .nav-links a{
    padding:12px 4px;
    border-bottom:1px solid var(--border);
  }
  .menu-toggle{ display:flex; }
	.bkg {
      background-attachment: scroll;
      background-position: center;
  }
}

/* ---------- MAIN ---------- */
main{
  max-width:var(--max-width);
  margin:0 auto;
  padding:56px 20px 30px;
}

.hero {
    position: relative;
    background: linear-gradient(
        145deg,
    rgba(0, 114, 41, 0.02) 0%,      /* Reduced from 0.04 to 0.02 */
    rgba(255, 255, 255, 0.9) 40%,   /* Reduced from 1 to 0.9 */
    rgba(255, 255, 255, 0.9) 60%,   /* Reduced from 1 to 0.9 */
    rgba(0, 0, 0, 0.02) 100%        /* Reduced from 0.04 to 0.02 */
    );
    border-radius: var(--radius);
    padding: 40px 35px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 114, 41, 0.08);
}

/* UAE flag top border */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        to right,
        #00723b 0%,    /* Green */
        #00723b 25%,
        #ffffff 25%,
        #ffffff 50%,
        #000000 50%,
        #000000 75%,
        #ff0000 75%,   /* Red */
        #ff0000 100%
    );
    border-radius: var(--radius) var(--radius) 0 0;
}

/* UAE flag watermark */
.hero::after {
    content: '🇦🇪';
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-size: 140px;
    opacity: 0.04;
    pointer-events: none;
    line-height: 1;
}

html[dir="rtl"] .hero::after {
    right: auto;
    left: 15px;
}

.hero h1{
  font-size:clamp(24px,4vw,26px);
  font-weight:600;
  margin-bottom:10px;
}

.hero p{
  font-size:16px;
  color:var(--text-light);
  max-width:700px;
  line-height:1.6;
}

form.inquiry-form{
  max-width:520px;
}

.field{
  margin-bottom:20px;
}

.field label{
  display:block;
  font-size:14px;
  font-weight:500;
  margin-bottom:6px;
}

.field .required{ color:#d93025; }

.field select,
.field input,
.field textarea{
  width:100%;
  padding:12px 14px;
  font-size:15px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--bg);
  color:var(--text);
  transition:border-color .15s ease, box-shadow .15s ease;
}

.field select:focus,
.field input:focus,
.field textarea:focus{
  outline: none;
  border-color: #00723b;
  box-shadow: 0 0 0 3px rgba(0, 114, 41, 0.15);
}

/* Red required stars (UAE flag color) */
.required {
    color: #ff0000;
}

/* UAE trust badge */
.uae-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 16px;
    margin-bottom:15px;
    padding: 8px 14px;
    background: rgba(0, 114, 41, 0.06);
    border-radius: 20px;
}

.uae-badge .flag {
    font-size: 18px;
}

.field textarea{
  resize:vertical;
  min-height:100px;
}

.char-count{
  font-size:12px;
  color:var(--text-light);
  text-align:right;
  margin-top:4px;
}

html[dir="rtl"] .char-count{ text-align:left; }

.submit-btn{
  	background: linear-gradient(135deg, #00723b, #1a472a);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.15s ease;
}

.submit-btn:hover{ 
	background: linear-gradient(135deg, #005a2e, #0f331e);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-note{
  font-size:13px;
  color:var(--text-light);
  margin-top:14px;
}

.form-msg{
  display:none;
  margin-top:16px;
  padding:12px 14px;
  border-radius:8px;
  font-size:14px;
}
.form-msg.error{ display:no; background:#fdecea; color:#c5221f; }

.form-email{
  margin-top:16px;
  padding:12px 14px;
  border-radius:8px;
  font-size:14px;
}
.form-email.success{ background:#cefad0; color:#008631; }
.form-email.error{ background:#fdecea; color:#c5221f; }

/* ---------- FOOTER ---------- */
footer.site-footer{
  border-top:1px solid var(--border);
  padding:26px 20px 100px;
}

.footer-inner{
  max-width:var(--max-width);
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.social-links{
  display:flex;
  gap:14px;
}

.social-links a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#f1f3f4;
  color:var(--text-light);
  transition:background .15s ease, color .15s ease;
}

.social-links a:hover{ background:var(--accent); color:#fff; }

.social-links svg{ width:16px; height:16px; fill:currentColor; }

.legal-links{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  font-size:13px;
  color:var(--text-light);
  padding-right: 20px;
}

.legal-links a:hover{ color:var(--accent); }

@media (max-width:560px){
  .footer-inner{ flex-direction:column; align-items:flex-start; }
	.legal-links{
	  padding-right: 0px;
	}
	
	.copyright {
	    padding-left: 0px;
	}
	
	.bkg {
      background-attachment: scroll;
      background-position: center;
  }
}

/* ---------- FLOATING BUTTONS ---------- */
.floating-buttons{
  position:fixed;
  right:20px;
  bottom:24px;
  z-index:200;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:flex-end;
}

html[dir="rtl"] .floating-buttons{ right:auto; left:20px; align-items:flex-start; }

.fab{
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  border-radius:50%;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
  border:none;
}

.whatsapp-fab{
  background:var(--whatsapp);
  color:#fff;
}

.whatsapp-fab svg{ width:26px; height:26px; fill:#fff; }

.top-fab{
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s;
}

.top-fab.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.top-fab svg{ width:20px; height:20px; fill:currentColor; }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:300;
  background:#fff;
  border-top:1px solid var(--border);
  box-shadow:0 -2px 14px rgba(0,0,0,.08);
  padding:16px 20px;
  transform:translateY(100%);
  transition:transform .3s ease;
}

.cookie-banner.show{ transform:translateY(0); }

.cookie-inner{
  max-width:var(--max-width);
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.cookie-banner p{
  font-size:13px;
  color:var(--text-light);
  max-width:700px;
  line-height:1.5;
}

.cookie-actions{
  display:flex;
  gap:10px;
  flex-shrink:0;
}

.cookie-actions button{
  padding:10px 18px;
  font-size:13px;
  font-weight:600;
  border-radius:8px;
  border:1px solid var(--border);
  background:#fff;
}

.cookie-actions .accept-btn{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.submit-btn.loading:hover {
    transform: none;
}
