/* Rowwad Car Rental — visual system */
:root {
    --paper: #f7f8f5;
    --white: #ffffff;
    --ink: #162b28;
    --muted: #60736d;
    --forest: #183d35;
    --forest-deep: #103128;
    --accent: #c6dcac;
    --accent-soft: #edf3e7;
    --line: #dce5dc;
    --shadow: 0 10px 26px rgba(18, 48, 37, .06);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.9 Tahoma, "Segoe UI", Arial, sans-serif;
}
a { color: #25594a; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid #3c7960;
    outline-offset: 3px;
}
#page { width: 92%; max-width: 1180px; margin: 24px auto 50px; }

/* Navigation */
#main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 15px 26px;
    margin-bottom: 32px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--shadow);
}
#main-nav a { text-decoration: none; }
.brand-link { display: flex; gap: 11px; align-items: center; color: var(--ink); flex-shrink: 0; }
.brand-symbol {
    width: 44px; height: 44px; line-height: 44px; text-align: center;
    border-radius: 9px; background: var(--forest); color: var(--accent);
    font-size: 26px; font-weight: bold;
}
.brand-name { color: var(--ink); font-size: 23px; font-weight: bold; line-height: 1.2; }
.brand-name small { color: var(--muted); display: block; font-size: 10px; font-weight: normal; letter-spacing: 0; margin-top: 4px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a { display: inline-block; padding: 10px 13px; color: #415d51; font-size: 14px; font-weight: bold; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.nav-active { color: var(--forest-deep); border-bottom-color: #6ca17b; }
#main-nav a.nav-book { display: inline-block; background: var(--forest); color: #fff; border-radius: 8px; padding: 11px 19px; font-size: 14px; font-weight: bold; white-space: nowrap; }
#main-nav a.nav-book:hover { background: #2b5a48; }

/* Intro, headings and buttons */
.section-label, .about-section-heading > p { color: #50745f; font-size: 13px; font-weight: bold; margin: 0 0 6px; }
.section-heading { margin-bottom: 25px; }
.section-heading h2, .about-section-heading h2 { margin: 0 0 8px; color: var(--ink); font-size: 30px; line-height: 1.5; letter-spacing: -.4px; }
.section-heading p:not(.section-label) { color: var(--muted); margin: 0; }
.section-heading-split { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.text-link { font-weight: bold; text-decoration: none; color: var(--forest); white-space: nowrap; border-bottom: 1px solid #7caa8e; padding-bottom: 5px; }
.text-link:hover { color: #39765d; }
.hero-button, .about-button, .steps-button {
    display: inline-block; padding: 12px 23px; font-size: 15px; font-weight: bold;
    border-radius: 8px; text-decoration: none;
}

/* Home — photographic feature */
.hero, .about-hero {
    color: #fff; background: var(--forest-deep); border-radius: 17px;
    margin-bottom: 64px; padding: 54px 48px; overflow: hidden;
}
.hero-grid, .about-hero { display: flex; gap: 38px; align-items: center; }
.hero-copy, .about-hero-copy { flex: 1 1 51%; min-width: 0; }
.hero-label, .about-label { margin: 0 0 17px; color: var(--accent); font-size: 14px; font-weight: bold; }
.hero h1, .about-hero h1 { color: #fff; font-size: 47px; line-height: 1.35; letter-spacing: -.7px; margin: 0 0 21px; }
.hero-description, .about-description { color: #dce8df; font-size: 16px; line-height: 2; margin: 0 0 26px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-primary, .about-button { color: var(--forest-deep); background: var(--accent); }
.hero-primary:hover, .about-button:hover { color: var(--forest-deep); background: #e0edc9; }
.hero-secondary { color: #fff; border: 1px solid #648476; }
.hero-secondary:hover { color: #fff; background: rgba(255,255,255,.09); }
.hero-visual { flex: 1 1 47%; min-width: 0; background: #fff; border-radius: 12px; overflow: hidden; }
.hero-car { width: 100%; height: 315px; display: block; object-fit: contain; object-position: center; }
.hero-photo-note {
    display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center;
    justify-content: space-between; padding: 12px 17px; color: var(--ink); background: #fff;
    border-top: 1px solid var(--line); font-size: 12px;
}
.hero-photo-note strong { font-family: Arial, sans-serif; font-size: 15px; }
.hero-photo-note span { color: var(--muted); }
.hero-facts {
    display: flex; gap: 18px; flex-wrap: wrap; margin-top: 36px;
    border-top: 1px solid #3d6152; padding-top: 22px;
}
.hero-facts div { display: flex; flex-direction: column; gap: 1px; padding-left: 13px; border-left: 1px solid #3d6152; }
.hero-facts div:last-child { border-left: 0; }
.hero-facts strong { color: #f0f7e9; font: bold 22px/1.35 Arial, Tahoma, sans-serif; }
.hero-facts span { color: #bfcfc2; font-size: 11px; }

/* Featured cars */
.featured-section { margin: 0 0 64px; }
.featured-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.featured-card {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 17px 33px rgba(21,52,40,.12); }
.featured-photo { position: relative; overflow: hidden; background: #edf1ed; }
.featured-photo img { display: block; width: 100%; height: 208px; object-fit: cover; transition: transform .35s ease; }
.featured-card:hover .featured-photo img { transform: scale(1.06); }
.car-tag { position: absolute; top: 13px; right: 13px; color: #24443a; background: rgba(255,255,255,.94); padding: 3px 10px; border-radius: 5px; font-size: 12px; }
.featured-body { padding: 19px 19px 18px; }
.featured-body h3 { margin: 0 0 7px; text-align: right; color: var(--ink); font: bold 21px/1.3 Arial, Tahoma, sans-serif; }
.featured-meta { color: var(--muted); margin: 0 0 19px; font-size: 13px; }
.featured-price { color: #1f5744; margin: 0; font: bold 24px/1.5 Arial, Tahoma, sans-serif; }
.featured-price span { color: #62786b; font: normal 13px Tahoma, Arial, sans-serif; }
.featured-link {
    display: flex; justify-content: space-between; margin-top: 17px; padding-top: 14px;
    text-decoration: none; border-top: 1px solid var(--line); color: var(--forest);
    font-weight: bold; font-size: 14px;
}
.featured-link:hover { color: #468764; }

/* Steps — not a repeated card grid */
.steps-section {
    margin: 0 0 66px; padding: 36px 35px 30px;
    background: #eaf0e7; border: 1px solid #d7e4d5; border-radius: 14px;
}
.steps-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.step-card { border-top: 1px solid #9fb7a3; padding-top: 13px; }
.step-number { display: inline-block; color: #4c785b; font: bold 16px Arial, sans-serif; }
.step-card h3 { font-size: 18px; color: var(--ink); margin: 10px 0 7px; }
.step-card p { color: #5b7065; margin: 0; line-height: 1.9; font-size: 14px; }
.steps-action { margin-top: 24px; }
.steps-button { color: #fff; background: var(--forest); }
.steps-button:hover { color: #fff; background: #2c5d48; }

/* Project team */
.team-section { border: 1px solid var(--line); background: #fff; border-radius: 13px; padding: 30px; }
.team-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.team-table th { text-align: right; padding: 13px 15px; color: #365147; font-weight: bold; border-bottom: 2px solid #cfded2; font-size: 13px; }
.team-table td { padding: 12px 15px; color: #334b41; border-bottom: 1px solid #e4ebe2; font-size: 13px; }
.team-table tbody tr:hover { background: #f3f7f1; }
#publication-link { padding: 17px 0 0; margin: 24px 0 0; color: #405a4e; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
#publication-link a { color: #256249; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 52px; padding: 22px 5px; font-size: 13px; color: var(--muted); }
.footer-identity { display: flex; flex-direction: column; line-height: 1.8; }
.footer-identity strong { color: var(--forest); }
.site-footer p { margin: 0; }
.site-footer a { color: #4a6b59; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-divider { padding: 0 7px; color: #9cad9a; }

/* About us and branches */
.about-hero { gap: 35px; padding: 45px; }
.about-hero h1 { font-size: 39px; }
.about-hero-image { flex: 1 1 44%; min-width: 0; }
.about-hero-image img { display: block; width: 100%; height: 275px; object-fit: cover; border-radius: 9px; background: #fff; }
.about-section-heading { margin-bottom: 24px; }
.about-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-bottom: 60px; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 27px; }
.about-card-number { color: #4b7961; font: bold 15px Arial, sans-serif; }
.about-card h3 { font-size: 20px; margin: 12px 0 10px; }
.about-card p { color: var(--muted); margin: 0; }
.branches-section { margin-top: 10px; }
.branches-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.branch-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 25px 27px; }
.branch-heading { margin-bottom: 19px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.branch-index { color: #6a886d; font-size: 12px; }
.branch-heading h3 { margin: 1px 0 0; font-size: 22px; }
.branch-card p { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 1px solid #edf0eb; padding-bottom: 9px; margin: 0 0 11px; color: #465c51; }
.branch-card p:last-child { margin-bottom: 0; border: 0; padding-bottom: 0; }
.branch-card strong { color: var(--ink); font-weight: normal; }
.branch-card span[dir="ltr"] { display: inline-block; direction: ltr; font-family: Arial, sans-serif; }

/* Cars and booking */
.page-intro { max-width: 900px; margin: 45px 0 32px; }
.page-intro h1 { font-size: 39px; line-height: 1.45; margin: 0 0 9px; color: var(--ink); }
.page-intro > p:not(.section-label) { color: var(--muted); margin: 0; }
.intro-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.intro-chips span { padding: 5px 13px; border-radius: 5px; border: 1px solid #cddfce; color: #42674e; background: #edf4e9; font-size: 12px; }
fieldset { min-width: 0; }
.cars-fieldset, #booking-fieldset {
    background: #fff; border: 1px solid var(--line); border-radius: 13px;
    padding: 27px 24px; margin: 28px 0;
}
.cars-fieldset legend, #booking-fieldset legend {
    background: var(--white); color: var(--forest); font-size: 19px; font-weight: bold;
    padding: 2px 14px; border: 0;
}
.table-wrapper { width: 100%; overflow-x: auto; }
#cars-table { width: 100%; min-width: 900px; border-collapse: collapse; text-align: center; }
#cars-table caption { padding: 0 0 17px; color: #5b6c5e; font-size: 13px; text-align: right; }
#cars-table th { background: var(--forest); color: #fff; padding: 14px 10px; font-size: 13px; border-bottom: 1px solid #3d6757; }
#cars-table td { color: #354b42; border-bottom: 1px solid #e5ebe4; padding: 16px 12px; vertical-align: middle; }
#cars-table .car-main:nth-of-type(4n + 1) td { background: #fafcf9; }
#cars-table .car-main:hover td { background: #eef5ea; }
#cars-table .car-model { color: var(--ink); font: bold 16px Arial, sans-serif; }
#cars-table .price-cell { color: #1b6a4b; font-weight: bold; white-space: nowrap; }
#cars-table label { display: inline-block; margin-left: 5px; cursor: pointer; font-size: 13px; }
#cars-table input[type="checkbox"] { width: 17px; height: 17px; accent-color: #296e50; cursor: pointer; vertical-align: middle; }
.car-photo { display: block; width: 170px; height: 99px; object-fit: cover; margin: 0 auto; border-radius: 9px; background: #edf2ed; }
/* Preserve the user's requested photo enlargement */
.car-photo { position: relative; z-index: 1; transition: transform .3s ease, box-shadow .3s ease; cursor: zoom-in; }
.car-photo:hover { transform: scale(1.15); z-index: 5; box-shadow: 0 10px 25px rgba(0,0,0,.24); }
#cars-table .car-details { display: none; }
#cars-table .car-details td { background: #eef5eb; color: #335345; text-align: right; padding: 15px 20px; }
.car-details-content { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; }
.car-details-content strong { color: #276247; }
.cars-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; }
.cars-bottom p { color: var(--muted); margin: 0; }
.main-button { background: var(--forest); color: #fff; border: 0; border-radius: 9px; padding: 12px 23px; cursor: pointer; font: bold 14px Tahoma, Arial, sans-serif; }
.main-button:hover { background: #306a51; }
#booking-fieldset { display: none; padding: 30px 28px 24px; }
#selected-cars-summary { background: #eef5e9; border-right: 3px solid #6da876; color: #24563f; padding: 13px 17px; margin: 7px 0 18px; border-radius: 4px; }
.booking-tip { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 22px; }
.form-row { position: relative; min-width: 0; margin: 0 0 14px; }
.form-row label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: bold; }
.required-mark { color: #bd6b42; }
.form-row input[type="text"] { width: 100%; display: block; padding: 12px 13px; color: var(--ink); background: #fff; border: 1px solid #becfc3; border-radius: 8px; font: 15px Tahoma, Arial, sans-serif; }
.form-row input[type="text"].invalid-field { border-color: #b64343; }
.form-row input[type="text"]:focus { border-color: #568d69; outline: 2px solid #b3d8b6; outline-offset: 1px; }
.ltr-field { direction: ltr; text-align: left; }
.input-hint { display: block; color: #738277; font-size: 12px; margin-top: 6px; line-height: 1.7; }
.governorate-hint { color: #286247; display: block; font-size: 12px; min-height: 16px; margin-top: 4px; }
.field-error { display: block; min-height: 18px; color: #b44242; font-size: 12px; }
.form-error { color: #aa3939; font-weight: bold; font-size: 13px; }
/* One text field, with its own pop-up calendar. */
.date-input-box { position: relative; display: flex; align-items: stretch; gap: 7px; }
#booking-fieldset .date-input-box input[type="text"] { flex: 1 1 auto; min-width: 0; width: 0; }
.calendar-trigger { flex: 0 0 48px; min-width: 48px; background: #e9f1e4; border: 1px solid #becfc3; border-radius: 8px; color: #255b42; font-size: 21px; font-family: inherit; cursor: pointer; }
.calendar-trigger:hover, .calendar-trigger:focus { background: var(--accent); }
.calendar-popover {
    display: none; position: absolute; direction: rtl; z-index: 500;
    right: 0; top: calc(100% + 8px); width: 345px; max-width: calc(100vw - 48px);
    padding: 16px; background: #fff; color: var(--ink); border: 1px solid #c9d9cf;
    border-radius: 11px; box-shadow: 0 16px 40px rgba(14,45,31,.23);
}
.calendar-top { display: flex; align-items: center; gap: 6px; margin-bottom: 13px; }
.calendar-top select { flex: 1 1 0; min-width: 0; padding: 7px 6px; color: var(--ink); background: #fff; border: 1px solid #cbd9cd; border-radius: 6px; font: 12px Tahoma, Arial, sans-serif; }
.calendar-nav { flex: 0 0 29px; height: 32px; background: #edf3e7; border: 0; border-radius: 6px; color: var(--forest); font-size: 19px; cursor: pointer; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; }
.calendar-weekday { color: #607367; font-size: 12px; font-weight: bold; text-align: center; padding: 4px 0; }
.calendar-day { border: 0; border-radius: 6px; min-height: 34px; background: #f1f6ef; color: var(--ink); cursor: pointer; font: 13px Tahoma, Arial, sans-serif; }
.calendar-day:hover:not(:disabled), .calendar-day:focus:not(:disabled) { background: var(--accent); }
.calendar-day.today { box-shadow: inset 0 0 0 1px #689875; }
.calendar-day.selected { background: var(--forest); color: #fff; }
.calendar-day:disabled { background: #f7f8f6; color: #b4beb7; cursor: not-allowed; }
.calendar-empty { display: block; min-height: 34px; }
/* Booking calculation */
#booking-result { display: none; margin: 30px 0; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
#booking-result h2 { color: var(--ink); margin: 0 0 10px; font-size: 24px; }
#receipt-dates { color: var(--muted); }
#receipt-table { width: 100%; min-width: 540px; border-collapse: collapse; }
#receipt-table th { text-align: right; padding: 12px 13px; background: #e9f1e6; color: #1b4e3a; border-bottom: 2px solid #d2e1cf; }
#receipt-table td { padding: 13px; border-bottom: 1px solid var(--line); }
#receipt-text { white-space: pre-line; margin: 18px 0 0; padding: 17px 20px; color: #1b503c; background: #edf5e9; border-radius: 8px; font-weight: bold; }

/* Tablet and phone */
@media screen and (max-width: 900px) {
    #main-nav { flex-wrap: wrap; }
    .nav-links { flex: 1 1 auto; justify-content: center; }
    .hero, .about-hero { padding: 36px 27px; }
    .hero h1, .about-hero h1 { font-size: 34px; }
    .hero-grid, .about-hero { gap: 24px; }
    .featured-list { gap: 12px; }
    .featured-photo img { height: 170px; }
    .featured-body h3 { font-size: 18px; }
    .featured-body { padding: 14px; }
    .featured-price { font-size: 20px; }
}
@media screen and (max-width: 720px) {
    #page { width: 94%; margin: 12px auto 30px; }
    #main-nav { padding: 15px; justify-content: center; gap: 10px; }
    .nav-links { width: 100%; order: 3; justify-content: space-around; }
    .nav-links a { padding: 8px 9px; font-size: 13px; }
    .hero-grid, .about-hero { flex-direction: column; }
    .hero, .about-hero { padding: 27px 20px; margin-bottom: 44px; }
    .hero-copy, .hero-visual, .about-hero-copy, .about-hero-image { width: 100%; }
    .hero h1, .about-hero h1 { font-size: 32px; }
    .hero-car { height: 220px; }
    .hero-facts { margin-top: 24px; }
    .section-heading-split { flex-direction: column; align-items: start; }
    .featured-list, .steps-list, .about-cards, .branches-list { grid-template-columns: 1fr; }
    .featured-photo img { height: 215px; }
    .steps-section { padding: 24px 20px; }
    .team-section { padding: 21px 14px; }
    .site-footer { flex-direction: column; text-align: center; }
    .page-intro h1 { font-size: 30px; }
    .form-grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 520px) {
    #main-nav a.nav-book { padding: 9px 13px; }
    .cars-fieldset, #booking-fieldset { padding: 20px 12px; }
    .cars-fieldset legend, #booking-fieldset legend { font-size: 16px; }
    .cars-bottom { flex-direction: column; align-items: stretch; }
    .main-button { width: 100%; }
    .calendar-popover { width: min(340px,calc(100vw - 62px)); }
    .branch-card p { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .featured-card, .featured-photo img, .car-photo { transition: none; }
}
