/* styles.css - UAE Delivery Deals */

:root {
  --color-bg: #F4F4F4;
  --color-primary: #064663;
  --color-primary-light: #0B6E8E;
  --color-accent: #FF6B6B;
  --color-accent-soft: #FFD166;
  --color-text: #1F2933;
  --color-muted: #6B7280;
  --color-card-bg: #FFFFFF;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  letter-spacing: 0.03em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.9rem;
  margin-right: 0.5rem;
  background: radial-gradient(circle at 20% 20%, var(--color-accent-soft), var(--color-accent));
  position: relative;
}

.logo-icon::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 0.6rem;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 0 2px rgba(6,70,99,0.18);
  transform: rotate(12deg);
}

.logo span {
  display: inline-block;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--color-primary);
  border-radius: 999px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.95rem;
}

.nav-links a {
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}

.nav-links a:hover {
  border-bottom-color: rgba(6, 70, 99, 0.25);
}

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

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1rem;
  color: var(--color-muted);
}

.hero-tagline {
  font-weight: 500;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.hero-cta {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #FFFFFF;
}

.btn-primary:hover {
  opacity: 0.94;
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--color-primary);
  border: 1px solid rgba(6,70,99,0.16);
}

.btn-secondary:hover {
  background: #F9FAFB;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.hero-image {
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.section {
  margin-top: 2.5rem;
}

.section-heading {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.cards-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--color-card-bg);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 6px rgba(15,23,42,0.06);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(6,70,99,0.04);
  color: var(--color-muted);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.25rem;
}

.layout-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.7rem;
  align-items: flex-start;
}

.highlight-box {
  background: rgba(255, 209, 102, 0.18);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}

ul {
  padding-left: 1.1rem;
}

li {
  margin-bottom: 0.25rem;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #FFFFFF;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15,23,42,0.04);
}

th,
td {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid #E5E7EB;
  text-align: left;
}

th {
  background: #F9FAFB;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

.footer {
  background: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  padding: 1.1rem 1rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-links a {
  margin-right: 0.8rem;
}

.brand-disclaimer {
  max-width: 420px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-meta strong {
  color: var(--color-text);
}

.info-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

/* Contact form */
.form-card {
  background: #FFFFFF;
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 6px rgba(15,23,42,0.06);
  max-width: 640px;
}

form .field {
  margin-bottom: 0.75rem;
}

form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.45rem;
  border: 1px solid #D1D5DB;
  font-size: 0.9rem;
  font-family: inherit;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 1px rgba(6,70,99,0.12);
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-helper {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.35rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0.75rem;
  left: 0.5rem;
  right: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
  background: #111827;
  color: #F9FAFB;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  font-size: 0.85rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  z-index: 50;
}

.cookie-banner button {
  margin-left: auto;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: var(--color-accent);
  color: #111827;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.cookie-banner button:hover {
  opacity: 0.92;
}

/* Utility */
.tag {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,107,107,0.08);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  padding-left: 0;
  list-style: none;
}

.muted {
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    align-items: center;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid #E5E7EB;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout-two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .header-inner {
    padding-inline: 0.75rem;
  }

  main {
    padding-inline: 0.75rem;
  }
}
